3 Replies Latest reply on May 8, 2003 5:21 PM by Adrian Brock

    JMS between 2.4.9 and 2.4.4

    Stefan Wiese Newbie

      I upgraded a JBoss from 2.4.4 to 2.4.9.
      Before I upgraded, JMS works fine.
      After upgrade all other things work fine, but for JMS I can't get a TopicConnectionFactory per lookup on a remote machine with a running JBoss 2.4.4.

      here is some code..

      Context context = new InitialContext(props);
      // Get the connection factory
      TopicConnectionFactory topicFactory = (TopicConnectionFactory) context.lookup("TopicConnectionFactory");
      // Create the connection
      topicConnection = topicFactory.createTopicConnection(); //here is NullPointerException thrown

      There is no exception thrown, only a NullPointerException, when trying to use this TopicConnectionFactory-Object to cretae a TopicConnection.
      Like I said, with JBoss 2.4.4. everything is ok. There are NO changes to the sourcecode.
      Can someone help me?

        • 1. Re: JMS between 2.4.9 and 2.4.4
          Adrian Brock Master

          Can you post the full stack trace.


          • 2. Re: JMS between 2.4.9 and 2.4.4
            Stefan Wiese Newbie

            There is no meaningfully stacktrace available, only this:
            A [ERROR] [AuftragTransferSessionBean] Fehler beim JMS-Versand!
            at de.xxx.yyy.session.AuftragTransferSessionBean.sende(Unknown Source)
            at de.xxx.yyy.session.AuftragTransferSessionBean.versendeAlleDaten(Unknown Source)
            at de.xxx.yyy.session.AuftragTransferSessionBean.startTransfer(Unknown Source)
            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.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:542)
            at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:299)
            at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:82)
            at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:127)
            at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:170)
            at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:286)
            at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerInvoker.java:506)
            at org.jboss.ejb.plugins.jrmp.interfaces.GenericProxy.invokeContainer(GenericProxy.java:335)
            at org.jboss.ejb.plugins.jrmp.interfaces.StatelessSessionProxy.invoke(StatelessSessionProxy.java:123)
            at $Proxy125.startTransfer(Unknown Source)
            at de.ietac.gplportal.util.messagetransfer.AuftragTransferTopicListener.run(Unknown Source)
            at java.lang.Thread.run(Thread.java:536)

            This NullPointerExyception occurs when trying to create a TopicConnection with the TopicConnectionFactory.
            Running the JBoss 2.4.4. it can commúnicate with the other JBoss 2.4.4. But running the 2.4.9, this exception is thrown.


            • 3. Re: JMS between 2.4.9 and 2.4.4
              Adrian Brock Master

              It looks like the NPE is in your code?

              at de.xxx.yyy.session.AuftragTransferSessionBean.sende(Unknown Source)

              Are you trying to invoke between 2.4.4 and 2.4.9?
              It might be that one of classes has changed
              One obvious check would be

              serialverid -classpath jbossmq.jar -show org.jboss.mq.Connection
              or one of the other classes in org.jboss.mq