|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Need inputs on MQJMS bug!!! |
« View previous topic :: View next topic » |
Author |
Message
|
Paramita |
Posted: Tue Mar 09, 2010 6:58 am Post subject: Need inputs on MQJMS bug!!! |
|
|
Newbie
Joined: 30 Oct 2009 Posts: 7
|
Hi,
I am trying to implement MQSeries client program using JMS for MQSeries V7.0. Following steps have been carried out:
1. Create the binding file using MQExplorer
2. All the jar files and other files kept in directory java/lib for MQSeriesV7.0 has been copied to the client m/c and set in classpath.
2. JMS program, running in a diffirent m/c, is invoked .
Following exception is caught:
Exception in thread "main" com.ibm.msg.client.jms.DetailedJMSException: JMSFMQ6312: An exception occurred in the Java(tm) MQI. The Java(tm) MQI has thrown an exception describing the problem. See the linked exception for further information.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.ibm.msg.client.commonservices.j2se.NLSServices.createException(NLSServices.java:313)
at com.ibm.msg.client.commonservices.nls.NLSServices.createException(NLSServices.java:390)
at com.ibm.msg.client.wmq.factories.WMQConnectionFactory.createV7ProviderConnection(WMQConnectionFactory.java:6793)
at com.ibm.msg.client.wmq.factories.WMQConnectionFactory.createProviderConnection(WMQConnectionFactory.java:6204)
at com.ibm.msg.client.jms.admin.JmsConnectionFactoryImpl.createConnection(JmsConnectionFactoryImpl.java:278)
at com.ibm.mq.jms.MQConnectionFactory.createCommonConnection(MQConnectionFactory.java:6155)
at com.ibm.mq.jms.MQConnectionFactory.createConnection(MQConnectionFactory.java:6209)
at DemoEMSClient.main(DemoEMSClient.java:54)
Caused by: com.ibm.mq.jmqi.JmqiException: CC=2;RC=2495;AMQ8568: The native JNI library 'mqjbnd' was not found. [3=mqjbnd]
at com.ibm.mq.jmqi.local.LocalMQ$1.run(LocalMQ.java:277)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.mq.jmqi.local.LocalMQ.initialise_inner(LocalMQ.java:242)
at com.ibm.mq.jmqi.local.LocalMQ.initialise(LocalMQ.java:208)
at com.ibm.mq.jmqi.local.LocalMQ.<init>(LocalMQ.java:991)
at com.ibm.mq.jmqi.local.LocalServer.<init>(LocalServer.java:173)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.ibm.mq.jmqi.JmqiEnvironment.getInstance(JmqiEnvironment.java:669)
at com.ibm.mq.jmqi.JmqiEnvironment.getMQI(JmqiEnvironment.java:605)
at com.ibm.msg.client.wmq.factories.WMQConnectionFactory.createV7ProviderConnection(WMQConnectionFactory.java:6785)
... 5 more
Caused by: java.lang.UnsatisfiedLinkError: C:\Program Files\Java\jre1.5.0_14\lib\mqjbnd.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.ibm.mq.jmqi.local.LocalMQ.loadLib(LocalMQ.java:961)
at com.ibm.mq.jmqi.local.LocalMQ$1.run(LocalMQ.java:256)
... 17 more
Any help on this would be highly appreciated.
Thanks,
Paramita. |
|
Back to top |
|
 |
zpat |
Posted: Tue Mar 09, 2010 7:10 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Quote: |
Caused by: com.ibm.mq.jmqi.JmqiException: CC=2;RC=2495;AMQ8568: The native JNI library 'mqjbnd' was not found. [3=mqjbnd] |
How can you run the JMS program on a different machine?
Install the MQ client properly (it's free), rather than copy MQ JAR files, that way you can display the MQ client version, and you can maintain it properly with fixpacks. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Mar 09, 2010 8:07 am Post subject: Re: Need inputs on MQJMS bug!!! |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Paramita wrote: |
The Java(tm) MQI has thrown an exception describing the problem. See the linked exception for further information |
What does it say?
Paramita wrote: |
Any help on this would be highly appreciated.
|
The linked exception will help. Though I feel my associate is on the right track. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Mar 09, 2010 2:07 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Quote: |
Caused by: com.ibm.mq.jmqi.JmqiException: CC=2;RC=2495;AMQ8568: The native JNI library 'mqjbnd' was not found. [3=mqjbnd]
|
You would only need a native library for the connection if you set up the connection in bindings mode. This means that qmgr and java client are on the same box. If you are trying for a client on a different box you must set up your connection as TCP/MQ_Client (from memory) or the equivalent.
Your JNDI is setup incorrectly.
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|