IBM Support

Integration server which reads from a Weblogic queue fails to post message to a queue

Troubleshooting


Problem

An Integration server was configured to read message from a Weblogic queue then post the message to a MQ queue.

Symptom

The Integration started with the following error stack:
2017-03-07 09:04:32,049:DEBUG :Thread-20: isTransacted property = true [system]: JMSProducer
2017-03-07 09:04:32,053:VERBOSE:Thread-20: Releasing QueueConnection [system]: JMSProducer
2017-03-07 09:04:32,053:ERROR :Thread-20: Exception while sending message [system]: JMSProducer
2017-03-07 09:04:32,053:ERROR :Thread-20: [1488906272053] javax.naming.NamingException: Failed to initialize the ORB [Root exception is java.lang.reflect.InvocationTargetException] [system]: JMSProducer
2017-03-07 09:04:32,056:ERRORDTL:Thread-20: [1488906272053]com.yantra.interop.services.jms.JMSProducer$RetryException: javax.naming.NamingException: Failed to initialize the ORB [Root exception is java.lang.reflect.InvocationTargetException]
at com.yantra.interop.services.jms.JMSProducer$1.retry(JMSProducer.java:535)
at com.yantra.interop.services.jms.JMSProducer.executeWithRetry(JMSProducer.java:386)
at com.yantra.interop.services.jms.JMSProducer.connectAndSendToCurrentServer(JMSProducer.java:518)
at com.yantra.interop.services.jms.JMSProducer.connectAndSend(JMSProducer.java:423)
at com.yantra.interop.services.jms.JMSProducer.send(JMSProducer.java:326)
at com.yantra.interop.services.jms.JMSProducer.send(JMSProducer.java:280)
at com.yantra.interop.services.jms.JMSContextMediator.dispatchMessage(JMSContextMediator.java:146)
at com.yantra.interop.services.jms.JMSCallback.sendMessage(JMSCallback.java:64)
at com.yantra.interop.services.flowcomponents.TransportFlowComponent.execute(TransportFlowComponent.java:116)
at com.yantra.interop.services.flowcomponents.TransportFlowComponent.send(TransportFlowComponent.java:169)
at com.yantra.interop.services.flowcomponents.ApiFlowComponent.send(ApiFlowComponent.java:272)
at com.yantra.integration.adapter.FlowExecutor.execute(FlowExecutor.java:395)
at com.yantra.integration.adapter.SynchronousIntegrationFlow.executeFlow(SynchronousIntegrationFlow.java:277)
at com.yantra.interop.services.api.ApiRequestDispatcher.executeFlow(ApiRequestDispatcher.java:88)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
at java.lang.reflect.Method.invoke(Method.java:620)
at com.yantra.interop.client.YIFApiInvokeHandler.callMethod(YIFApiInvokeHandler.java:65)
at com.yantra.interop.client.YIFApiInvokeHandler.invoke(YIFApiInvokeHandler.java:43)
at com.sun.proxy.$Proxy0.executeFlow(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
at java.lang.reflect.Method.invoke(Method.java:620)
at com.yantra.interop.client.InteropLocalClientAdapter.invoke(InteropLocalClientAdapter.java:42)
at com.yantra.interop.client.ClientAPICallHandler.invoke(ClientAPICallHandler.java:77)
at com.sun.proxy.$Proxy0.executeFlow(Unknown Source)
at com.yantra.interop.services.flowcomponents.CompositeFlowComponent.execute(CompositeFlowComponent.java:91)
at com.yantra.interop.services.flowcomponents.CompositeFlowComponent.send(CompositeFlowComponent.java:107)
at com.yantra.integration.adapter.FlowExecutor.execute(FlowExecutor.java:214)
at com.yantra.integration.adapter.IntegrationAdapter.onMessage(IntegrationAdapter.java:342)
at com.yantra.interop.services.reprocess.ErrorContextMediator.processMessage(ErrorContextMediator.java:143)
at com.yantra.interop.services.reprocess.ErrorDispatchConsumer.readErrorDispatchTable(ErrorDispatchConsumer.java:151)
at com.yantra.interop.services.reprocess.ErrorDispatchConsumer.run(ErrorDispatchConsumer.java:116)
at java.lang.Thread.run(Thread.java:809)
Caused by: javax.naming.NamingException: Failed to initialize the ORB [Root exception is java.lang.reflect.InvocationTargetException]
at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:400)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:463)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:128)
at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:765)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:164)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
at javax.naming.InitialContext.lookup(InitialContext.java:423)
at com.yantra.interop.services.jms.JMSProducer.getConnectionFactoryFromJNDI(JMSProducer.java:968)
at com.yantra.interop.services.jms.JMSProducer.getMainJMSObjectKey(JMSProducer.java:674)
at com.yantra.interop.services.jms.JMSProducer.connectToMainJMS(JMSProducer.java:628)
at com.yantra.interop.services.jms.JMSProducer.access$500(JMSProducer.java:65)
at com.yantra.interop.services.jms.JMSProducer$1.retry(JMSProducer.java:523)
... 35 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
at java.lang.reflect.Method.invoke(Method.java:620)
at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:391)
... 46 more
Caused by: java.lang.NoClassDefFoundError: javax.rmi.CORBA.Util (initialization failure)
at java.lang.J9VMInternals.initializationAlreadyFailed(J9VMInternals.java:84)
at com.ibm.rmi.corba.PluginRegistry.instantiatePlugins(PluginRegistry.java:116)
at com.ibm.rmi.corba.ORB.instantiatePlugins(ORB.java:1475)
at com.ibm.rmi.corba.ORB.orbParameters(ORB.java:1380)
at com.ibm.rmi.corba.ORB.set_parameters(ORB.java:1307)
at com.ibm.CORBA.iiop.ORB.set_parameters(ORB.java:1696)
at org.omg.CORBA.ORB.init(ORB.java:380)
at com.ibm.ws.orb.GlobalORBFactory.init(GlobalORBFactory.java:92)
at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:179)
at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:83)
at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:59)
at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:102)
... 51 more
Caused by: org.omg.CORBA.INITIALIZE: Cannot instantiate weblogic.iiop.UtilDelegateImpl vmcid: 0x0 minor code: 0 completed: No
at javax.rmi.CORBA.Util.createDelegate(Util.java:354)
at javax.rmi.CORBA.Util.<clinit>(Util.java:64)
at com.ibm.rmi.corba.PluginRegistry.instantiatePlugins(PluginRegistry.java:116)
at com.ibm.rmi.corba.ORB.instantiatePlugins(ORB.java:1475)
at com.ibm.rmi.corba.ORB.orbParameters(ORB.java:1380)
at com.ibm.rmi.corba.ORB.set_parameters(ORB.java:1307)
at com.ibm.CORBA.iiop.ORB.set_parameters(ORB.java:1696)
at org.omg.CORBA.ORB.init(ORB.java:380)
at com.ibm.ws.orb.GlobalORBFactory.init(GlobalORBFactory.java:92)
at com.ibm.ejs.oa.EJSORBImpl.initializeORB(EJSORBImpl.java:179)
at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:83)
at com.ibm.ejs.oa.EJSClientORBImpl.<init>(EJSClientORBImpl.java:59)
at com.ibm.ejs.oa.EJSORB.init(EJSORB.java:102)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
at java.lang.reflect.Method.invoke(Method.java:620)
at com.ibm.ws.naming.util.Helpers.getOrb(Helpers.java:391)
at com.ibm.ws.naming.util.WsnInitCtxFactory.getInitialContextInternal(WsnInitCtxFactory.java:463)
at com.ibm.ws.naming.util.WsnInitCtx.getContext(WsnInitCtx.java:128)
at com.ibm.ws.naming.util.WsnInitCtx.getContextIfNull(WsnInitCtx.java:765)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:164)
at com.ibm.ws.naming.util.WsnInitCtx.lookup(WsnInitCtx.java:179)
at javax.naming.InitialContext.lookup(InitialContext.java:423)
at com.yantra.interop.services.jms.JMSContext.getConnectionFactoryFromJNDI(JMSContext.java:157)
at com.yantra.interop.services.jms.JMSContext.initializeCtxAndConn(JMSContext.java:550)
at com.yantra.interop.services.jms.JMSContext.configure(JMSContext.java:451)
at com.yantra.interop.services.jms.JMSContext.configure(JMSContext.java:108)
at com.yantra.integration.adapter.SynchronousIntegrationFlow.<init>(SynchronousIntegrationFlow.java:114)
at com.yantra.integration.adapter.IntegrationFlowFactoryImpl$IntegrationFlowLoader.load(IntegrationFlowFactoryImpl.java:70)
at com.yantra.yfc.cache.YFCGenericCacheLoader.load(YFCGenericCacheLoader.java:59)
at com.sterlingcommerce.woodstock.util.frame.cache.CacheManager.get(CacheManager.java:470)
at com.sterlingcommerce.woodstock.util.frame.cache.CacheManager.get(CacheManager.java:340)
at com.yantra.yfc.cache.YFCGenericCacheLoader.getFromCache(YFCGenericCacheLoader.java:84)
at com.yantra.integration.adapter.IntegrationFlowFactoryImpl.getIntegrationFlow(IntegrationFlowFactoryImpl.java:58)
at com.yantra.interop.services.api.ApiRequestDispatcher.executeFlow(ApiRequestDispatcher.java:87)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
at java.lang.reflect.Method.invoke(Method.java:620)
at com.yantra.interop.client.YIFApiInvokeHandler.callMethod(YIFApiInvokeHandler.java:65)
at com.yantra.interop.client.YIFApiInvokeHandler.invoke(YIFApiInvokeHandler.java:43)
at com.sun.proxy.$Proxy0.executeFlow(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:56)
at java.lang.reflect.Method.invoke(Method.java:620)
at com.yantra.interop.client.InteropLocalClientAdapter.invoke(InteropLocalClientAdapter.java:42)
at com.yantra.interop.client.ClientAPICallHandler.invoke(ClientAPICallHandler.java:77)
at com.sun.proxy.$Proxy0.executeFlow(Unknown Source)
at com.yantra.interop.services.flowcomponents.CompositeFlowComponent.execute(CompositeFlowComponent.java:91)
at com.yantra.interop.services.flowcomponents.CompositeFlowComponent.send(CompositeFlowComponent.java:107)
at com.yantra.integration.adapter.FlowExecutor.execute(FlowExecutor.java:214)
at com.yantra.integration.adapter.IntegrationAdapter.onMessage(IntegrationAdapter.java:342)
at com.yantra.interop.services.jms.JMSContextMediator.processMessage(JMSContextMediator.java:102)
at com.yantra.interop.services.jms.JMSConsumer.onMessage(JMSConsumer.java:171)
at com.yantra.interop.services.jms.JMSConsumer.run(JMSConsumer.java:349)
... 1 more
Caused by: java.lang.ClassNotFoundException: weblogic.iiop.UtilDelegateImpl (no security manager: RMI class loader disabled)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:406)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:198)
at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:649)
at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:231)
at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:164)
at javax.rmi.CORBA.Util.loadDelegateClass(Util.java:383)
at javax.rmi.CORBA.Util.createDelegate(Util.java:352)
... 57 more
[system]: JMSProducer

Cause

It's caused by java.lang.ClassNotFoundException: weblogic.iiop.UtilDelegateImpl

Environment

Weblogic JMS

Diagnosing The Problem

The missing class exists in wlclient.jar. This jar needs to be added to AGENTDynamicClassPath.cfg file.

Resolving The Problem

The following is mentioned in the IBM document
If you are using WebLogic 12.1.3 (or later) and JDK 1.8, add wljmsclient.jar and wlclient.jar to the AGENTDynamicclasspath.cfg.

Please be noted, wlclient.jar needs to be precedent other weblogic jars as follows:
VENDOR_JAR=&INSTALL_DIR;/jar/Utilities/1/wlclient.jar
VENDOR_JAR=&INSTALL_DIR;/jar/Utilities/1/wlt3jmsclient.jar
VENDOR_JAR=&INSTALL_DIR;/jar/Utilities/1/wlthint3client.jar


[{"Product":{"code":"SS6PEW","label":"Sterling Order Management"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Documentation","Platform":[{"code":"PF016","label":"Linux"}],"Version":"9.5","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
16 June 2018

UID

swg22000841