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 » Problems with MQ in Websphere Application Server: MQJMS2007

Post new topic  Reply to topic
 Problems with MQ in Websphere Application Server: MQJMS2007 « View previous topic :: View next topic » 
Author Message
MichaelBulla
PostPosted: Tue Dec 05, 2006 3:47 am    Post subject: Problems with MQ in Websphere Application Server: MQJMS2007 Reply with quote

Apprentice

Joined: 27 Sep 2006
Posts: 31
Location: Hamburg/Germany

Hi,

heres another breakpoint on my way up to an MQ-Guru

I want to use MQ v6 out of a WAS v6. WAS and MQ run on different Machines (WAS is the testWAS in my RSA and MQ runs in a VM on the same machine). Everytime I want to send a message to MQ, I get the following exception:

Code:
javax.jms.JMSException: MQJMS2007: Fehler beim Übertragen der Nachricht an die MQ-Warteschlange
   at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:553)
   at com.ibm.mq.jms.MQMessageProducer.sendInternal(MQMessageProducer.java:1589)
   at com.ibm.mq.jms.MQMessageProducer.send(MQMessageProducer.java:1012)
   at com.ibm.mq.jms.MQMessageProducer.send(MQMessageProducer.java:1046)
   at com.ibm.ejs.jms.JMSMessageProducerHandle.send(JMSMessageProducerHandle.java:1165)
   at ejbs.testBean.testit(testBean.java:53)
   at ejbs.EJSRemoteStatelesstest_24d560f5.testit(EJSRemoteStatelesstest_24d560f5.java:27)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
   at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
   at com.ibm.rmi.util.ProxyUtil$4.run(ProxyUtil.java:727)
   at java.security.AccessController.doPrivileged1(Native Method)
   at java.security.AccessController.doPrivileged(AccessController.java:351)
   at com.ibm.rmi.util.ProxyUtil.invokeWithClassLoaders(ProxyUtil.java:725)
   at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1121)
   at $Proxy3.testit(Unknown Source)
   at ejbs._test_Stub.testit(_test_Stub.java:254)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
   at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
   at com.ibm.etools.utc.model.ReflectionMethodModel.invoke(ReflectionMethodModel.java:65)
   at com.ibm.etools.utc.servlet.InvokeServlet.invoke(InvokeServlet.java:111)
   at com.ibm.etools.utc.servlet.InvokeServlet.doPost(InvokeServlet.java:367)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
   at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)
   at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629)
   at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:80)
   at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1657)
   at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
   at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)
   at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367)
   at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94)
   at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548)
   at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)
   at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)
   at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021)
   at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))


LinkedException is:
Code:
com.ibm.mq.MQException: MQJE001: Beendigungscode 2, Ursache 2009
   at com.ibm.mq.MQQueue.putMsg2(MQQueue.java:1498)
   at com.ibm.mq.jms.MQMessageProducer.sendInternal(MQMessageProducer.java:1569)
   at com.ibm.mq.jms.MQMessageProducer.send(MQMessageProducer.java:1012)
   at com.ibm.mq.jms.MQMessageProducer.send(MQMessageProducer.java:1046)
   at com.ibm.ejs.jms.JMSMessageProducerHandle.send(JMSMessageProducerHandle.java:1165)
   at ejbs.testBean.testit(testBean.java:53)
   at ejbs.EJSRemoteStatelesstest_24d560f5.testit(EJSRemoteStatelesstest_24d560f5.java:27)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
   at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
   at com.ibm.rmi.util.ProxyUtil$4.run(ProxyUtil.java:727)
   at java.security.AccessController.doPrivileged1(Native Method)
   at java.security.AccessController.doPrivileged(AccessController.java:351)
   at com.ibm.rmi.util.ProxyUtil.invokeWithClassLoaders(ProxyUtil.java:725)
   at com.ibm.CORBA.iiop.ClientDelegate.invoke(ClientDelegate.java:1121)
   at $Proxy3.testit(Unknown Source)
   at ejbs._test_Stub.testit(_test_Stub.java:254)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))
   at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
   at com.ibm.etools.utc.model.ReflectionMethodModel.invoke(ReflectionMethodModel.java:65)
   at com.ibm.etools.utc.servlet.InvokeServlet.invoke(InvokeServlet.java:111)
   at com.ibm.etools.utc.servlet.InvokeServlet.doPost(InvokeServlet.java:367)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
   at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212)
   at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629)
   at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.java:80)
   at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1657)
   at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77)
   at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421)
   at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367)
   at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java:94)
   at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548)
   at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601)
   at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934)
   at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021)
   at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))

Receiving message from this queue in a MDB works fine, so it doesnt seem to be a network-problem. The message I send is a litte Textmessage, so it isnt too big.

Any ideas, what could be the problem?

Bye Michael

P.S. All configuration and creating of the necessary factory- and destinationobjects is done by WAS administration console
Back to top
View user's profile Send private message
billybong
PostPosted: Tue Dec 05, 2006 3:54 am    Post subject: Reply with quote

Disciple

Joined: 22 Jul 2005
Posts: 150
Location: Stockholm, Sweden

Have you updated your mq jars on the WAS?
Most of the time I see 2009's I've forgotten to update the mq libraries.

Another possibility is that your connection has died and you're not reconnecting. Do you get this error message at your first put or later?

Also, do you use the same queue connection factory for the MDB listener as in your code?
_________________
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Integration Developer V6.0
IBM Certified System Administrator - WebSphere MQ V6.0
IBM Certified Solution Developer - WebSphere DataPower
Back to top
View user's profile Send private message Visit poster's website
MichaelBulla
PostPosted: Tue Dec 05, 2006 3:59 am    Post subject: Reply with quote

Apprentice

Joined: 27 Sep 2006
Posts: 31
Location: Hamburg/Germany

I get the error on the first put.
I use the same connectinfactory for both.
I didnt do any updates. <-- Maybe thats the hint.
Back to top
View user's profile Send private message
vennela
PostPosted: Tue Dec 05, 2006 9:47 pm    Post subject: Reply with quote

Jedi Knight

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

If you are suing SVRCONN channels to connect, how many of them are running. Maybe you are running out of max channels
What does MQ Error logs say
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 » Problems with MQ in Websphere Application Server: MQJMS2007
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.