1 2 Previous Next 15 Replies Latest reply on Mar 10, 2004 8:59 AM by f2racer

    "Cannot authenticate user" error after about 1600 messages p

    f2racer

      Hey folks, I'm designing a MDB application. I'm currently running into an issue where after about 1600 messages are processed it throws an exception (see below). Does anybody have any idea what's going on?

      Thanks!


      13:01:33,052 INFO [STDOUT] TREMessageEJB got TextMessage: Y11314
      13:01:33,052 INFO [STDOUT] CSMessageEJB got TextMessage: Y11305
      13:01:33,052 INFO [STDOUT] Cannot authenticate user; - nested throwable: (java.net.BindException: Address already in use: connect)
      13:01:33,052 ERROR [STDERR] org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.BindException: Add
      ress already in use: connect)
      13:01:33,052 INFO [STDOUT] CSMessageEJB got TextMessage: Y11309
      13:01:33,052 ERROR [STDERR] at org.jboss.mq.Connection.authenticate(Connection.java:883)
      13:01:33,052 ERROR [STDERR] at org.jboss.mq.Connection.(Connection.java:238)
      13:01:33,052 ERROR [STDERR] at org.jboss.mq.Connection.(Connection.java:315)
      13:01:33,052 ERROR [STDERR] at org.jboss.mq.SpyConnection.(SpyConnection.java:60)
      13:01:33,052 ERROR [STDERR] at org.jboss.mq.SpyConnectionFactory.createQueueConnection(SpyConnectionFactory.java:116)
      13:01:33,052 ERROR [STDERR] at helloworld.messagebeanserver.TREMessageEJB.sendMessage(TREMessageEJB.java:137)
      13:01:33,052 ERROR [STDERR] at helloworld.messagebeanserver.TREMessageEJB.onMessage(TREMessageEJB.java:93)
      13:01:33,068 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor84.invoke(Unknown Source)
      13:01:33,068 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java(Compiled Code))

      13:01:33,068 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java(Compiled Code))
      13:01:33,068 ERROR [STDERR] at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java(Comp
      iled Code))
      13:01:33,068 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionIntercept
      or.java(Compiled Code))
      13:01:33,115 ERROR [STDERR] at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.ja
      va(Compiled Code))
      13:01:33,131 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java(Compiled Code))

      13:01:33,131 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:240)
      13:01:33,131 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java(Compiled Code))
      13:01:33,131 ERROR [STDERR] at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java(Compiled Code
      ))
      13:01:33,131 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java(Compiled Code))
      13:01:33,131 ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java(Com
      piled Code))
      13:01:33,131 ERROR [STDERR] at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java(Compiled Code))
      13:01:33,131 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java(Compiled Code))
      13:01:33,131 ERROR [STDERR] at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java(Compiled Code))
      13:01:33,131 ERROR [STDERR] at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.j
      ava(Compiled Code))
      13:01:33,131 ERROR [STDERR] at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java(Compiled Code))
      13:01:33,131 ERROR [STDERR] at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java(Compiled Co
      de))
      13:01:33,131 INFO [STDOUT] TREMessageEJB got TextMessage: Y11316
      13:01:33,131 ERROR [STDERR] at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java(Compiled Code))
      13:01:33,131 ERROR [STDERR] at org.jboss.mq.SpySession.run(SpySession.java(Compiled Code))
      13:01:33,131 ERROR [STDERR] at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java(Compiled Code))
      13:01:33,131 ERROR [STDERR] at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:732)
      13:01:33,131 ERROR [STDERR] at java.lang.Thread.run(Thread.java:568)
      13:01:33,131 INFO [STDOUT] TREMessageEJB got TextMessage: Y11315
      13:01:33,131 INFO [STDOUT] TREMessageEJB got TextMessage: Y11317
      13:01:33,131 ERROR [STDERR] Caused by: java.net.BindException: Address already in use: connect
      13:01:33,131 ERROR [STDERR] at java.net.PlainSocketImpl.socketConnect(Native Method)
      13:01:33,131 ERROR [STDERR] at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java(Compiled Code))
      13:01:33,131 ERROR [STDERR] at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java(Compiled Code))
      13:01:33,131 ERROR [STDERR] at java.net.PlainSocketImpl.connect(PlainSocketImpl.java(Compiled Code))
      13:01:33,131 ERROR [STDERR] at java.net.Socket.connect(Socket.java(Compiled Code))
      13:01:33,131 ERROR [STDERR] at java.net.Socket.connect(Socket.java(Inlined Compiled Code))
      13:01:33,131 ERROR [STDERR] at java.net.Socket.(Socket.java(Compiled Code))
      13:01:33,131 ERROR [STDERR] at java.net.Socket.(Socket.java(Compiled Code))
      13:01:33,131 ERROR [STDERR] at javax.net.DefaultSocketFactory.createSocket(Unknown Source)
      13:01:33,131 ERROR [STDERR] at org.jboss.mq.il.oil.OILServerIL.createConnection(OILServerIL.java:563)
      13:01:33,131 ERROR [STDERR] at org.jboss.mq.il.oil.OILServerIL.checkConnection(OILServerIL.java(Compiled Code))
      13:01:33,131 ERROR [STDERR] at org.jboss.mq.il.oil.OILServerIL.authenticate(OILServerIL.java:289)
      13:01:33,131 ERROR [STDERR] at org.jboss.mq.Connection.authenticate(Connection.java:876)
      13:01:33,146 ERROR [STDERR] ... 29 more

        • 1. Re:

          Use java:/ConnectionFactory or even better java:/JmsXA as your connection factory.

          Also make sure you are closing connections. java:/JmsXA will help you find those
          mistakes.

          Regards,
          Adrian

          • 2. Re:
            f2racer

            Just tried using JmsXA and get the same result. About 1600 messages processed and it starts to throw exceptions. Anybody know if my JVM (IBM's 1.4.1) is the culprit?

            Thanks!

            • 3. Re:

              Remove the snmp service from deploy. IBM's VM doesn't like it.

              Regards,
              Adrian

              • 4. Re:
                f2racer

                adrian, after some diagnostics (error occurs in both IBM 1.4.1 and Sun 1.4.2_03) and some additional debug statements, it looks like the exception is occuring when I ask for an QueueConnection, here's the latest log:

                12:04:05,956 INFO [STDOUT] CSMessageEJB got TextMessage: Y10111
                12:04:05,956 INFO [STDOUT] MessageHelper generated a JMSException:
                12:04:05,956 INFO [STDOUT] Cannot authenticate user; - nested throwable: (java.net.BindException: Address already in use: connect)
                12:04:05,956 ERROR [STDERR] org.jboss.mq.SpyJMSException: Cannot authenticate user; - nested throwable: (java.net.BindException: Add
                ress already in use: connect)
                12:04:05,956 ERROR [STDERR] at org.jboss.mq.Connection.authenticate(Connection.java:883)
                12:04:05,956 ERROR [STDERR] at org.jboss.mq.Connection.(Connection.java:238)
                12:04:05,956 ERROR [STDERR] at org.jboss.mq.Connection.(Connection.java:315)
                12:04:05,956 ERROR [STDERR] at org.jboss.mq.SpyConnection.(SpyConnection.java:60)
                12:04:05,956 ERROR [STDERR] at org.jboss.mq.SpyConnectionFactory.createQueueConnection(SpyConnectionFactory.java:116)
                12:04:05,956 ERROR [STDERR] at helloworld.messagebeanserver.MessageHelper.sendMessage(MessageHelper.java:48)
                12:04:05,956 INFO [STDOUT] CSMessageEJB got TextMessage: Y10110
                12:04:05,956 INFO [STDOUT] CSMessageEJB got TextMessage: Y10108
                12:04:05,956 ERROR [STDERR] at helloworld.messagebeanserver.TREMessageEJB.onMessage(TREMessageEJB.java:97)
                12:04:05,956 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source)
                12:04:05,956 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                12:04:05,956 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324)
                12:04:05,956 ERROR [STDERR] at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:460)

                Which corresponds to this line of code:

                queueConnection = ref.createQueueConnection();

                In this context:

                public void sendMessage(TextMessage msg, String queueName) {
                Context jndiContext = null;
                QueueConnection queueConnection = null;
                QueueConnectionFactory ref = null;
                Queue queue = null;

                try {
                jndiContext = new InitialContext();
                ref = (QueueConnectionFactory)jndiContext.lookup("ConnectionFactory");
                queue = (Queue)jndiContext.lookup(queueName);
                } catch (NamingException e) {
                System.out.println("MessageHelper generated a NamingException: ");
                System.out.println(e.getMessage());
                e.printStackTrace();
                }

                try {
                queueConnection = ref.createQueueConnection();
                QueueSession queueSession = queueConnection.createQueueSession (false, Session.AUTO_ACKNOWLEDGE);
                QueueSender queueSender = queueSession.createSender(queue);

                queueSender.send(msg);

                //queueSender.close();
                //queueSession.close();

                queueConnection.close();
                queueConnection = null;

                // jndiContext.close();

                }
                catch (JMSException e) {
                System.out.println("MessageHelper generated a JMSException: ");
                System.out.println(e.getMessage());
                e.printStackTrace();
                } finally {
                try {
                if(queueConnection != null) {
                System.out.println("MessageHelper - Connection not closed, reclosing connection");
                queueConnection.close();
                queueConnection = null;
                }

                } catch (JMSException e) {
                System.out.println("MessageHelper generated a JMSException: ");
                System.out.println(e.getMessage());
                e.printStackTrace();
                }
                }
                }

                Am I possibly requesting too many connections (my app does nothing but pass messages around) to the queue? Is there any way for me to tune how many MessageDrivenBean instances get created for each MessageDrivenBean?

                Thanks!

                • 5. Re:

                  If you are using the connection factories I suggested, there are no sockets.

                  Regards,
                  Adrian

                  • 6. Re:
                    f2racer

                    adrian, pardon my ignorance, but how exactly do you setup a JmsXA connection factory?

                    My ejb-jar.xml looks like this:

                    <message-driven>
                     <ejb-name>TREMessageEJB</ejb-name>
                     <ejb-class>helloworld.messagebeanserver.TREMessageEJB</ejb-class>
                     <transaction-type>Container</transaction-type>
                     <message-selector></message-selector>
                     <message-driven-destination>
                     <destination-type>javax.jms.Queue</destination-type>
                     </message-driven-destination>
                     <security-identity>
                     <run-as><role-name>everyone</role-name></run-as>
                     </security-identity>
                     <resource-ref>
                     <res-ref-name>jms/QueueFactory</res-ref-name>
                     <res-type>javax.jms.QueueConnectionFactory</res-type>
                     <res-auth>Container</res-auth>
                     </resource-ref>
                     </message-driven>


                    My jboss.xml looks like this:

                    <message-driven>
                     <ejb-name>TREMessageEJB</ejb-name>
                     <configuration-bean>Standard Message Driven Bean</configuration-bean>
                     <destination-jndi-name>queue/treQueue</destination-jndi-name>
                     <resource-ref>
                     <res-ref-name>jms/QueueFactory</res-ref-name>
                     <jndi-name>java:/JmsXA</jndi-name>
                     </resource-ref>
                     </message-driven>


                    And my jbossmq-destinations-service.xml looks like this:

                    <mbean code="org.jboss.mq.server.jmx.Queue"
                     name="jboss.mq.destination:service=Queue,name=treQueue">
                     <attribute name="JNDIName">queue/treQueue</attribute>
                     <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends>
                    </mbean>



                    Thanks!

                    • 7. Re:

                      Like you specify, but you aren't using it.

                      lookup("java:comp/env/jms/QueueFactory");

                      Regards,
                      Adrian

                      • 8. Re:
                        f2racer

                        If I change the line:

                        ref = (QueueConnectionFactory)jndiContext.lookup("ConnectionFactory");


                        to:

                        ref = (QueueConnectionFactory)jndiContext.lookup("java:comp/env/jms/QueueFactory");


                        I get the following exception:

                        [java] javax.naming.NameNotFoundException: comp not bound
                        [java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
                        [java] FilterForActionClient generated a NamingException:
                        [java] comp not bound
                        [java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
                        [java] at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
                        [java] at org.jnp.server.NamingServer.lookup(NamingServer.java:253)
                        [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:528)
                        [java] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507)
                        [java] at javax.naming.InitialContext.lookup(InitialContext.java:347)
                        [java] at helloworld.messagebeanclient.FilterForActionClient.send(FilterForActionClient.java:53)
                        [java] at helloworld.messagebeanclient.FilterForActionClient.main(FilterForActionClient.java:38)
                        [java] java.lang.NullPointerException
                        [java] at helloworld.messagebeanclient.FilterForActionClient.send(FilterForActionClient.java:62)
                        [java] at helloworld.messagebeanclient.FilterForActionClient.main(FilterForActionClient.java:38)
                        [java] Exception in thread "main"
                        [java] Java Result: 1

                        How do I use teh QueueFactory?

                        Thanks!

                        • 9. Re:
                          f2racer

                          BTW, after the exception occurs on the connect, it looks like it continues to process message as soon as a connection is freed... In fact, it doesn't actually miss any of the messages even though the code creates an exception in the code that sends the messages...

                          • 10. Re:
                            f2racer

                             

                            "f2racer" wrote:
                            BTW, after the exception occurs on the connect, it looks like it continues to process message as soon as a connection is freed... In fact, it doesn't actually miss any of the messages even though the code creates an exception in the code that sends the messages...


                            Oops, I meant if I'm using ConnectionFactory (the JMSException), if I use QueueFactory the code stops at the NamingException.

                            • 11. Re:

                              Please re-evaluate what you are doing.

                              Your original problem showed a bind exception from an mdb.
                              Your config shows your mdb.

                              Why are you now showing me an exception on the client?

                              Regards,
                              Adrian

                              • 12. Re:
                                f2racer

                                I'm sorry, didn't mean to mix anything up... The server picks up 4 messages, from there it throws exceptions. Here's the server log:

                                16:24:04,390 INFO [STDOUT] TREMessageEJB got TextMessage: Y10001
                                16:24:04,421 INFO [STDOUT] TREMessageEJB got TextMessage: Y10002
                                16:24:04,453 INFO [STDOUT] TREMessageEJB got TextMessage: Y10003
                                16:24:04,484 INFO [STDOUT] TREMessageEJB got TextMessage: Y10004
                                16:24:04,484 INFO [STDOUT] MessageHelper generated a JMSException:
                                16:24:04,484 INFO [STDOUT] MessageHelper generated a JMSException:
                                16:24:04,484 INFO [STDOUT] MessageHelper generated a JMSException:
                                16:24:04,484 INFO [STDOUT] Invalid transaction id.
                                16:24:04,484 INFO [STDOUT] Invalid transaction id.
                                16:24:04,484 INFO [STDOUT] Invalid transaction id.
                                16:24:04,484 ERROR [STDERR] javax.jms.JMSException: Invalid transaction id.
                                16:24:04,484 ERROR [STDERR] at org.jboss.mq.SpyXAResourceManager.addMessage(SpyXAResourceManager.java:95)
                                16:24:04,484 ERROR [STDERR] at org.jboss.mq.SpySession.sendMessage(SpySession.java:728)
                                16:24:04,484 ERROR [STDERR] at org.jboss.mq.SpyQueueSender.internalSend(SpyQueueSender.java:118)
                                16:24:04,484 ERROR [STDERR] at org.jboss.mq.SpyQueueSender.send(SpyQueueSender.java:68)
                                16:24:04,484 ERROR [STDERR] at helloworld.messagebeanserver.MessageHelper.sendMessage(MessageHelper.java:60)
                                16:24:04,484 ERROR [STDERR] at helloworld.messagebeanserver.TREMessageEJB.onMessage(TREMessageEJB.java:95)
                                16:24:04,484 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                16:24:04,484 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                                16:24:04,484 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                16:24:04,500 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324)
                                16:24:04,515 ERROR [STDERR] at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:460)

                                16:24:04,515 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionIntercept
                                or.java:185)
                                16:24:04,515 ERROR [STDERR] at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.ja
                                va:62)
                                16:24:04,515 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
                                16:24:04,515 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:240)
                                16:24:04,515 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128)
                                16:24:04,515 ERROR [STDERR] at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:90)
                                16:24:04,515 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
                                16:24:04,515 ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122
                                )
                                16:24:04,515 ERROR [STDERR] at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:374)
                                16:24:04,515 ERROR [STDERR] at org.jboss.ejb.Container.invoke(Container.java:700)
                                16:24:04,515 ERROR [STDERR] at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:824)
                                16:24:04,515 ERROR [STDERR] at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.j
                                ava:1114)
                                16:24:04,515 ERROR [STDERR] at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:256)
                                16:24:04,515 ERROR [STDERR] at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:633)
                                16:24:04,515 ERROR [STDERR] at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:433)
                                16:24:04,515 INFO [STDOUT] MessageHelper generated a JMSException:
                                16:24:04,515 INFO [STDOUT] Invalid transaction id.
                                16:24:04,515 ERROR [STDERR] at org.jboss.mq.SpySession.run(SpySession.java:298)
                                16:24:04,515 INFO [STDOUT] TREMessageEJB got TextMessage: Y10005
                                16:24:04,515 ERROR [STDERR] at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)
                                16:24:04,515 ERROR [STDERR] at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:727)
                                16:24:04,515 ERROR [STDERR] at java.lang.Thread.run(Thread.java:534)
                                16:24:04,515 ERROR [STDERR] javax.jms.JMSException: Invalid transaction id.
                                16:24:04,515 INFO [STDOUT] MessageHelper - Connection not closed, reclosing connection
                                16:24:04,515 ERROR [STDERR] at org.jboss.mq.SpyXAResourceManager.addMessage(SpyXAResourceManager.java:95)
                                16:24:04,515 ERROR [STDERR] at org.jboss.mq.SpySession.sendMessage(SpySession.java:728)
                                16:24:04,515 ERROR [STDERR] at org.jboss.mq.SpyQueueSender.internalSend(SpyQueueSender.java:118)
                                16:24:04,515 ERROR [STDERR] at org.jboss.mq.SpyQueueSender.send(SpyQueueSender.java:68)
                                16:24:04,515 ERROR [STDERR] at helloworld.messagebeanserver.MessageHelper.sendMessage(MessageHelper.java:60)
                                16:24:04,515 ERROR [STDERR] at helloworld.messagebeanserver.TREMessageEJB.onMessage(TREMessageEJB.java:95)
                                16:24:04,515 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                16:24:04,515 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                                16:24:04,515 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                16:24:04,515 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:324)
                                16:24:04,515 ERROR [STDERR] at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:460)

                                16:24:04,531 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionIntercept
                                or.java:185)
                                16:24:04,546 ERROR [STDERR] at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.ja
                                va:62)
                                16:24:04,546 INFO [CachedConnectionManager] Closing a connection for you. Please close them yourself: org.jboss.resource.adapter.j
                                ms.JmsSession@58f769
                                java.lang.Exception: STACKTRACE
                                at org.jboss.resource.connectionmanager.CachedConnectionManager.registerConnection(CachedConnectionManager.java:282)
                                at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:506)
                                at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManag
                                er2.java:814)
                                at org.jboss.resource.adapter.jms.JmsSessionFactoryImpl.createQueueSession(JmsSessionFactoryImpl.java:119)
                                at helloworld.messagebeanserver.MessageHelper.sendMessage(MessageHelper.java:57)
                                at helloworld.messagebeanserver.TREMessageEJB.onMessage(TREMessageEJB.java:95)
                                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                at java.lang.reflect.Method.invoke(Method.java:324)
                                at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:460)
                                at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
                                at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:62)
                                at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)
                                at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:240)
                                at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:128)
                                at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:90)
                                at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191)
                                at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
                                at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:374)
                                at org.jboss.ejb.Container.invoke(Container.java:700)
                                at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:824)
                                at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1114)
                                at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:256)
                                at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:633)
                                at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:433)
                                at org.jboss.mq.SpySession.run(SpySession.java:298)
                                at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:180)
                                at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:727)
                                at java.lang.Thread.run(Thread.java:534)
                                16:24:04,546 INFO [STDOUT] MessageHelper generated a JMSException:
                                16:24:04,546 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84)

                                • 13. Re:
                                  f2racer

                                  It looks like the onMessage of my MDB get's called, but all subsequent sendMessage method calls fail.

                                  • 14. Re:

                                    You are outside a transaction in the MDB, is that deliberate?
                                    Try java:/ConnectionFactory

                                    Regards,
                                    Adrian

                                    1 2 Previous Next