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 » libmqjbnd02.so: load ENOEXEC on shared library(s)

Post new topic  Reply to topic
 libmqjbnd02.so: load ENOEXEC on shared library(s) « View previous topic :: View next topic » 
Author Message
Paul Huang
PostPosted: Wed Oct 30, 2002 10:11 pm    Post subject: libmqjbnd02.so: load ENOEXEC on shared library(s) Reply with quote

Newbie

Joined: 04 Jun 2002
Posts: 8
Location: Taiwan

hello,

I have encountered a problem while trying to run the JMS IVP program
/usr/mqm/java/samples/PTPSample01.java and got the following messages:

5648-C60 (c) Copyright IBM Corp. 1999. All Rights Reserved.
MQSeries Classes for Java(tm) Message Service - Point to Point Sample 1

Creating a QueueConnectionFactory
Creating a Connection
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/mqm/lib/libmqjbnd02.so: load ENOEXEC on shared library(s) /usr/mqm/lib/libmqjbnd02.so
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1796)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1684)
at java.lang.Runtime.loadLibrary0(Runtime.java:780)
at java.lang.System.loadLibrary(System.java:865)
at com.ibm.mq.server.MQSESSION.<clinit>(MQSESSION.java:139)
at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONServer.java:67)
at com.ibm.mq.MQSESSION.getSession(MQSESSION.java:208)
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:148)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11._createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:136)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11.createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:154)
at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:80)
at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:150)
at com.ibm.mq.MQQueueManager.obtainBaseMQQueueManager(MQQueueManager.java:560)
at com.ibm.mq.MQQueueManager.construct(MQQueueManager.java:509)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:330)
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 PTPSample01.main(PTPSample01.java:171)


There is the configuration of the machine:

The Platform is AIX 5.1.0
JDK level:
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1)
Classic VM (build 1.3.1, J2RE 1.3.1 IBM AIX 5L for PowerPC (64 bit JVM) build caix641311-20011123a (JIT enabled: jitc))

MQ is 5.2 with CSD05 applied
MA88 is version 5.2

The followings are the environment:

_=/usr/bin/env
LANG=Zh_TW
LOGIN=mqm
PATH=/usr/java13_64/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/home/mqm/bin:/usr/bin/X11:/sbin:.
LC__FASTMSG=true
CGI_DIRECTORY=/var/docsearch/cgi-bin
CLASSPATH=/usr/java13_64/lib/tools.jar:/usr/mqm/java/lib/com.ibm.mq.jar:/usr/mqm/java/lib/connector.jar:/usr/mqm/java/lib:/usr/mqm/java/samples/base:/usr/mqm/java/lib/com.ibm.mqjms.jar:/usr/mqm/java/lib/jms.jar:/usr/mqm/java/lib/jndi.jar:/usr/mqm/java/lib/jta.jar:/usr/mqm/java/lib/ldap/jar:/usr/mqm/java/lib/providerutil.jar:/usr/mqm/java/samples/jms
LOGNAME=mqm
MAIL=/usr/spool/mail/mqm
LOCPATH=/usr/lib/nls/loc
DOCUMENT_SERVER_MACHINE_NAME=localhost
USER=mqm
AUTHSTATE=files
DEFAULT_BROWSER=netscape
SHELL=/usr/bin/ksh
ODMDIR=/etc/objrepos
DOCUMENT_SERVER_PORT=49213
HOME=/home/mqm
LD_LIBRARY_PATH=/usr/mqm/java/lib
TERM=vt100
MAILMSG=[YOU HAVE NEW MAIL]
ITECONFIGSRV=/etc/IMNSearch
PWD=/usr/mqm/java/samples/jms
DOCUMENT_DIRECTORY=/usr/docsearch/html
TZ=TAIST-8
ITECONFIGCL=/etc/IMNSearch/clients
ITE_DOC_SEARCH_INSTANCE=search
A__z=! LOGNAME
LIBPATH=/usr/mqm/java/lib
NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lib/nls/msg/%L/%N.cat


Thanks in advance for any comments or advises!!!
Back to top
View user's profile Send private message
bower5932
PostPosted: Thu Oct 31, 2002 7:34 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

mqjbnd02 is the older shared library. I'd double-check that you have both the latest MQ and MA88 that go together.
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Zatko55
PostPosted: Fri May 09, 2003 10:24 am    Post subject: Reply with quote

Newbie

Joined: 01 May 2003
Posts: 6
Location: Reading, PA

I'm getting this same thing... almost. I'm on AIX 5.2 with MQ 5.3:

$ java -version
java version "1.4.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0)
Classic VM (build 1.4.0, J2RE 1.4.0 IBM AIX 5L for PowerPC (64 bit JVM) build caix641401-20021126 (JIT enabled:
jitc))

$ java PTPSample01 -nojndi

5648-C60, 5724-B41, 5655-F10 (c) Copyright IBM Corp. 1999. All Rights Reserved.
Websphere MQ classes for Java(tm) Message Service - Point to Point Sample 1

Creating a QueueConnectionFactory
Creating a Connection
Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/mqm/java/lib/libmqjbnd05.so: load ENOEXEC on sh
ared library(s) /usr/mqm/java/lib/libmqjbnd05.so



I'm totally stuck. I have no idea what is wrong. When I use the old JDK1.3 I get a different error message:

$ /usr/java131/bin/java -version
java version "1.3.1"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1)
Classic VM (build 1.3.1, J2RE 1.3.1 IBM AIX build ca131-20020706 (JIT enabled: jitc))


$ /usr/java131/bin/java PTPSample01 -nojndi

5648-C60, 5724-B41, 5655-F10 (c) Copyright IBM Corp. 1999. All Rights Reserved.
Websphere MQ classes for Java(tm) Message Service - Point to Point Sample 1

Creating a QueueConnectionFactory
Creating a Connection
caught JMSException: javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'venus.queue.manager
'
linked exception: com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2058
finished
Back to top
View user's profile Send private message AIM Address
vennela
PostPosted: Fri May 09, 2003 1:21 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

Not sure but what does your environment varialbe slook like:
in particular
LD_LIBRARY_PATH
CLASSPATH

Is the Queue Manager ('venus.queue.manager') running.

-------
Venny
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Zatko55
PostPosted: Mon May 12, 2003 4:09 am    Post subject: Reply with quote

Newbie

Joined: 01 May 2003
Posts: 6
Location: Reading, PA

$ echo $LD_LIBRARY_PATH
.:/usr/mqm/java/lib
$ echo $CLASSPATH
.:/usr/mqm/java/lib/com.ibm.mq.jar:/usr/mqm/java/lib/com.ibm.mqjms.jar:/usr/mqm/java/lib/connector.jar:/usr/mqm/java/lib/jms.
jar:/usr/mqm/java/lib/jndi.jar:/usr/mqm/java/lib/jta.jar:/usr/mqm/java

$ dspmq
QMNAME(saturn.queue.manager) STATUS(Running)

I deleted and created a new queue manager since. This is weird because I have he exact same environment on my windows machine, but it works.
Back to top
View user's profile Send private message AIM Address
vennela
PostPosted: Mon May 12, 2003 6:35 am    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

In your
/usr/mqm/java/lib do you find the file libmqjbnd05.so
I can't think of anything else.

-------
Venny
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » libmqjbnd02.so: load ENOEXEC on shared library(s)
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.