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 » The native JNI library 'mqjbnd' was not found. [3=mqjbnd]

Post new topic  Reply to topic
 The native JNI library 'mqjbnd' was not found. [3=mqjbnd] « View previous topic :: View next topic » 
Author Message
ELU
PostPosted: Thu Jul 01, 2010 12:05 am    Post subject: The native JNI library 'mqjbnd' was not found. [3=mqjbnd] Reply with quote

Newbie

Joined: 18 Jun 2010
Posts: 6

Hi...
I am getting the following exception while running the java code to connect to Mq queue manger using MQ Bind option.

Env: AIX
MQ: 7.0.0.1 64 bit.

Also i tried running the java code like this
java -Djava.library.path=/usr/mqm/java/lib/ MQSample

Env variable:
CLASSPATH=:/usr/mqm/java/lib/com.ibm.mq.jar:/usr/mqm/java/lib/com.ibm.mqjms.jar:
/usr/mqm/samp/jms/samples:/usr/mqm/samp/wmqjava/samples

PATH=/usr/bin:/etc:/usr/sbin:/usr/ucb:/var/mqm/bin:/usr/bin/X11:/usr/java5_64/bi
n:/sbin:.

LD_LIBRARY_PATH=/usr/mqm/java/lib64
MQ_JAVA_DATA_PATH=/var/mqm
MQ_JAVA_INSTALL_PATH=/usr/mqm/java
MQ_JAVA_LIB_PATH=/usr/mqm/java/lib64


Error:
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(AccessController.java:197
)
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(NativeConstruct
orAccessorImpl.java:67)...

Please help me in this already i have wasted 3 days:-(.....
Back to top
View user's profile Send private message
ELU
PostPosted: Thu Jul 01, 2010 12:07 am    Post subject: Reply with quote

Newbie

Joined: 18 Jun 2010
Posts: 6

also please find the o/p of dspmqver -p 4

$ dspmqver -p 4
Name: Common Services for Java Platform, Standard Edition
Version: 7.0.1.0
CMVC Level: k000-L090724
Build Type: Production

Name: IBM WebSphere MQ
Version: 7.0.1.0
CMVC Level: k000-L090724 mqjbnd=CC=2;RC=2495;AMQ8568: The native JNI library 'm
qjbnd' was not found. [3=mqjbnd]::mqjbnd (A file or directory in the path name d
oes not exist.)
Build Type: Production

Name: Java Message Service Client
Version: 7.0.1.0
CMVC Level: k000-L090724
Build Type: Production

Name: WebSphere MQ classes for Java Message Service
Version: 7.0.1.0
CMVC Level: k000-L090724
Build Type: Production
Back to top
View user's profile Send private message
calanais
PostPosted: Thu Jul 01, 2010 12:48 am    Post subject: Reply with quote

Apprentice

Joined: 12 Mar 2010
Posts: 32

Hi;

Couple of things here:

Check that the JDK and OS levels are up-to-date. There have been reports that older JDK/OS patch combinations can result in this apparent error - just on AIX btw.

The java.library.path and the ld_library_path are pointing at a mix of 32 / 64 bit libraries. This will cause problems at some point. Ensure that everything is of the same 'bitness' JVM included.

I would focus on getting your application to work first off. Also watch out if the standard installation location is present.. there might be symbolic links in there from a previous MQ installation.

Search the infocentre for the dltmqlnk command.
Back to top
View user's profile Send private message
ELU
PostPosted: Sun Jul 04, 2010 7:47 pm    Post subject: Reply with quote

Newbie

Joined: 18 Jun 2010
Posts: 6

Yes you are correct....

After deleting the symbolic link.....its working ...

dltmqlnk /usr/lib/

On AIX only, using a 64-bit JVM:  
   
The 32-bit symbolic links  in /usr/lib which point to /usr/mqm/lib need to be deleted to avoid the native library trying to link to them.  This is done using the WMQ command:  dltmqlnk  
   
Note: The command "crtmqlnk" can be used to add the 32-bit symlinks back again.  


Thanks a lot...
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » The native JNI library 'mqjbnd' was not found. [3=mqjbnd]
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.