zhiqinghuang / mqjexplorer

Automatically exported from code.google.com/p/mqjexplorer
0 stars 0 forks source link

java.lang.UnsatisfiedLinkError: no mqjbnd05 in java.library.path #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. using mq 7.0.x on unix, there is no mqjbnd05.so file on unix
there is a libmqjbnd.so file
2. I added the following to the runme.sh however still get the exception

MQLIB=/opt/mqm/java/lib

........-Djava.library.path=$MQLIB

Original issue reported on code.google.com by sperezin...@gmail.com on 16 Mar 2011 at 6:49

GoogleCodeExporter commented 8 years ago
thanks :)

Original comment by mohamed.saligh on 31 May 2011 at 6:56

GoogleCodeExporter commented 8 years ago
Actually, MQJExplorer uses the Java library of IBM MQSeries 6.x
The System Library mqjbnd05.so was in the old IBM MQSeries 5.x
For using libmqjbnd.so you have to change the current library to the IBM 
MQSeries 7.x
In the next week, I'll publish a new version of MQJExplorer with the new 
library.

Original comment by marcora...@gmail.com on 16 Jul 2011 at 2:14

GoogleCodeExporter commented 8 years ago
hi, I tried to connect to a remote MQ- and tried to discover the queue.
I am getting the below error. I used the client "hermesJMS". Please let me know 
your thoughts?

Kadinamkulam

java.lang.UnsatisfiedLinkError: no mqjbnd05 in java.library.path

ava.lang.NoClassDefFoundError: Could not initialize class 
com.ibm.mq.server.MQSESSION
    at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONServer.java:70)
    at com.ibm.mq.MQSESSION.getSession(MQSESSION.java:523)
    at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:177)
    at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11._createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:179)
    at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11.createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:215)
    at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:84)
    at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:168)
    at com.ibm.mq.MQQueueManagerFactory.obtainBaseMQQueueManager(MQQueueManagerFactory.java:773)
    at com.ibm.mq.MQQueueManagerFactory.procure(MQQueueManagerFactory.java:698)
    at com.ibm.mq.MQQueueManagerFactory.constructQueueManager(MQQueueManagerFactory.java:658)
    at com.ibm.mq.MQQueueManagerFactory.createQueueManager(MQQueueManagerFactory.java:154)
    at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:527)
    at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:976)
    at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:707)
    at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:206)
    at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:76)
    at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactory.java:143)
    at hermes.impl.jms.ConnectionManagerSupport.createConnection(ConnectionManagerSupport.java:147)
    at hermes.impl.jms.ConnectionManagerSupport.createConnection(ConnectionManagerSupport.java:92

Original comment by kadinamk...@gmail.com on 22 Apr 2013 at 4:34

GoogleCodeExporter commented 8 years ago
Hi,
could you add some information ?
O.S. ?
JDK ?
MQJExplorer ?
How are you using hermesJMS ? Release ?
Do you change the shell for running the program ? could you send me a copy ?
Could you put the log level to TRACE ? and send me the log file.

Original comment by marcora...@gmail.com on 24 Apr 2013 at 4:03

GoogleCodeExporter commented 8 years ago
Hi. I've got the same problem, and solved pointing to lib64 instead of lib. 
Please check your arch type:
$ uname -a

modify runme.sh on line 70 from:
"$JAVA_CMD" ... -Dlog4j.debug com.kolban.mqjexplorer.MQJExplorer
to:
"JAVA_CMD" ... -Dlog4j.debug -Djava.library.path=/opt/mqm/java/lib64 
com.kolban.mqjexplorer.MQJExplorer

Original comment by edinho.j...@gmail.com on 18 Dec 2014 at 2:31