IBM Support

Error when loading SAP JCo library using SAP NetWeaver Adapter

Troubleshooting


Problem

When attempting to connect to SAP using the ITIM SAPNW ITDI based Adapter the requests fails with the following error: java.lang.NoClassDefFoundError: com.sap.mw.jco.JCO (initialization failure)

Symptom

The following exception is logged in the ITDI ibmdi.log file:
2010-06-10 15:17:13,236 ERROR [AssemblyLine.AssemblyLines/SapNWTest_SAP Account(s) - SRV _test-no-requestid_5ad1e890-296d-11b2-22bf-00000af0608c.3] - [TestSapConnection] CTGDIS809E handleException - cannot handle exception , script
java.lang.NoClassDefFoundError: com.sap.mw.jco.JCO (initialization failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:123)
at com.ibm.tivoli.tim.sapnw.rfc.SapClientConnectionDirectImpl.initJcoClient(SapClientConnectionDirectImpl.java:168)
at com.ibm.tivoli.tim.sapnw.rfc.SapClientConnectionDirectImpl.setup(SapClientConnectionDirectImpl.java:51)
at com.ibm.tivoli.tim.sapnw.rfc.SapR3RfcFC.initialize(SapR3RfcFC.java:428)
at com.ibm.tivoli.tim.sapnw.RfcFunctionFactory.initFC(RfcFunctionFactory.java:228)
at com.ibm.tivoli.tim.sapnw.RfcFunctionFactory.createFC(RfcFunctionFactory.java:139)
at com.ibm.tivoli.tim.sapnw.XmlFunctionDAOConnFactory.newConnection(XmlFunctionDAOConnFactory.java:47)
at com.ibm.tivoli.tim.sapnw.user.SapNWConnectionValidator.getConnectionMetadata(SapNWConnectionValidator.java:66)
at com.ibm.tivoli.tim.sapnw.user.SapNWConnectionValidator.validateConnection(SapNWConnectionValidator.java:24)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at com.ibm.jscript.types.JavaAccessObject.call(JavaAccessObject.java:230)
at com.ibm.jscript.types.FBSObject.call(FBSObject.java:129)
at com.ibm.jscript.ASTTree.ASTCall.interpret(ASTCall.java:146)
at com.ibm.jscript.ASTTree.ASTProgram.interpretEx(ASTProgram.java:95)
at com.ibm.jscript.ASTTree.ASTProgram.interpretEx(ASTProgram.java:86)
at com.ibm.jscript.JSExpression.interpretExpression(JSExpression.java:476)
at com.ibm.jscript.JSExpression.evaluateValue(JSExpression.java:324)
at com.ibm.jscript.JSExpression.evaluateValue(JSExpression.java:335)
at com.ibm.jscript.JSInterpreter.interpret(JSInterpreter.java:51)
at com.ibm.di.script.ScriptEngine.interpret(Unknown Source)
at com.ibm.di.script.ScriptEngine.interpret(Unknown Source)
at com.ibm.di.server.ScriptComponent.add1(Unknown Source)
at com.ibm.di.server.ScriptComponent.add(Unknown Source)
at com.ibm.di.server.AssemblyLine.msExecuteNextConnector(Unknown Source)
at com.ibm.di.server.AssemblyLine.executeMainStep(Unknown Source)
at com.ibm.di.server.AssemblyLine.executeCycle(Unknown Source)
at com.ibm.di.server.AssemblyLine.executeCycle(Unknown Source)
at com.ibm.di.dispatcher.rmi.RMIDispatcherImpl.execAssemblyLine(RMIDispatcherImpl.java:1371)
at com.ibm.di.dispatcher.rmi.RMIDispatcherImpl.executeALRequest(RMIDispatcherImpl.java:1981)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:309)
at sun.rmi.transport.Transport$1.run(Transport.java:168)
at java.security.AccessController.doPrivileged(AccessController.java:275)
at sun.rmi.transport.Transport.serviceCall(Transport.java:164)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:506)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.handleRequest(TCPTransport.java:838)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:912)
at java.lang.Thread.run(Thread.java:799)
Caused by:
java.lang.Throwable: java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [sapjcorfc (No such file or directory)]. java.library.path [/opt/TDI/V6.1.1/jvm/jre/bin:/opt/TDI/V6.1.1/jvm/jre/bin:/opt/TDI/V6.1.1/jvm/jre/bin/classic:/opt/TDI/V6.1.1/jvm/jre/bin:/usr/lib]
at com.sap.mw.jco.JCO.<clinit>(JCO.java:820)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:177)
... 43 more
2010-06-10 15:17:13,239 DEBUG [/opt/TDI/V6.1.1/timsol/ITIM_RMI.xml] - unbindNameFromMetamerge():1659 Unibinding AssemblyLineConfig for; AssemblyLines/SapNWTest_SAP Account(s) - NW PI PROD_test-no-requestid_5ad1e890-296d-11b2-22bf-00000af0608c
2010-06-10 15:17:13,239 ERROR [/opt/TDI/V6.1.1/timsol/ITIM_RMI.xml] - recordErrorMessage():790 Assembly line execute exception occured. FunctionName: executeALRequest(): AssemblyLineName: <<SapNWTest>>
Exception Class:com.ibm.di.dispatcher.rmi.AdaptersALExecuteException<<com.ibm.di.dispatcher.rmi.AdaptersALExecuteException><statusCode=2><reasonCode=100><com.ibm.di.dispatcher.FAIL_START_AL><[AssemblyLines/SapNWTest_SAP Account(s) - NW PI PROD_test-no-requestid_5ad1e890-296d-11b2-22bf-00000af0608c, java.lang.NoClassDefFoundError: com.sap.mw.jco.JCO (initialization failure)]>>
at com.ibm.di.dispatcher.rmi.RMIDispatcherImpl.execAssemblyLine(RMIDispatcherImpl.java:1382)
at com.ibm.di.dispatcher.rmi.RMIDispatcherImpl.executeALRequest(RMIDispatcherImpl.java:1981)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:309)
at sun.rmi.transport.Transport$1.run(Transport.java:168)
at java.security.AccessController.doPrivileged(AccessController.java:275)
at sun.rmi.transport.Transport.serviceCall(Transport.java:164)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:506)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.handleRequest(TCPTransport.java:838)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:912)
at java.lang.Thread.run(Thread.java:799)

[{"Product":{"code":"SSRMWJ","label":"IBM Security Identity Manager"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Adapters","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"6.0;5.1;7.0","Edition":"All Editions","Line of Business":{"code":"LOB77","label":"Automation Platform"}}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

More support for:
IBM Security Identity Manager

Software version:
6.0, 5.1, 7.0

Document number:
138669

Modified date:
16 June 2018

UID

swg21438462

Manage My Notification Subscriptions