Posted: Wed Dec 31, 2014 10:38 am Post subject: java.lang.NoSuchMethodError
Acolyte
Joined: 07 Feb 2006 Posts: 72
Hi. We are receiving the error below when our JUnit tests are run. Any suggestions/ideas would be much appreciated!
java.lang.NoSuchMethodError: com/ibm/msg/client/commonservices/cssystem/CSSystem.currentPlatform()Lcom/ibm/msg/client/commonservices/cssystem/CSSystem$Platform;
at com.ibm.mq.jmqi.JmqiEnvironment.getJmqiCodepage(JmqiEnvironment.java:302)
at com.ibm.mq.jmqi.JmqiEnvironment.lookupDefaultCharset(JmqiEnvironment.java:356)
at com.ibm.mq.jmqi.JmqiEnvironment.<init>(JmqiEnvironment.java:267)
at com.ibm.mq.jmqi.system.JmqiSystemEnvironment.<init>(JmqiSystemEnvironment.java:84)
at com.ibm.mq.jmqi.JmqiFactory.getInstance(JmqiFactory.java:128)
at com.ibm.mq.jmqi.JmqiFactory.getInstance(JmqiFactory.java:91)
at com.ibm.msg.client.wmq.factories.WMQConnectionFactory.initialiseWMQConnectionFactory(WMQConnectionFactory.java:6032)
at com.ibm.msg.client.wmq.factories.WMQConnectionFactory.<init>(WMQConnectionFactory.java:6010)
at com.ibm.msg.client.wmq.factories.WMQFactoryFactory.createProviderConnectionFactory(WMQFactoryFactory.java:391)
at com.ibm.msg.client.jms.admin.JmsConnectionFactoryImpl.setProviderFactory(JmsConnectionFactoryImpl.java:174)
at com.ibm.mq.jms.MQConnectionFactory.<init>(MQConnectionFactory.java:271)
at com.ibm.mq.jms.MQConnectionFactoryFactory.getObjectInstance(MQConnectionFactoryFactory.java:86)
at javax.naming.spi.NamingManager.getObjectInstanceByFactoryInReference(NamingManager.java:485)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:350)
at com.sun.jndi.fscontext.RefFSContext.lookup(RefFSContext.java:146)
at com.sun.jndi.fscontext.FSContext.lookup(FSContext.java:127)
at javax.naming.InitialContext.lookup(InitialContext.java:436)
at com.company.client.JMSAdapter.getConnectionFactory(JMSAdapter.java:177)
at com.company.client.JMSAdapter.getConnection(JMSAdapter.java:185)
at com.company.client.JMSAdapter.getSession(JMSAdapter.java:194)
at com.company.client.JMSAdapter.sendMessage(JMSAdapter.java:157)
at com.company.client.JMSAdapterTest.testReceiveMessage(JMSAdapterTest.java:71)
The java.naming.factory.initial property is set to com.sun.jndi.fscontext.RefFSContextFactory
The java.naming.provider.url property is set to the .bindings file created by JMSAdmin.bat (earlier versions).
It is run from a junit task of ant 1.81.
The WMQ Client jars are WebSphere MQ Version 7.5.
Run on Windows Server 2012 R2 Standard
It was working on Windows Server 2003 R2 with WebSphere MQ Version 7.0.1.3 client jars
What is your java provider and version?
What is the call (java source) creating this exception?
Are all the jars needed on the classpath? (remember some jar files change names depending on version)
Are all the jar files at the correct version? _________________ MQ & Broker admin
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum