Author |
Message
|
cbustamante |
Posted: Thu Jul 03, 2008 9:08 am Post subject: linked exception com.ibm.mq.MQException: MQJE001: Completion |
|
|
Newbie
Joined: 03 Jul 2008 Posts: 4
|
Hi members I have a similar problem when my WLS wants to connect via a Foreing JMS Server to MQ. The exception that I got is the following:
[11:14:01 [1215101641578] [listenerContainer-1] com.ibm.mq.jms.MQQueueConnection@aaa10 ==> createQMNonXA() entry
11:14:01 [1215101641578] [listenerContainer-1] com.ibm.mq.jms.MQQueueConnection@aaa10 ==> createQM() entry
11:14:01 [1215101641578] [listenerContainer-1] com.ibm.mq.jms.MQQueueConnection@aaa10 qmgrName = 'QM_SIO'
11:14:01 [1215101641578] [listenerContainer-1] com.ibm.mq.jms.MQQueueConnection@aaa10 mqProperties:
11:14:01 [1215101641578] [listenerContainer-1] com.ibm.mq.jms.MQQueueConnection@aaa10 Use QM CCSID = 'true'
11:14:01 [1215101641578] [listenerContainer-1] com.ibm.mq.jms.MQQueueConnection@aaa10 Group = 'java.lang.Object@1ba640'
11:14:01 [1215101641578] [listenerContainer-1] com.ibm.mq.jms.MQQueueConnection@aaa10 Thread affinity = 'false'
11:14:01 [1215101641578] [listenerContainer-1] com.ibm.mq.jms.MQQueueConnection@aaa10 XAReq = 'false'
11:14:01 [1215101641578] [listenerContainer-1] com.ibm.mq.jms.MQQueueConnection@aaa10 ConnTag Property = '[B@ab48a7'
11:14:01 [1215101641578] [listenerContainer-1] com.ibm.mq.jms.MQQueueConnection@aaa10 SPI = 'SPI_ENABLE'
11:14:01 [1215101641578] [listenerContainer-1] com.ibm.mq.jms.MQQueueConnection@aaa10 transport = 'MQSeries Bindings'
11:14:01 [1215101641578] [listenerContainer-1] com.ibm.mq.jms.MQQueueConnection@aaa10 forceAllowClient = false
11:14:01 [1215101641578] [listenerContainer-1] com.ibm.mq.jms.MQQueueConnection@aaa10 runningInWS = false
11:14:01 [1215101641578] [listenerContainer-1] com.ibm.mq.jms.MQXAQueueConnectionFactory@8997fe30 ==> getCCDTURL() entry
11:14:01 [1215101641578] [listenerContainer-1] com.ibm.mq.jms.MQXAQueueConnectionFactory@8997fe30 <== getCCDTURL() exit
11:14:01 [1215101641578] [listenerContainer-1] com.ibm.mq.jms.MQQueueConnection@aaa10 createQM failed because of com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2058
11:14:01 [1215101641578] [listenerContainer-1] com.ibm.mq.jms.services.psk.MessageCatalogue@30803a ==> getMessage(1)() entry
11:14:01 [1215101641578] [listenerContainer-1] com.ibm.mq.jms.services.psk.MessageCatalogue@30803a ==> getMessage(0)() entry
11:14:01 [1215101641578] [listenerContainer-1] com.ibm.mq.jms.services.psk.MessageCatalogue@30803a <== getMessage(0)() exit
11:14:01 [1215101641578] [listenerContainer-1] com.ibm.mq.jms.services.psk.MessageCatalogue@30803a <== getMessage(1)() exit
11:14:01 [1215101641578] [listenerContainer-1] com.ibm.mq.jms.MQQueueConnection@aaa10 Throwing javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'QM_SIO'
11:14:01 [1215101641578] [listenerContainer-1] com.ibm.mq.jms.MQQueueConnection@aaa10 <== createQM() exit
11:14:01 [1215101641578] [listenerContainer-1] com.ibm.mq.jms.MQQueueConnection@aaa10 caught javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'QM_SIO'
11:14:01 [1215101641578] [listenerContainer-1] com.ibm.mq.jms.MQQueueConnection@aaa10 linked exception com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2058
11:14:01 [1215101641578] [listenerContainer-1] com.ibm.mq.jms.MQQueueConnection@aaa10 <== createQMNonXA() exit
Someone could help me to know what causes this problem or how I can do to solve the situation?
thanks in advance. |
|
Back to top |
|
 |
RogerLacroix |
Posted: Thu Jul 03, 2008 9:19 am Post subject: Re: linked exception com.ibm.mq.MQException: MQJE001: Comple |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
Hi,
cbustamante wrote: |
com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2058 |
Your hostname and/or port number are incorrect (or the queue manager is not running).
Regards,
Roger Lacroix
Capitalware Inc. _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
Back to top |
|
 |
cbustamante |
Posted: Thu Jul 03, 2008 1:49 pm Post subject: |
|
|
Newbie
Joined: 03 Jul 2008 Posts: 4
|
Hi Roger thanks for your reply, I used the following definition in WLS to configure the Foreing JMS Server:
Quote: |
<JMSConnectionFactory JNDIName="WlsConnectionFactoryTest"
Name="ACD Connection Factory" Targets="myserver"/>
<ForeignJMSServer ConnectionURL="172.16.20.116:1001/MQ_SIO_CCHANNEL"
InitialContextFactory="com.ibm.mq.jms.context.WMQInitialContextFactory"
Name="ACD MQ integration"
Targets="myserver">
<ForeignJMSConnectionFactory
LocalJNDIName="WlsConnectionFactory" Name="ACD MQ Factory" RemoteJNDIName="QM_SIO_CF"/>
<ForeignJMSDestination LocalJNDIName="queue/SendACDQueue"
Name="ACD SEND" RemoteJNDIName="Q_SIOIN"/>
<ForeignJMSDestination LocalJNDIName="queue/ReceiveACDQueue"
Name="ACD RECV" RemoteJNDIName="Q_SIOOUT"/>
</ForeignJMSServer> |
Let me tell you actually the MQ Manager: QM_SIO is running as the MQ Manager Listener on port 1001 too. I made a test with the SupportPac MA0J: "MQSeries - Put message utility" from the same computer where is the WLS and I send sucessfully a message to the MQ. But when I start the WLS I get the error:
javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for 'QM_SIO'
at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:586)
at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:2110)
at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:1532)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:150)
at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:60)
at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactory.java:171)
at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactory.java:112)
at org.springframework.jms.listener.DefaultMessageListenerContainer102.createConnection(DefaultMessageListenerContainer102.java:71)
at org.springframework.jms.listener.AbstractJmsListeningContainer.createSharedConnection(AbstractJmsListeningContainer.java:209)
at org.springframework.jms.listener.AbstractJmsListeningContainer.refreshSharedConnection(AbstractJmsListeningContainer.java:197)
at org.springframework.jms.listener.DefaultMessageListenerContainer.refreshConnectionUntilSuccessful(DefaultMessageListenerContainer.java:700)
at org.springframework.jms.listener.DefaultMessageListenerContainer.recoverAfterListenerSetupFailure(DefaultMessageListenerContainer.java:682)
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:834)
at java.lang.Thread.run(Thread.java:534)
<Jul 3, 2008 12:55:26 PM CDT> <Info> <servicio333.CDRHandler> <000000> <CDRHandler.getInstance()>
Do you have an idea of what causes this error?
Thanks in advance. |
|
Back to top |
|
 |
fjb_saper |
Posted: Thu Jul 03, 2008 2:47 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Are you sure you have everything needed on the classpath. Including the support pack for the JNDI provider you are using? Including the support pack for the command server messages (ms0b)?
We recommend an easier step as using the filesystem JNDI provider.
It allows for better JNDI indirection. It is static as the standard JNDI of a J2EE appserver would be.
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
cbustamante |
Posted: Thu Jul 03, 2008 3:11 pm Post subject: |
|
|
Newbie
Joined: 03 Jul 2008 Posts: 4
|
Hi fjb_saper, those are the MQ libraries that I have configured in my server's classpath:
com.ibm.mq.jar
com.ibm.mq.pcf-6.0.3.jar
com.ibm.mqetclient.jar
com.ibm.mqjms.jar
mqcontext.jar Let me tell you that this WLS domain works fine with a MQ Solaris based installation but with a MQ Windows based installation fails. |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Jul 04, 2008 7:24 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Let me put forward my advice again.
Use the filesystem JNDI provider.
The JNDI provider you are using has a number of very strict rules,... one of them being to use the real queue name...
The closest to a true J2EE JNDI provider in behavior is going to be the filesystem JNDI provider.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
cbustamante |
Posted: Fri Jul 04, 2008 9:25 am Post subject: |
|
|
Newbie
Joined: 03 Jul 2008 Posts: 4
|
Hi again fjb_saper, let me tell you that I have resolved the problem. The cuestion was related with the QCF definition using the JMSAdmin tool, to my original definition was missing some parameters to work correctly finally it stays as follows:
def qcf(SIO_QCF) qmgr(QM_SIO) tran(client) chan(SYSTEM.DEF.SVRCONN) host(172.16.20.116) port(1001)
The definition of the QCF with the first two parameters works fine for a local environment (WLS and MQ in the same machine) but for a remote environment (WLS and MQ in different machines) it is needed the last three parameters
I hope this could help someone.
Thanks to everyone for your time and support. |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Jul 04, 2008 3:53 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Quote: |
11:14:01 [1215101641578] [listenerContainer-1] com.ibm.mq.jms.MQQueueConnection@aaa10 SPI = 'SPI_ENABLE'
11:14:01 [1215101641578] [listenerContainer-1] com.ibm.mq.jms.MQQueueConnection@aaa10 transport = 'MQSeries Bindings'
11:14:01 [1215101641578] [listenerContainer-1] com.ibm.mq.jms.MQQueueConnection@aaa10 forceAllowClient = false |
Quote: |
Hi members I have a similar problem when my WLS wants to connect via a Foreign JMS Server to MQ |
Well excuse me for stating the obvious but you only specified that you switched environment. You did not mention going from a server connection to a client connection... Maybe my problem, not being familiar with WLS, was to believe you could run it in a windows environment... and that using the support pack you do, you were familiar with the different connection strings...
The question I have for you though is:
Is there a particular reason you are switching from a co-located qmgr (server) to a qmgr on a different host and even on a different platform?
 _________________ MQ & Broker admin |
|
Back to top |
|
 |
|