Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Aug 21, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 16 Mar 2011 at 6:49

@GoogleCodeExporter
Copy link
Author

thanks :)

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

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 16 Jul 2011 at 2:14

  • Changed state: Started

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 22 Apr 2013 at 4:34

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 24 Apr 2013 at 4:03

@GoogleCodeExporter
Copy link
Author

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 [email protected] on 18 Dec 2014 at 2:31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant