Service Virtualization

Expand all | Collapse all

IBM JMS jars are missing from the DevTest CLASSPATH.   DevTest 10.x

Jump to Best Answer
  • 1.  IBM JMS jars are missing from the DevTest CLASSPATH.   DevTest 10.x

    Posted 05-29-2018 01:19 PM

    Getting the following error for DevTest 10.x workstation when I launch a test case that has a publishMQ action.  I see that this has been deprecated does this feature no longer work?  I added the jar files to the ~lib directory both locally and on the server. 

     

     

    Please note that the required IBM JMS jars are missing from the DevTest CLASSPATH.  You will need some combination of: com.ibm.mqjms.jar, com.ibm.mqbind.jar, com.ibm.mq.pcf.jar, com.ibm.mq.jar, dhbcore.jar.  Unfortunately, different versions of MQ will have and need some or all of these jars.



  • 2.  Re: IBM JMS jars are missing from the DevTest CLASSPATH.   DevTest 10.x

    Posted 05-29-2018 01:22 PM

    Do I need to replace the publish action with the IBM MQ Native Send/Receive?



  • 3.  Re: IBM JMS jars are missing from the DevTest CLASSPATH.   DevTest 10.x

    Posted 05-29-2018 01:45 PM

    The older steps still work fine, but make sure you have all the jars mentioned in the documentation:

    Third-Party File Requirements - DevTest Solutions - 10.3 - CA Technologies Documentation 



  • 4.  Re: IBM JMS jars are missing from the DevTest CLASSPATH.   DevTest 10.x

    Posted 05-29-2018 01:35 PM

    What version of IBM MQ are you using? Can you paste the entire stack trace here ? 



  • 5.  Re: IBM JMS jars are missing from the DevTest CLASSPATH.   DevTest 10.x

    Posted 05-29-2018 01:52 PM

    MQ version is 8.3 I think.  Here are the files that were added to my lib

    com.ibm.mq.allclient-8.0.0.7.jar

    com.ibm.mq.commonservices.jar

    com.ibm.mq.commonservices-8.0.0.7.jar

     

     

    java.util.ServiceConfigurationError: java.nio.charset.spi.CharsetProvider: Provider com.ibm.mq.jmqi.CustomCharsetProvider not a subtype
    at java.util.ServiceLoader.fail(ServiceLoader.java:239)
    at java.util.ServiceLoader.access$300(ServiceLoader.java:185)
    at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:376)
    at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
    at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
    at java.nio.charset.Charset$1.getNext(Charset.java:352)
    at java.nio.charset.Charset$1.hasNext(Charset.java:365)
    at java.nio.charset.Charset$3.run(Charset.java:582)
    at java.nio.charset.Charset$3.run(Charset.java:573)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.nio.charset.Charset.availableCharsets(Charset.java:572)
    at com.itko.lisa.test.FilterCopybook.<init>(FilterCopybook.java:98)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at java.lang.Class.newInstance(Class.java:442)
    at com.itko.lisa.test.FilterBaseImpl.makeFilter(FilterBaseImpl.java:361)
    at com.itko.lisa.editor.FilterController.getParameters(FilterController.java:365)
    at com.itko.lisa.editor.FilterController.setType(FilterController.java:340)
    at com.itko.lisa.editor.Intersections.makeControllerForTcClass(Intersections.java:152)
    at com.itko.lisa.editor.Intersections.preloadControllers(Intersections.java:127)
    at com.itko.lisa.editor.Intersections.<init>(Intersections.java:112)
    at com.itko.lisa.editor.FilterController.<clinit>(FilterController.java:72)
    at com.itko.lisa.editor.TestCaseInfo.initFromTestCase(TestCaseInfo.java:420)
    at com.itko.lisa.editor.TestCaseInfo.initFromScratchTestCase(TestCaseInfo.java:386)
    at com.itko.lisa.editor.TestCaseInfo.<init>(TestCaseInfo.java:239)
    at com.itko.lisa.editor.TestCaseInfo.createTestCaseInfo(TestCaseInfo.java:317)
    at com.itko.lisa.editor.TestCaseEditor$2.doCallback(TestCaseEditor.java:385)
    at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194)
    at java.lang.Thread.run(Thread.java:745)
    2018-05-29 17:46:57,277Z (13:46) [ProcDlgThreadCallbk@53aafac4] ERROR com.itko.lisa.editor.Intersections - We can't find or construct: com.itko.lisa.test.FilterCopybook
    java.util.ServiceConfigurationError: java.nio.charset.spi.CharsetProvider: Provider com.ibm.mq.jmqi.CustomCharsetProvider not a subtype
    at java.util.ServiceLoader.fail(ServiceLoader.java:239)
    at java.util.ServiceLoader.access$300(ServiceLoader.java:185)
    at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:376)
    at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
    at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
    at java.nio.charset.Charset$1.getNext(Charset.java:352)
    at java.nio.charset.Charset$1.hasNext(Charset.java:365)
    at java.nio.charset.Charset$3.run(Charset.java:582)
    at java.nio.charset.Charset$3.run(Charset.java:573)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.nio.charset.Charset.availableCharsets(Charset.java:572)
    at com.itko.lisa.test.FilterCopybook.<init>(FilterCopybook.java:98)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at java.lang.Class.newInstance(Class.java:442)
    at com.itko.lisa.test.FilterBaseImpl.makeFilter(FilterBaseImpl.java:361)
    at com.itko.lisa.editor.FilterController.getParameters(FilterController.java:365)
    at com.itko.lisa.editor.FilterController.setType(FilterController.java:340)
    at com.itko.lisa.editor.Intersections.makeControllerForTcClass(Intersections.java:152)
    at com.itko.lisa.editor.Intersections.preloadControllers(Intersections.java:127)
    at com.itko.lisa.editor.Intersections.<init>(Intersections.java:112)
    at com.itko.lisa.editor.FilterController.<clinit>(FilterController.java:140)
    at com.itko.lisa.editor.TestCaseInfo.initFromTestCase(TestCaseInfo.java:420)
    at com.itko.lisa.editor.TestCaseInfo.initFromScratchTestCase(TestCaseInfo.java:386)
    at com.itko.lisa.editor.TestCaseInfo.<init>(TestCaseInfo.java:239)
    at com.itko.lisa.editor.TestCaseInfo.createTestCaseInfo(TestCaseInfo.java:317)
    at com.itko.lisa.editor.TestCaseEditor$2.doCallback(TestCaseEditor.java:385)
    at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194)
    at java.lang.Thread.run(Thread.java:745)
    2018-05-29 17:46:57,401Z (13:46) [ProcDlgThreadCallbk@53aafac4] INFO com.itko.lisa.net.ServerRequestHandler - Scheduling removal of tcp://DTCB00443CB47EA:2008/4737D52B636811E89B56025420524153
    2018-05-29 17:46:58,369Z (13:46) [ProcDlgThreadCallbk@53aafac4] ERROR com.itko.lisa.editor.model.FiltersEditor - Unable to load filter class com.itko.lisa.test.FilterCopybook
    java.util.ServiceConfigurationError: java.nio.charset.spi.CharsetProvider: Provider com.ibm.mq.jmqi.CustomCharsetProvider not a subtype
    at java.util.ServiceLoader.fail(ServiceLoader.java:239)
    at java.util.ServiceLoader.access$300(ServiceLoader.java:185)
    at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:376)
    at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
    at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
    at java.nio.charset.Charset$1.getNext(Charset.java:352)
    at java.nio.charset.Charset$1.hasNext(Charset.java:365)
    at java.nio.charset.Charset$3.run(Charset.java:582)
    at java.nio.charset.Charset$3.run(Charset.java:573)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.nio.charset.Charset.availableCharsets(Charset.java:572)
    at com.itko.lisa.test.FilterCopybook.<init>(FilterCopybook.java:98)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at java.lang.Class.newInstance(Class.java:442)
    at com.itko.lisa.editor.model.FiltersEditor.canBeAdded(FiltersEditor.java:103)
    at com.itko.lisa.editor.model.EditorUtils.createAddMenus(EditorUtils.java:281)
    at com.itko.lisa.editor.model.ControllerListEditor.buildAddMenu(ControllerListEditor.java:1313)
    at com.itko.lisa.editor.model.ControllerListEditor.createAddMenu(ControllerListEditor.java:1301)
    at com.itko.lisa.editor.model.StepInfoEditor.createAddMenus(StepInfoEditor.java:175)
    at com.itko.lisa.editor.model.ModelEditor.createAddMenus(ModelEditor.java:693)
    at com.itko.lisa.editor.model.Graph.<init>(Graph.java:354)
    at com.itko.lisa.editor.model.ModelEditor.<init>(ModelEditor.java:361)
    at com.itko.lisa.editor.TestCaseEditor.display(TestCaseEditor.java:486)
    at com.itko.lisa.editor.TestCaseEditor.access$500(TestCaseEditor.java:72)
    at com.itko.lisa.editor.TestCaseEditor$2.doCallback(TestCaseEditor.java:407)
    at com.itko.util.swing.panels.ProcessingDialog$2.run(ProcessingDialog.java:194)
    at java.lang.Thread.run(Thread.java:745)
    2018-05-29 17:47:02,253Z (13:47) [AWT-EventQueue-0] ERROR com.itko.lisa.jms.mq.MQUtilities - IBM classes are needed:
    java.lang.NoClassDefFoundError: javax/jms/JMSRuntimeException
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:348)
    at com.itko.lisa.jms.mq.MQUtilities.verifyClassesAvailable(MQUtilities.java:290)
    at com.itko.lisa.esb.ibm.IBMMQStepEditor.makeConnectInfoPanel(IBMMQStepEditor.java:48)
    at com.itko.lisa.jms.JMSNodeEditor.setup(JMSNodeEditor.java:2067)
    at com.itko.lisa.esb.ibm.IBMMQStepEditor.setup(IBMMQStepEditor.java:41)
    at com.itko.lisa.jms.JMSNodeEditor.display(JMSNodeEditor.java:2294)
    at com.itko.lisa.editor.ControllerBase.showEditor(ControllerBase.java:227)
    at com.itko.lisa.editor.model.ModelEditor.showEditor(ModelEditor.java:848)
    at com.itko.lisa.editor.model.ModelEditor.showEditor(ModelEditor.java:833)
    at com.itko.lisa.editor.model.StepInfoEditor.propertyChange(StepInfoEditor.java:319)
    at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
    at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:328)
    at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263)
    at java.awt.Component.firePropertyChange(Component.java:8428)
    at com.itko.lisa.gui.CollapsiblePanel.propertyChange(CollapsiblePanel.java:256)
    at com.itko.lisa.editor.model.TwistyEditor.propertyChange(TwistyEditor.java:78)
    at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
    at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:328)
    at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263)
    at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:303)
    at java.awt.Component.firePropertyChange(Component.java:8448)
    at javax.swing.JComponent.firePropertyChange(JComponent.java:4491)
    at com.itko.lisa.gui.CollapsibleBar.setExpanded(CollapsibleBar.java:216)
    at com.itko.lisa.gui.CollapsiblePanel.setExpanded(CollapsiblePanel.java:218)
    at com.itko.lisa.editor.model.StepInfoEditor.editController(StepInfoEditor.java:372)
    at com.itko.lisa.editor.model.ModelEditor.editController(ModelEditor.java:749)
    at com.itko.lisa.editor.model.Graph$8.run(Graph.java:1872)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
    Caused by: java.lang.ClassNotFoundException: javax.jms.JMSRuntimeException
    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 java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 42 more
    2018-05-29 17:48:04,190Z (13:48) [AWT-EventQueue-0] ERROR com.itko.lisa.jms.mq.MQUtilities - IBM classes are needed:
    java.lang.NoClassDefFoundError: javax/jms/JMSRuntimeException
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:348)
    at com.itko.lisa.jms.mq.MQUtilities.verifyClassesAvailable(MQUtilities.java:290)
    at com.itko.lisa.esb.ibm.IBMMQStepEditor.setMQAdvancedButtonActiveState(IBMMQStepEditor.java:346)
    at com.itko.lisa.esb.ibm.IBMMQStepEditor.displayConnectPanel(IBMMQStepEditor.java:86)
    at com.itko.lisa.jms.JMSNodeEditor.display(JMSNodeEditor.java:2296)
    at com.itko.lisa.editor.ControllerBase.showEditor(ControllerBase.java:227)
    at com.itko.lisa.editor.model.ModelEditor.showEditor(ModelEditor.java:848)
    at com.itko.lisa.editor.model.ModelEditor.showEditor(ModelEditor.java:833)
    at com.itko.lisa.editor.model.StepInfoEditor.propertyChange(StepInfoEditor.java:319)
    at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
    at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:328)
    at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263)
    at java.awt.Component.firePropertyChange(Component.java:8428)
    at com.itko.lisa.gui.CollapsiblePanel.propertyChange(CollapsiblePanel.java:256)
    at com.itko.lisa.editor.model.TwistyEditor.propertyChange(TwistyEditor.java:78)
    at java.beans.PropertyChangeSupport.fire(PropertyChangeSupport.java:335)
    at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:328)
    at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:263)
    at java.beans.PropertyChangeSupport.firePropertyChange(PropertyChangeSupport.java:303)
    at java.awt.Component.firePropertyChange(Component.java:8448)
    at javax.swing.JComponent.firePropertyChange(JComponent.java:4491)
    at com.itko.lisa.gui.CollapsibleBar.setExpanded(CollapsibleBar.java:216)
    at com.itko.lisa.gui.CollapsiblePanel.setExpanded(CollapsiblePanel.java:218)
    at com.itko.lisa.editor.model.StepInfoEditor.editController(StepInfoEditor.java:372)
    at com.itko.lisa.editor.model.ModelEditor.editController(ModelEditor.java:749)
    at com.itko.lisa.editor.model.Graph$8.run(Graph.java:1872)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
    at java.awt.EventQueue.access$500(EventQueue.java:97)
    at java.awt.EventQueue$3.run(EventQueue.java:709)
    at java.awt.EventQueue$3.run(EventQueue.java:703)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
    Caused by: java.lang.ClassNotFoundException: javax.jms.JMSRuntimeException
    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 java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    ... 41 more



  • 6.  Re: IBM JMS jars are missing from the DevTest CLASSPATH.   DevTest 10.x
    Best Answer

    Posted 05-29-2018 02:12 PM

    This is the cause of the pop-up you see in the UI:

    > java.lang.NoClassDefFoundError: javax/jms/JMSRuntimeException

     

    You will need javax.jms-api-2.0.jar

     

    As for this:

    > java.util.ServiceConfigurationError: java.nio.charset.spi.CharsetProvider: Provider com.ibm.mq.jmqi.CustomCharsetProvider not a subtype

     

    I'm not sure.  Is there a reason you listed two different versions of com.ibm.mq.commonservices.jar?

    > com.ibm.mq.commonservices.jar

    > com.ibm.mq.commonservices-8.0.0.7.jar



  • 7.  Re: IBM JMS jars are missing from the DevTest CLASSPATH.   DevTest 10.x

    Posted 05-29-2018 02:24 PM

    that is I how copied it from the server..but I think that is how they differentiate different versions.  I am going to pull down the correct versions and rename them just to ensure I have the correct files?

     

    The MQ server I am trying to connect to is 8.0.0.8.   Do I need this file if we aren't using JMS  (In addition, if you are using WebSphere MQ in JMS mode, the javax.jms-api-2.0.jar file is required.)  I don't see that file anywhere and we are not using JMS.  



  • 8.  Re: IBM JMS jars are missing from the DevTest CLASSPATH.   DevTest 10.x

    Posted 05-29-2018 02:52 PM

    Added javax.jms-api-2.0.jar.  Now I am not longer getting the pop-ups.  Thanks to All.