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 » Java Program Error

Post new topic  Reply to topic
 Java Program Error « View previous topic :: View next topic » 
Author Message
zulkernain.kanjariwala
PostPosted: Wed Dec 03, 2008 11:45 pm    Post subject: Java Program Error Reply with quote

Novice

Joined: 28 Nov 2008
Posts: 24

Dear All,
I think i have posted this post wrongly in Configuration & Maintenance Forum.

I am facing one problem while sending message from Unix to Windows.

I am having Following Setup:

MQ Server V5.3 : Windows 2000 Adv Server with SP4
MQ Client V5.3 : IBM AIX 5.2. With ML5

Java : JDK1.4.2 Installed at Client Side.

Now I will explain what i have done.

::::: Server Side ::::

Step 1: Installed MQ Server 5.3 At Server Side
Step 2: Created Queue Manager [IBKLQM1]
Step 3: Created Local, Transmission & Remote Queue
Step 4: Created Two Channel [Sender & Receiver]
Step 5: Created Two More Queue Manager with the Same Setup as I defined Above
Step 6: Started All Queue Managers & Listners


::::::: Client Side :::::::::

Step 1: Installed MQ Client V5.3 At Client Side [IBM AIX]
Step 2: Written Simple Program to Send the Message From Client to Server.
Step 3: Set the CLASSPATH, PATH, LIBPATH, LD_LIBRARY_PATH
Step 4: Set the MQSERVER Variable.
Step 5: Compiled the program
Step 6: Throwing the following Error.


Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't find library mqjbnd02 (libmqjbnd02.a or .so) in sun.boot.library.path or java.library.path
sun.boot.library.path=/usr/java14/jre/bin
java.library.path=/usr/java14/jre/bin:/usr/java14/jre/bin/classic:/usr/java14/jre/bin:/usr/mqm/java/lib:/usr/lib
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:2044)
at java.lang.Runtime.loadLibrary0(Runtime.java:824)
at java.lang.System.loadLibrary(System.java:910)
at com.ibm.mq.server.MQSESSION.<clinit>(MQSESSION.java:145)
at com.ibm.mq.MQSESSIONServer.getMQSESSION(MQSESSIONServer.java:67)
at com.ibm.mq.MQSESSION.getSession(MQSESSION.java:241)
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:649)
at com.ibm.mq.MQQueueManager.construct(MQQueueManager.java:598)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:375)
at Test1.main(Test1.java:24)



Please Help me In this regards.
Back to top
View user's profile Send private message
zulkernain.kanjariwala
PostPosted: Wed Dec 03, 2008 11:47 pm    Post subject: Reply with quote

Novice

Joined: 28 Nov 2008
Posts: 24

I have followed the IBM's Document to Setup the Server and Client Configuration.

I Dont knw Where I am Lacking.. Please Do reply if any More Information you need to short out this problem..
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Dec 04, 2008 12:35 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

I told you exactly how to solve this problem.

You chose to disagree with me.

You continue to have the problem.
Back to top
View user's profile Send private message
zulkernain.kanjariwala
PostPosted: Thu Dec 04, 2008 1:42 am    Post subject: Reply with quote

Novice

Joined: 28 Nov 2008
Posts: 24

Hi Jeff,
I have followed the instruction given by you. Now i am getting the following Error.

Unable to load message catalog - mqji
An MQ Error Occurred: Completion Code is : 2

The Reason Code is : 2009
com.ibm.mq.MQException: Completion Code 2, Reason 2009
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:166)
at com.ibm.mq.MQClientManagedConnectionFactoryJ11._createManagedConnection(MQClientManagedConnectionFactoryJ11.java:196)
at com.ibm.mq.MQClientManagedConnectionFactoryJ11.createManagedConnection(MQClientManagedConnectionFactoryJ11.java:213)
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:649)
at com.ibm.mq.MQQueueManager.construct(MQQueueManager.java:598)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:375)
at Test1.main(Test1.java:24)
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Dec 04, 2008 1:47 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

zulkernain.kanjariwala wrote:
The Reason Code is : 2009


Have you looked up this code? Have you determined it's meaning? Have you used the various resolution strategies described in the documentation, this forum and elsewhere? What happened when you tried them?

There's no point us suggesting stuff which has already proved ineffective for you.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » Java Program Error
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.