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 » General IBM MQ Support » Unable to connect to the target queue manager Ender

Post new topic  Reply to topic Goto page 1, 2, 3  Next
 Unable to connect to the target queue manager Ender « View previous topic :: View next topic » 
Author Message
amoljoshi28
PostPosted: Thu Jun 11, 2009 8:02 am    Post subject: Unable to connect to the target queue manager Ender Reply with quote

Novice

Joined: 10 Jun 2009
Posts: 24

I have this queue manager named "Ender" in websphere mq 7.0 to which i`m trying to connect.

But getting this exception:
Exception: javax.naming.ServiceUnavailableException: Unable to connect to the target queue manager Ender [Root exception is com.ibm.mq.MQException: MQJE001: Completion Code '2', Reason '2495'.]
Back to top
View user's profile Send private message
amoljoshi28
PostPosted: Thu Jun 11, 2009 12:22 pm    Post subject: Reply with quote

Novice

Joined: 10 Jun 2009
Posts: 24

This is the stack trace that i get:

javax.naming.ServiceUnavailableException: Unable to connect to the target queue manager Ender [Root exception is com.ibm.mq.MQException: MQJE001: Completion Code '2', Reason '2495'.]
at com.ibm.mq.jms.context.MQContext.<init>(MQContext.java:196)
at com.ibm.mq.jms.context.WMQInitialContextFactory.getInitialContext(WMQInitialContextFactory.java:29)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at com.ibm.qbda.mq.p2p.QReceiver.getInitContext(QReceiver.java:140)
at com.ibm.qbda.mq.p2p.QReceiver.setConnection(QReceiver.java:199)
at com.ibm.qbda.mq.p2p.QReceiverUI.connectionEntered(QReceiverUI.java:105)
at com.ibm.qbda.mq.p2p.QReceiverUI.connEtoC1(QReceiverUI.java:135)
at com.ibm.qbda.mq.p2p.QReceiverUI.access$1(QReceiverUI.java:130)
at com.ibm.qbda.mq.p2p.QReceiverUI$IvjEventHandler.propertyChange(QReceiverUI.java:50)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at java.awt.Component.firePropertyChange(Unknown Source)
at com.ibm.qbda.mq.common.ConnectionPanel.setConnectionEntered(ConnectionPanel.java:653)
at com.ibm.qbda.mq.common.ConnectionPanel.setConnection(ConnectionPanel.java:635)
at com.ibm.qbda.mq.common.ConnectionPanel.connectionTF_KeyPressed(ConnectionPanel.java:8
at com.ibm.qbda.mq.common.ConnectionPanel.connEtoC3(ConnectionPanel.java:143)
at com.ibm.qbda.mq.common.ConnectionPanel.access$5(ConnectionPanel.java:138)
at com.ibm.qbda.mq.common.ConnectionPanel$IvjEventHandler.keyPressed(ConnectionPanel.java:64)
at java.awt.Component.processKeyEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.TextComponent.processEvent(Unknown Source)
at java.awt.TextField.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: com.ibm.mq.MQException: MQJE001: Completion Code '2', Reason '2495'.
at com.ibm.mq.MQSESSION.<init>(MQSESSION.java:2137)
at com.ibm.mq.MQSESSION.getSession(MQSESSION.java:2174)
at com.ibm.mq.MQManagedConnectionJ11.<init>(MQManagedConnectionJ11.java:200)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11._createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:248)
at com.ibm.mq.MQBindingsManagedConnectionFactoryJ11.createManagedConnection(MQBindingsManagedConnectionFactoryJ11.java:302)
at com.ibm.mq.StoredManagedConnection.<init>(StoredManagedConnection.java:95)
at com.ibm.mq.MQSimpleConnectionManager.allocateConnection(MQSimpleConnectionManager.java:184)
at com.ibm.mq.MQQueueManagerFactory.obtainBaseMQQueueManager(MQQueueManagerFactory.java:870)
at com.ibm.mq.MQQueueManagerFactory.procure(MQQueueManagerFactory.java:756)
at com.ibm.mq.MQQueueManagerFactory.constructQueueManager(MQQueueManagerFactory.java:704)
at com.ibm.mq.MQQueueManagerFactory.createQueueManager(MQQueueManagerFactory.java:170)
at com.ibm.mq.MQQueueManager.<init>(MQQueueManager.java:598)
at com.ibm.mq.pcf.PCFAgent.connect(PCFAgent.java:247)
at com.ibm.mq.pcf.PCFAgent.<init>(PCFAgent.java:169)
at com.ibm.mq.pcf.PCFMessageAgent.<init>(PCFMessageAgent.java:148)
at com.ibm.mq.jms.context.MQContext.<init>(MQContext.java:191)
... 40 more
Caused by: com.ibm.mq.jmqi.JmqiException: CC=2;RC=2495;AMQ8568: The native JNI library 'mqjbnd' was not found. [3=mqjbnd]
at com.ibm.mq.jmqi.local.LocalMQ$1.run(LocalMQ.java:259)
at java.security.AccessController.doPrivileged(Native Method)
at com.ibm.mq.jmqi.local.LocalMQ.initialise_inner(LocalMQ.java:225)
at com.ibm.mq.jmqi.local.LocalMQ.initialise(LocalMQ.java:188)
at com.ibm.mq.jmqi.local.LocalMQ.<init>(LocalMQ.java:921)
at com.ibm.mq.jmqi.local.LocalServer.<init>(LocalServer.java:128)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.ibm.mq.jmqi.JmqiEnvironment.getInstance(JmqiEnvironment.java:634)
at com.ibm.mq.jmqi.JmqiEnvironment.getMQI(JmqiEnvironment.java:570)
at com.ibm.mq.MQSESSION.<init>(MQSESSION.java:2128)
... 55 more
Caused by: java.lang.UnsatisfiedLinkError: no mqjbnd in java.library.path
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at com.ibm.mq.jmqi.local.LocalMQ.loadLib(LocalMQ.java:889)
at com.ibm.mq.jmqi.local.LocalMQ$1.run(LocalMQ.java:239)
... 67 more


Can anybody tell me the solution for this?
Do i have to set java.library.path by having this "-Djava.library.path=C:\ProgramFiles\IBM\SDP70\jdk\jre\bin;.;C:\ProgramFiles\IBM\WebSphereMQ\Java\lib;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\ProgramFiles\QuickTime\QTSystem\;C:\ProgramFiles\IBM\WebSphereMQ\bin;C:\ProgramFiles\IBM\WebSphereMQ\tools\c\samples\bin" in VM Arguments..

But still no help..

According to this "http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/tmj_adm33.html" i have to set the system property MQ_INSTALL_ROOT..

But i`m not able to understand how to do that?


Desperately Need help..
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jun 11, 2009 1:36 pm    Post subject: Reply with quote

Grand High Poobah

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

amoljoshi28 wrote:
i have to set the system property MQ_INSTALL_ROOT..

But i`m not able to understand how to do that?


It's just a Windows thing.

amoljoshi28 wrote:
Desperately Need help..


Any Windows book / admin will be able to assist.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Jun 11, 2009 7:17 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

dir /x
Back to top
View user's profile Send private message
amoljoshi28
PostPosted: Thu Jun 11, 2009 10:08 pm    Post subject: Reply with quote

Novice

Joined: 10 Jun 2009
Posts: 24

Read few documents in the Info Center, but still not been able to set the MQ_INSTALL_ROOT..

Actually i don`t know where do i have to make that change.

I`m not running in WAS Environment..

Can you tell me where actually is this MQ_INSTALL_ROOT?

Please help..
Back to top
View user's profile Send private message
shashivarungupta
PostPosted: Thu Jun 11, 2009 10:52 pm    Post subject: Re: Unable to connect to the target queue manager Ender Reply with quote

Grand Master

Joined: 24 Feb 2009
Posts: 1343
Location: Floating in space on a round rock.

amoljoshi28 wrote:
I have this queue manager named "Ender" in websphere mq 7.0 to which i`m trying to connect.

But getting this exception:
Exception: javax.naming.ServiceUnavailableException: Unable to connect to the target queue manager Ender [Root exception is com.ibm.mq.MQException: MQJE001: Completion Code '2', Reason '2495'.]


Can you capture corresponding MQ Linked Exception.
Hope that would give you the reason of the cause.
_________________
*Life will beat you down, you need to decide to fight back or leave it.
Back to top
View user's profile Send private message Send e-mail
amoljoshi28
PostPosted: Thu Jun 11, 2009 10:57 pm    Post subject: Re: Unable to connect to the target queue manager Ender Reply with quote

Novice

Joined: 10 Jun 2009
Posts: 24

shashivarungupta wrote:
amoljoshi28 wrote:
I have this queue manager named "Ender" in websphere mq 7.0 to which i`m trying to connect.

But getting this exception:
Exception: javax.naming.ServiceUnavailableException: Unable to connect to the target queue manager Ender [Root exception is com.ibm.mq.MQException: MQJE001: Completion Code '2', Reason '2495'.]


Can you capture corresponding MQ Linked Exception.
Hope that would give you the reason of the cause.


I have already posted my stack trace here..

what else can find about the error?
Back to top
View user's profile Send private message
amoljoshi28
PostPosted: Thu Jun 11, 2009 11:00 pm    Post subject: Re: Unable to connect to the target queue manager Ender Reply with quote

Novice

Joined: 10 Jun 2009
Posts: 24

amoljoshi28 wrote:
shashivarungupta wrote:
amoljoshi28 wrote:
I have this queue manager named "Ender" in websphere mq 7.0 to which i`m trying to connect.

But getting this exception:
Exception: javax.naming.ServiceUnavailableException: Unable to connect to the target queue manager Ender [Root exception is com.ibm.mq.MQException: MQJE001: Completion Code '2', Reason '2495'.]


Can you capture corresponding MQ Linked Exception.
Hope that would give you the reason of the cause.


I have already posted my stack trace here..

what else can find about the error?


I have already set a system environmental variable called "MQ_INSTALL_ROOT" which points to: C:\Program Files\IBM\WebSphere MQ\java\lib

But still not able to connect..
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Jun 12, 2009 12:05 am    Post subject: Re: Unable to connect to the target queue manager Ender Reply with quote

Grand High Poobah

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

amoljoshi28 wrote:
I have already posted my stack trace here..

what else can find about the error?


As said, the linked exception. I understand this is a Java concept, where exceptions are chained together in some way I don't understand or care that much about. The point is the actual WMQ error is linked to the JMS one, and this one has the actual WMQ details, as the other poster correctly indicates.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
amoljoshi28
PostPosted: Fri Jun 12, 2009 12:26 am    Post subject: Re: Unable to connect to the target queue manager Ender Reply with quote

Novice

Joined: 10 Jun 2009
Posts: 24

Vitor wrote:
amoljoshi28 wrote:
I have already posted my stack trace here..

what else can find about the error?


As said, the linked exception. I understand this is a Java concept, where exceptions are chained together in some way I don't understand or care that much about. The point is the actual WMQ error is linked to the JMS one, and this one has the actual WMQ details, as the other poster correctly indicates.


No help???
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Jun 12, 2009 12:33 am    Post subject: Re: Unable to connect to the target queue manager Ender Reply with quote

Grand High Poobah

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

amoljoshi28 wrote:
Vitor wrote:
amoljoshi28 wrote:
I have already posted my stack trace here..

what else can find about the error?


As said, the linked exception. I understand this is a Java concept, where exceptions are chained together in some way I don't understand or care that much about. The point is the actual WMQ error is linked to the JMS one, and this one has the actual WMQ details, as the other poster correctly indicates.


No help???


Java help from me is similar in concept, and slightly more dangerous, than driving lessons from a blind man. I understand the principles, know it can be done but have never actually tried and would probably hurt a lot of people if I did.

Given the level of problems you're experiencing (over your various posts) I urge you to seek mentoring or at least assistance from an experienced person on your site. A little local help, from someone who can see your set up and understands your issues, will be far faster and more effective than we will.

And as has been said before, we're not a training resource. We're not set up for it.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
amoljoshi28
PostPosted: Fri Jun 12, 2009 12:46 am    Post subject: Re: Unable to connect to the target queue manager Ender Reply with quote

Novice

Joined: 10 Jun 2009
Posts: 24

Vitor wrote:
amoljoshi28 wrote:
Vitor wrote:
amoljoshi28 wrote:
I have already posted my stack trace here..

what else can find about the error?


As said, the linked exception. I understand this is a Java concept, where exceptions are chained together in some way I don't understand or care that much about. The point is the actual WMQ error is linked to the JMS one, and this one has the actual WMQ details, as the other poster correctly indicates.


No help???


Java help from me is similar in concept, and slightly more dangerous, than driving lessons from a blind man. I understand the principles, know it can be done but have never actually tried and would probably hurt a lot of people if I did.

Given the level of problems you're experiencing (over your various posts) I urge you to seek mentoring or at least assistance from an experienced person on your site. A little local help, from someone who can see your set up and understands your issues, will be far faster and more effective than we will.

And as has been said before, we're not a training resource. We're not set up for it.


About the mentor help part, well well well..

I can`t find any mentor who know MQ Series..

Probably if i tell them that i`m trying MQ, then they would come straight to me to understand and learn from me..


Back to top
View user's profile Send private message
rekarm01
PostPosted: Fri Jun 12, 2009 12:56 am    Post subject: Re: Unable to connect to the target queue manager Ender Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

Vitor wrote:
amoljoshi28 wrote:
what else can find about the error?

As said, the linked exception. ...

Linked exceptions do appear in the stack trace, tagged with "Caused by":
Code:
javax.naming.ServiceUnavailableException: Unable to connect to the target queue manager Ender [Root exception is com.ibm.mq.MQException: MQJE001: Completion Code '2', Reason '2495'.]
Caused by: com.ibm.mq.MQException: MQJE001: Completion Code '2', Reason '2495'.
Caused by: com.ibm.mq.jmqi.JmqiException: CC=2;RC=2495;AMQ8568: The native JNI library 'mqjbnd' was not found. [3=mqjbnd]
Caused by: java.lang.UnsatisfiedLinkError: no mqjbnd in java.library.path

rc=2495 (MQRC_MODULE_NOT_FOUND): "The Java MQ code could not load a Java native shared library. Check the associated Exception stack and FFST. Ensure that the JNI shared library is specified correctly."

amoljoshi28 wrote:
Do i have to set java.library.path by having this "-Djava.library.path=...;C:\ProgramFiles\IBM\WebSphereMQ\Java\lib;..." in VM Arguments..

It looks like "Program Files" is misspelled.

amoljoshi28 wrote:
According to this "http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/tmj_adm33.html" i have to set the system property MQ_INSTALL_ROOT..

But, according to this:
amoljoshi28 wrote:
I'm not running in WAS Environment..

... the wasinfo docs may not be relevant.
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Jun 12, 2009 1:28 am    Post subject: Re: Unable to connect to the target queue manager Ender Reply with quote

Grand High Poobah

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

rekarm01 wrote:
Linked exceptions do appear in the stack trace, tagged with "Caused by"


You see? You see? Driving lessons from a blind man!!
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
amoljoshi28
PostPosted: Fri Jun 12, 2009 1:32 am    Post subject: Re: Unable to connect to the target queue manager Ender Reply with quote

Novice

Joined: 10 Jun 2009
Posts: 24

rekarm01 wrote:
Vitor wrote:
amoljoshi28 wrote:
what else can find about the error?

As said, the linked exception. ...

Linked exceptions do appear in the stack trace, tagged with "Caused by":
Code:
javax.naming.ServiceUnavailableException: Unable to connect to the target queue manager Ender [Root exception is com.ibm.mq.MQException: MQJE001: Completion Code '2', Reason '2495'.]
Caused by: com.ibm.mq.MQException: MQJE001: Completion Code '2', Reason '2495'.
Caused by: com.ibm.mq.jmqi.JmqiException: CC=2;RC=2495;AMQ8568: The native JNI library 'mqjbnd' was not found. [3=mqjbnd]
Caused by: java.lang.UnsatisfiedLinkError: no mqjbnd in java.library.path

rc=2495 (MQRC_MODULE_NOT_FOUND): "The Java MQ code could not load a Java native shared library. Check the associated Exception stack and FFST. Ensure that the JNI shared library is specified correctly."

amoljoshi28 wrote:
Do i have to set java.library.path by having this "-Djava.library.path=...;C:\ProgramFiles\IBM\WebSphereMQ\Java\lib;..." in VM Arguments..

It looks like "Program Files" is misspelled.

amoljoshi28 wrote:
According to this "http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/index.jsp?topic=/com.ibm.websphere.nd.doc/info/ae/ae/tmj_adm33.html" i have to set the system property MQ_INSTALL_ROOT..

But, according to this:
amoljoshi28 wrote:
I'm not running in WAS Environment..

... the wasinfo docs may not be relevant.


How to specify the JNI shared library?

Can i specify MQ_INSTALL_ROOT inside the program?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2, 3  Next Page 1 of 3

MQSeries.net Forum Index » General IBM MQ Support » Unable to connect to the target queue manager Ender
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.