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 Installation/Configuration Support » Getting Error While Sending Msg From Unix to Windows 2000

Post new topic  This topic is locked: you cannot edit posts or make replies. Goto page 1, 2  Next
 Getting Error While Sending Msg From Unix to Windows 2000 « View previous topic :: View next topic » 
Author Message
zulkernain.kanjariwala
PostPosted: Tue Dec 02, 2008 5:10 am    Post subject: Getting Error While Sending Msg From Unix to Windows 2000 Reply with quote

Novice

Joined: 28 Nov 2008
Posts: 24

Dear All,
I am getting following Error while Sending Message From Unix To Windows 2000 Through Java Program. I Know this problem is know to you all and i found same it in other Topics.. But i tried all your techniques and tricks.. But Still the problem is there.. Please HELP Me..



Exception in thread "main" java.lang.UnsatisfiedLinkError: Can't find library mq jbnd02 (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/jr e/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._createManagedConnec tion(MQBindingsManagedConnectionFactoryJ11.java:136)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11.createManagedConnect ion(MQBindingsManagedConnectionFactoryJ11.java:154)
at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.jav a:80)
at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConne ctionManager.java:150)
at com.ibm.mq.MQQueueManager.obtainBaseMQQueueManager(MQQueueManager.jav a:649)
at com.ibm.mq.MQQueueManager.construct(MQQueueManager.java:598)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:375)
at Test1.main(Test1.java:23)



Please Guide Me in This Regards,,,,


Ali.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Dec 02, 2008 5:20 am    Post subject: Re: Getting Error While Sending Msg From Unix to Windows 200 Reply with quote

Grand High Poobah

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

zulkernain.kanjariwala wrote:
But i tried all your techniques and tricks..


Tried what exactly? What changed (if anything) with each trick? On what version(s) of WMQ? On what kind of Unix?

What kind of connection is the Java attempting? What kind of WMQ install do you have on each end?
_________________
Honesty is the best policy.
Insanity is the best defence.


Last edited by Vitor on Tue Dec 02, 2008 5:22 am; edited 1 time in total
Back to top
View user's profile Send private message
manicminer
PostPosted: Tue Dec 02, 2008 5:21 am    Post subject: Reply with quote

Disciple

Joined: 11 Jul 2007
Posts: 177

For a start your code references mqjbnd02 so it looks like you are running quite out of date java client code, probably prior to 5.3, I cannot remember when it changed to 03. So I would first ensure you are running up to date and supported libraries.

Secondly, in the latest code the library is only used when connecting to a local queue manager, so you can creating your connection wrong, best bet would be to post your java code snippet here.

Thirdly this is probably a java specific problem, so might be better in the java forum
Back to top
View user's profile Send private message
JosephGramig
PostPosted: Tue Dec 02, 2008 5:41 am    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

Wouldn't it be nice if the connection information would reveal the version and maintenance of the Java client...

This is a common problem with Java applications. They get a copy of the WMQ Client JARs and include them with their product.

This should never be done.

Always download the free Full Client for WMQ and point to where the JARs get installed. That way you can update the client and all is good.

If you are using the full product, same thing applies there.
Back to top
View user's profile Send private message AIM Address
mqjeff
PostPosted: Tue Dec 02, 2008 5:54 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Also be careful of spaces in unix paths, particularly Java classpaths and library paths.
Back to top
View user's profile Send private message
zulkernain.kanjariwala
PostPosted: Tue Dec 02, 2008 5:56 am    Post subject: Reply with quote

Novice

Joined: 28 Nov 2008
Posts: 24

Dear All.

MQ Client - IBM AIX 5.2 With ML 5
MQ Server - Windows 2000 Adv Server with SP4

IBM Web Sphere V5.3 Both Server and Client Side.

Java 1.4.2
Back to top
View user's profile Send private message
zulkernain.kanjariwala
PostPosted: Tue Dec 02, 2008 5:59 am    Post subject: Reply with quote

Novice

Joined: 28 Nov 2008
Posts: 24

LIBPATH = /usr/mqm/java/lib
PATH = /usr/java14/bin:/etc/b2k:.:.:/usr/local/bin:/usr/xpg4/bin:/usr/vac/bin:/usr/ccs/bin:/opt/SUNWspro/bin:/usr/sbin:/bin:/usr/bin:/etc/b2k/install:/oracle92/oracle/bin:/APPFIN62/app/ilink/unix/ibin:/APPFIN62/app/util::/APPFIN62/app/cust/INFENG/exe:/APPFIN62/app/cust/INFENG/com:/APPFIN62/app/cust/com:/APPFIN62/app/cust/scripts:/APPFIN62/app/cust/mrt:/APPFIN62/app/cust/sql:/APPFIN62/app/cust/exe:/usr/lib:/oracle92/oracle/lib

CLASSPATH=/usr/mqm/java/lib/
Back to top
View user's profile Send private message
zulkernain.kanjariwala
PostPosted: Tue Dec 02, 2008 6:03 am    Post subject: Reply with quote

Novice

Joined: 28 Nov 2008
Posts: 24

I am Having Three Queue Manager.

IBKLCBS
- Channel
1. C.TO.S - Sender
2. S.TO.C - Receiver
- Queue
1. Queue1 - Local
2. Queue2 - Transmission
3. Queue3 - Remote
IBKLBRQM
IBKLGWQM

Same Structure as IBKLCBS in Both Queue Manager
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Dec 02, 2008 6:30 am    Post subject: Reply with quote

Grand High Poobah

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

Very little of this addresses the questions of what type of connection you're using, if the jar files belong to the out-of-support version you have installed or an even more out-of-support version bundled with your app, or much else of any use except the broad topology and proof you have no spaces in some paths.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
JosephGramig
PostPosted: Tue Dec 02, 2008 6:37 am    Post subject: Reply with quote

Grand Master

Joined: 09 Feb 2006
Posts: 1244
Location: Gold Coast of Florida, USA

You are working with products that have reached their End of Support. Those products are not tested with the versions of your OS or other products.

You must upgrade to a minimum of WMQ 6.0.2.5.
Back to top
View user's profile Send private message AIM Address
zulkernain.kanjariwala
PostPosted: Tue Dec 02, 2008 6:41 am    Post subject: Reply with quote

Novice

Joined: 28 Nov 2008
Posts: 24

I am using TCP/IP Connection Type.
Back to top
View user's profile Send private message
zulkernain.kanjariwala
PostPosted: Tue Dec 02, 2008 6:43 am    Post subject: Reply with quote

Novice

Joined: 28 Nov 2008
Posts: 24

Hey but one the application in my company..
thts working fine over this Version.

Then whts the problem in my application setup..

Act the vendor of that application has given the Executable for Unix. and the parameter we have to set to make it runnable...

So please tell me where i am wrong.
Back to top
View user's profile Send private message
Vitor
PostPosted: Tue Dec 02, 2008 6:43 am    Post subject: Reply with quote

Grand High Poobah

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

zulkernain.kanjariwala wrote:
I am using TCP/IP Connection Type.


Sure about that?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
zulkernain.kanjariwala
PostPosted: Tue Dec 02, 2008 6:44 am    Post subject: Reply with quote

Novice

Joined: 28 Nov 2008
Posts: 24

Ya Vitor.
I am sure abt that because i gone through the Client Document of IBM WebSphere and i had followed the TCP/IP Connection Details.
Back to top
View user's profile Send private message
manicminer
PostPosted: Wed Dec 03, 2008 1:30 am    Post subject: Re: Getting Error While Sending Msg From Unix to Windows 200 Reply with quote

Disciple

Joined: 11 Jul 2007
Posts: 177

zulkernain.kanjariwala wrote:
com.ibm.mq.MQBindingsManagedConnectionFactoryJ11._createManagedConnec tion(MQBindingsManagedConnectionFactoryJ11.java:136)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11.createManagedConnect ion(MQBindingsManagedConnectionFactoryJ11.java:154)
at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.jav a:80)
at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConne ctionManager.java:150)
at com.ibm.mq.MQQueueManager.obtainBaseMQQueueManager(MQQueueManager.jav a:649)
at com.ibm.mq.MQQueueManager.construct(MQQueueManager.java:598)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:375)
at Test1.main(Test1.java:23)


As I said before, and looking at your stack trace I will say it again. You stack says (as quoted above) "MQBindingsManagedConnectionFactory". This means you are creating a connection to LOCAL queue manager.

You need to pass different parameters to the app to ensure it connects to a remote queue manager. Having no idea what the app is I couldn't guess what those parameters would be.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  This topic is locked: you cannot edit posts or make replies. Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » IBM MQ Installation/Configuration Support » Getting Error While Sending Msg From Unix to Windows 2000
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.