AnsweredAssumed Answered

Could not stage: com/ibm/mq/MQMessage

Question asked by narasimharao.x.lingam on Apr 24, 2018
Latest reply on Apr 24, 2018 by MarcyNunns

Hi Kevin, @kevin.bowman

Recently we have migrated to DevTest 10.2 and migrated all VS. I have done Sanity test by creating a test suite and everything was working. However, when I run the same test suite today I am getting following error. Test case has IBM Send Receive step to put a message. Kindly assist me.. thanks

 

Note: We have not placed "MQ JAR" files under lib folder on server. However, whenever we stop VSE, we will set the MQ JAR files environment path. Do I need to set MQ JAR environment variables whenever I re/start Coorddinator and Simulator Server?

 

| Exception: ============================================================================ | Message: Could not stage: com/ibm/mq/MQMessage ---------------------------------------------------------------------------- | Trapped Exception: com/ibm/mq/MQMessage | Trapped Message: java.lang.NoClassDefFoundError: com/ibm/mq/MQMessage ---------------------------------------------------------------------------- STACK TRACE java.lang.NoClassDefFoundError: com/ibm/mq/MQMessage at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class.getDeclaredMethod(Class.java:2128) at com.thoughtworks.xstream.core.util.SerializationMembers.getMethod(SerializationMembers.java:175) at com.thoughtworks.xstream.core.util.SerializationMembers.getMethod(SerializationMembers.java:160) at com.thoughtworks.xstream.core.util.SerializationMembers.getRRMethod(SerializationMembers.java:191) at com.thoughtworks.xstream.core.util.SerializationMembers.callWriteReplace(SerializationMembers.java:97) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:77) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:256) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:232) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.(AbstractReflectionConverter.java:195) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:141) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:89) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64) at com.thoughtworks.xstream.converters.collections.ArrayConverter.marshal(ArrayConverter.java:45) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:256) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:232) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.(AbstractReflectionConverter.java:195) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:141) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:89) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:256) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:232) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.(AbstractReflectionConverter.java:195) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:141) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:89) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:256) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:232) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.(AbstractReflectionConverter.java:195) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:141) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:89) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:256) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:232) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.(AbstractReflectionConverter.java:195) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:141) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:89) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64) at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:74) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:256) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:232) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.(AbstractReflectionConverter.java:195) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:141) at com.itko.util.SerialBox$SerialBoxConverter.marshal(SerialBox.java:162) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43) at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37) at com.thoughtworks.xstream.XStream.marshal(XStream.java:1043) at com.thoughtworks.xstream.XStream.marshal(XStream.java:1032) at com.thoughtworks.xstream.XStream.toXML(XStream.java:1005) at com.thoughtworks.xstream.XStream.toXML(XStream.java:992) at com.itko.util.SerialBox.(SerialBox.java:110) at com.itko.lisa.test.TestCase.writeReplace(TestCase.java:1998) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:1118) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1136) at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1378) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548) at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509) at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) at com.itko.activemq.command.ActiveMQObjectMessage.storeContent(ActiveMQObjectMessage.java:105) at com.itko.activemq.command.ActiveMQObjectMessage.setObject(ActiveMQObjectMessage.java:162) at com.itko.activemq.ActiveMQSession.createObjectMessage(ActiveMQSession.java:380) at com.itko.lisa.net.MessageHandler.makeObjectMessageSerialize(MessageHandler.java:204) at com.itko.lisa.net.MessageHandler.makeObjectMessage(MessageHandler.java:104) at com.itko.lisa.net.Transporter.enqueue(Transporter.java:338) at com.itko.lisa.net.Transporter.transport(Transporter.java:164) at com.itko.lisa.net.Transactor.transact(Transactor.java:68) at com.itko.lisa.net.ClientBase.transact(ClientBase.java:361) at com.itko.lisa.net.ClientBase.invokeMethod(ClientBase.java:271) at com.itko.lisa.net.SimulatorClient.initRun(SimulatorClient.java:104) at com.itko.lisa.coordinator.CoordinatorImpl.addSimulator(CoordinatorImpl.java:511) at com.itko.lisa.coordinator.CoordinatorImpl.addSimulator(CoordinatorImpl.java:465) at com.itko.lisa.coordinator.CoordinatorImpl.processAutoSimulator(CoordinatorImpl.java:556) at com.itko.lisa.coordinator.CoordinatorImpl.addSimulator(CoordinatorImpl.java:433) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.itko.lisa.net.RemoteMethodExec.execute(RemoteMethodExec.java:57) at com.itko.lisa.net.ClientBase.invokeColocated(ClientBase.java:284) at com.itko.lisa.net.ClientBase.invokeMethod(ClientBase.java:268) at com.itko.lisa.net.TestCoordinatorClient.addSimulator(TestCoordinatorClient.java:103) at com.itko.lisa.coordinator.runpatterns.RunNTimesPattern.subInitRun(RunNTimesPattern.java:91) at com.itko.lisa.coordinator.runpatterns.LoadPattern.initRun(LoadPattern.java:131) at com.itko.lisa.coordinator.CoordinatorImpl.setupRunDoc(CoordinatorImpl.java:1358) at com.itko.lisa.coordinator.CoordinatorImpl.setTestCase(CoordinatorImpl.java:1417) at com.itko.lisa.coordinator.CoordinatorImpl.setTestCase(CoordinatorImpl.java:1481) at com.itko.lisa.coordinator.CoordinatorImpl.stageModelArchive(CoordinatorImpl.java:1239) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.itko.lisa.net.RemoteMethodExec.execute(RemoteMethodExec.java:57) at com.itko.lisa.net.ServerRequestHandler.processRMIMessage(ServerRequestHandler.java:533) at com.itko.lisa.net.ServerRequestHandler.access$600(ServerRequestHandler.java:70) at com.itko.lisa.net.ServerRequestHandler$5.run(ServerRequestHandler.java:451) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.lang.ClassNotFoundException: com.ibm.mq.MQMessage at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at 

 

Thanks,

Narasimha.

Outcomes