ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » java.lang.NoSuchMethodError

Post new topic  Reply to topic
 java.lang.NoSuchMethodError « View previous topic :: View next topic » 
Author Message
mustang
PostPosted: Wed Dec 31, 2014 10:38 am    Post subject: java.lang.NoSuchMethodError Reply with quote

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

Thanks!
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Dec 31, 2014 1:45 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

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
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » java.lang.NoSuchMethodError
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.