2 Replies Latest reply on Aug 9, 2005 9:45 AM by Joseph Hirn

    Ugrading jbossmq.jar/jbosssx.jar breaks application

    Joseph Hirn Newbie

      Hello. I've been given the task of upgrading our JBOSS AS which our application uses soly the JBossMQ. Currently we use 4.0.0 default configuration and I'm trying to configure 4.0.2 as a JBossMQ Standalone. The problem I'm having is kind of bizzare. I've got everything up and running in 4.0.2, slimmed down for JbossMQ only. I've ran my own JMSTest application and could communicate with the topic established by the jms destinations xml file in deploy/jms/. However the application cannot.

      Here's the funny thing. After 2 days of self troubleshooting, I've learned by using the old versions of jbossmq.jar and jbosssx.jar in the server/myServer/lib directories our application fires up without a hitch, but using the 4.0.2 versions of these jars, our application cannot talk to the server. I have to change both jar files in my 4.0.2 deployment tothe 4.0.0 version and everything works. Pretty much everything else on the is the same. Using log4j set to debug doesn't provide me any useful information and my application only provides me with a generic JMSException:

      
      javax.jms.JMSException: This destination does not exist !
       at org.jboss.mq.server.JMSDestinationManager.createTopic(JMSDestinationManager.java:691)
       at org.jboss.mq.server.JMSServerInterceptorSupport.createTopic(JMSServerInterceptorSupport.java:162)
       at org.jboss.mq.server.TracingInterceptor.createTopic(TracingInterceptor.java:356)
       at org.jboss.mq.server.JMSServerInvoker.createTopic(JMSServerInvoker.java:162)
       at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:123)
       at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:369)
       at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:377)
      



      I've ensureed ourapplication is using the latest jbossall-client.jar for it's JMS packages. Other than that I'm not sure what is causing it. I have two identical server configurations, one with 4.0.0 and one with 4.0.2 versions of these jars. The 4.0.0 version works regardless of the jbossall-client.jar version deployed with my application, my simple JMSTest works with either. I'm at a complete loss. God bless the person that can help.

      Anything else I can post in here I'd be glad to I don't wannt make the post unreadable by floodign it with xml configurations.

        • 1. Re: Ugrading jbossmq.jar/jbosssx.jar breaks application
          Elias Ross Master


          You might need to change your logging threshold to ALL (not just DEBUG) to figure out what's going on.

          • 2. Re: Ugrading jbossmq.jar/jbosssx.jar breaks application
            Joseph Hirn Newbie

            Thank you genman... I tried that and didn't get much else intesting. It did however prompt me to once again reevaulate what was going on. Below is the log output after running my application (a standalone java app) with the 4 possible configurations. One with both 4.0, one with jbossmq 4.0.2, one with jbosssx 4.0.2, and one with both 4.0.2. I see somethign is not letting my topic get setup properly:

            *** Both 4.0.0 When working***
            
            17:08:08,727 DEBUG [SocketManager] Begin ReadTask.run
            17:08:08,750 DEBUG [SocketManager] Begin WriteTask.run
            17:08:08,752 DEBUG [SocketManager] Created ObjectOutputStream
            17:08:08,806 DEBUG [SocketManager] Created ObjectInputStream
            17:08:09,010 DEBUG [ServerSocketManagerHandler] Setting up the UILClientIL Connection
            17:08:09,010 DEBUG [ServerSocketManagerHandler] The UILClientIL Connection is set up
            17:08:09,243 DEBUG [SecurityManager] No SecurityMetadadata was available for JMS_TT1 using default security config
            17:08:09,318 DEBUG [SocketManager] Begin ReadTask.run
            17:08:09,325 DEBUG [SocketManager] Begin WriteTask.run
            17:08:09,327 DEBUG [SocketManager] Created ObjectOutputStream
            17:08:09,331 DEBUG [SocketManager] Created ObjectInputStream
            17:08:09,348 DEBUG [ServerSocketManagerHandler] Setting up the UILClientIL Connection
            17:08:09,357 DEBUG [ServerSocketManagerHandler] The UILClientIL Connection is set up
            17:08:09,380 DEBUG [SecurityManager] No SecurityMetadadata was available for RIBSTONE-MC-QUEUE using default security config
            17:08:09,578 DEBUG [SecurityManager] No SecurityMetadadata was available for topic/RIBSTONE-ONLINE using default security config
            
            *** Both 4.0.2 ***
            
            17:05:44,133 DEBUG [SocketManager] Begin ReadTask.run
            17:05:44,155 DEBUG [SocketManager] Begin WriteTask.run
            17:05:44,170 DEBUG [SocketManager] Created ObjectOutputStream
            17:05:44,202 DEBUG [SocketManager] Created ObjectInputStream
            17:05:44,316 DEBUG [ServerSocketManagerHandler] Setting up the UILClientIL Connection
            17:05:44,354 DEBUG [ServerSocketManagerHandler] The UILClientIL Connection is set up
            17:05:44,599 DEBUG [SocketManager] Begin ReadTask.run
            17:05:44,617 DEBUG [SocketManager] Begin WriteTask.run
            17:05:44,650 DEBUG [SocketManager] Created ObjectOutputStream
            17:05:44,672 DEBUG [SocketManager] Created ObjectInputStream
            17:05:44,942 DEBUG [ServerSocketManagerHandler] Setting up the UILClientIL Connection
            17:05:44,960 DEBUG [ServerSocketManagerHandler] The UILClientIL Connection is set up
            17:05:45,042 DEBUG [SecurityManager] No SecurityMetadadata was available for RIBSTONE-MC-QUEUE using default security config
            
            
            *** 4.0.2 jbosssx.jar and 4.0.0 jbossmq.jar ***
            
            17:11:46,469 DEBUG [SocketManager] Begin ReadTask.run
            17:11:46,476 DEBUG [SocketManager] Begin WriteTask.run
            17:11:46,480 DEBUG [SocketManager] Created ObjectOutputStream
            17:11:46,723 DEBUG [SocketManager] Created ObjectInputStream
            17:11:46,776 ERROR [SocketManager] Failed to handle: org.jboss.mq.il.uil2.msgs.CheckUserMsg6789355[msgType: m_authenticate, msgID: 1, error: null]
            java.lang.NullPointerException
             at org.jboss.mq.security.SecurityManager.addId(SecurityManager.java:271)
             at org.jboss.mq.security.SecurityManager.authenticate(SecurityManager.java:206)
             at org.jboss.mq.security.ServerSecurityInterceptor.authenticate(ServerSecurityInterceptor.java:51)
             at org.jboss.mq.server.TracingInterceptor.authenticate(TracingInterceptor.java:781)
             at org.jboss.mq.server.JMSServerInvoker.authenticate(JMSServerInvoker.java:287)
             at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:195)
             at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:356)
             at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:377)
             at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
             at java.lang.Thread.run(Thread.java:534)
            17:11:46,876 DEBUG [ServerSocketManagerHandler] Exiting on IOE
            java.io.EOFException
             at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2603)
             at java.io.ObjectInputStream.readByte(ObjectInputStream.java:845)
             at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:279)
             at java.lang.Thread.run(Thread.java:534)
            17:11:46,877 DEBUG [SocketManager] End ReadTask.run
            17:11:46,880 DEBUG [SocketManager] End WriteTask.run
            17:11:46,948 DEBUG [SocketManager] Begin ReadTask.run
            17:11:46,989 DEBUG [SocketManager] Begin WriteTask.run
            17:11:46,995 DEBUG [SocketManager] Created ObjectOutputStream
            17:11:47,018 DEBUG [SocketManager] Created ObjectInputStream
            17:11:47,031 ERROR [SocketManager] Failed to handle: org.jboss.mq.il.uil2.msgs.CheckUserMsg23082274[msgType: m_authenticate, msgID: 3, error: null]
            java.lang.NullPointerException
             at org.jboss.mq.security.SecurityManager.addId(SecurityManager.java:271)
             at org.jboss.mq.security.SecurityManager.authenticate(SecurityManager.java:206)
             at org.jboss.mq.security.ServerSecurityInterceptor.authenticate(ServerSecurityInterceptor.java:51)
             at org.jboss.mq.server.TracingInterceptor.authenticate(TracingInterceptor.java:781)
             at org.jboss.mq.server.JMSServerInvoker.authenticate(JMSServerInvoker.java:287)
             at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:195)
             at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:356)
             at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:377)
             at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:743)
             at java.lang.Thread.run(Thread.java:534)
            17:11:47,062 DEBUG [ServerSocketManagerHandler] Exiting on IOE
            java.io.EOFException
             at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2603)
             at java.io.ObjectInputStream.readByte(ObjectInputStream.java:845)
             at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:279)
             at java.lang.Thread.run(Thread.java:534)
            17:11:47,063 DEBUG [SocketManager] End ReadTask.run
            17:11:47,078 DEBUG [SocketManager] End WriteTask.run
            
            
            *** 4.0.0 jbosssx.jar and 4.0.2 jbossmq.jar ***
            
            
            17:15:27,006 DEBUG [SocketManager] Begin ReadTask.run
            17:15:27,024 DEBUG [SocketManager] Created ObjectInputStream
            17:15:27,058 DEBUG [SocketManager] Begin WriteTask.run
            17:15:27,070 DEBUG [SocketManager] Created ObjectOutputStream
            17:15:27,172 DEBUG [ServerSocketManagerHandler] Setting up the UILClientIL Connection
            17:15:27,209 DEBUG [ServerSocketManagerHandler] The UILClientIL Connection is set up
            17:15:27,457 DEBUG [SocketManager] Begin ReadTask.run
            17:15:27,478 DEBUG [SocketManager] Begin WriteTask.run
            17:15:27,490 DEBUG [SocketManager] Created ObjectOutputStream
            17:15:27,506 DEBUG [SocketManager] Created ObjectInputStream
            17:15:27,554 DEBUG [ServerSocketManagerHandler] Setting up the UILClientIL Connection
            17:15:27,575 DEBUG [ServerSocketManagerHandler] The UILClientIL Connection is set up
            17:15:27,667 DEBUG [SecurityManager] No SecurityMetadadata was available for RIBSTONE-MC-QUEUE using default security config