You are not logged in.

Unanswered posts



Important! This site has been replaced. All content here is read-only. Please visit our brand-new community at https://community.talend.com/. We look forward to hearing from you there!



#1 2013-08-12 08:11:20

snvkgram
Member
10 posts

snvkgram said:

SAP Connection fails - java.lang.UnsatisfiedLinkError: no sapjco3 in

Tags: [jco, sap, SAP Jco]

Hi

I am using 32bit Java on 64bit Windows 7 Operating System.

I am running a SAP trial version 7.03 due to which I don't have access to SAP market place. Hence, I downloaded the SAP JCo related jar files and dll files from internet.

I have followed the instructions as provided here: https://help.talend.com/display/TalendD … connection

I am getting below error:

-------------------------------------------------------------------------------------------------------------------------------
starting job sapJobTest at 12:38 12/08/2013.


java.lang.UnsatisfiedLinkError: no sapjco3 in java.library.path
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at com.sap.conn.jco.rt.DefaultJCoRuntime.loadLibrary(DefaultJCoRuntime.java:441)
    at com.sap.conn.jco.rt.DefaultJCoRuntime.registerNativeMethods(DefaultJCoRuntime.java:307)
    at com.sap.conn.jco.rt.JCoRuntime.registerNatives(JCoRuntime.java:980)
    at com.sap.conn.rfc.driver.CpicDriver.<clinit>(CpicDriver.java:948)
    at com.sap.conn.rfc.engine.DefaultRfcRuntime.getVersion(DefaultRfcRuntime.java:43)
    at com.sap.conn.rfc.api.RfcApi.RfcGetVersion(RfcApi.java:254)
    at com.sap.conn.jco.rt.MiddlewareJavaRfc.<clinit>(MiddlewareJavaRfc.java:199)
    at com.sap.conn.jco.rt.DefaultJCoRuntime.initialize(DefaultJCoRuntime.java:73)
    at com.sap.conn.jco.rt.JCoRuntimeFactory.<clinit>(JCoRuntimeFactory.java:23)
    at com.sap.conn.jco.rt.RuntimeEnvironment.<init>(RuntimeEnvironment.java:40)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[statistics] connecting to socket on port 3576
[statistics] connected
[statistics] disconnected
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at com.sap.conn.jco.ext.Environment.getInstance(Environment.java:121)
    at com.sap.conn.jco.ext.Environment.registerDestinationDataProvider(Environment.java:216)
    at esbdemos.sapjobtest_0_1.sapJobTest.tSAPConnection_1Process(sapJobTest.java:320)
    at esbdemos.sapjobtest_0_1.sapJobTest.runJobInTOS(sapJobTest.java:634)
    at esbdemos.sapjobtest_0_1.sapJobTest.main(sapJobTest.java:502)
Exception in thread "main" java.lang.ExceptionInInitializerError: Error getting the version of the native layer: java.lang.UnsatisfiedLinkError: no sapjco3 in java.library.path
    at com.sap.conn.jco.rt.MiddlewareJavaRfc.<clinit>(MiddlewareJavaRfc.java:211)
    at com.sap.conn.jco.rt.DefaultJCoRuntime.initialize(DefaultJCoRuntime.java:73)
    at com.sap.conn.jco.rt.JCoRuntimeFactory.<clinit>(JCoRuntimeFactory.java:23)
    at com.sap.conn.jco.rt.RuntimeEnvironment.<init>(RuntimeEnvironment.java:40)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
    at java.lang.reflect.Constructor.newInstance(Unknown Source)
    at java.lang.Class.newInstance(Unknown Source)
    at com.sap.conn.jco.ext.Environment.getInstance(Environment.java:121)
    at com.sap.conn.jco.ext.Environment.registerDestinationDataProvider(Environment.java:216)
    at esbdemos.sapjobtest_0_1.sapJobTest.tSAPConnection_1Process(sapJobTest.java:320)
    at esbdemos.sapjobtest_0_1.sapJobTest.runJobInTOS(sapJobTest.java:634)
    at esbdemos.sapjobtest_0_1.sapJobTest.main(sapJobTest.java:502)
Job sapJobTest ended at 12:38 12/08/2013. [exit code=1]

-------------------------------------------------------------------------------------------------------------------------------

Looking for solution. Thanks, Ram

Offline

#2 2013-08-12 10:20:31

xdshi
Talend Team


xdshi said:

Re: SAP Connection fails - java.lang.UnsatisfiedLinkError: no sapjco3 in

Hi,

From the error "no sapjco3 in java.library.path", did you install the jar files, sapjco3.jar in the Java library of Talend Studio? How?
See related forum Forum 38408

Best regards
Sabrina


What we can do is to make sure that Talend will be your best choice!

Offline

#3 2015-04-23 05:32:11

adiallo
Talend Team


adiallo said:

Re: SAP Connection fails - java.lang.UnsatisfiedLinkError: no sapjco3 in

You will need to add the sapjco*.dll file under C:\Windows\system32.
Thanks,


Abdoul Karim DIALLO

Offline

#4 2015-04-26 14:41:34

xdshi
Talend Team


xdshi said:

Re: SAP Connection fails - java.lang.UnsatisfiedLinkError: no sapjco3 in

Hi,

A KB article about TalendHelpCenter:Installing+SAP+Java+Connector will be helpful for users who get such SAP connection issue.

Best regards
Sabrina


What we can do is to make sure that Talend will be your best choice!

Offline

#5 2017-04-06 08:47:28

siddardh_ge
Member
3 posts

siddardh_ge said:

Re: SAP Connection fails - java.lang.UnsatisfiedLinkError: no sapjco3 in

What if the env is Linux. because i am getting same error while i am running the job in linux env. I copied the jar file to configuration\lib\java\folder.

As it is linux DLL copy is not required. Please let me know

Offline

#6 2017-04-06 10:11:28

xdshi
Talend Team


xdshi said:

Re: SAP Connection fails - java.lang.UnsatisfiedLinkError: no sapjco3 in

Hi siddardh_ge,
You are still getting the same issue when copy the jar file to configuration\lib\java\folder? Did you install {sapjco3.x-install-path}/sapjco3.jar from Modules viewer?
Best regards
Sabrina


What we can do is to make sure that Talend will be your best choice!

Offline

Board footer

Talend Contributor Agreement - Talend Website Privacy Policy