3 Replies Latest reply on Jul 2, 2003 10:45 AM by Sundaram Ramasamy

    JDBC persistence does not work in 2.4.4

    jikky Newbie

      Hi

      I have tried getting JDBC persistence running on 2.4.4 and 2.4.3. The problem is that it throws a null pointer exception in addMessage in BasicQueue where it tries to get the TxManger from the PersistenceManager. After checking the code I realised that Txmanger is not getting initialised at all.

      We are going live and are desperate to have this working. I have seen that 3.0.0 has the proper initialisation though I haven't tested it yet. Can I possibly use jbossmq 3.0.0 with 2.4.4? Will it cause major compatibility issues?

      Thanx in advance
      Jikky

        • 1. Re: JDBC persistence does not work in 2.4.4
          Richard Bottoms Newbie

          I see that the PersistanceManager failure that is noted in my log is something that has been discussed for a few months.

          What missing is a detailed explanation of how the error should be dealt with, or worked around.

          I have some folks going live with a system in a few weeks and they are wanting to know what's wrong.

          • 2. Re: JDBC persistence does not work in 2.4.4
            mikek Newbie

            I have this same problem but it works under kernal 2.2.17 but not under kernal 2.4.3. Any thoughts as to why? I get the following error on the JBoss server:


            [08:44:07,200,OILServerILService] Client request resulted in a server exception:
            java.lang.NullPointerException
            at org.jboss.mq.pm.rollinglogged.PersistenceManager.add(PersistenceManager.java:296)
            at org.jboss.mq.server.PersistentQueue.addMessage(PersistentQueue.java:36)
            at org.jboss.mq.server.JMSQueue.addMessage(JMSQueue.java:100)
            at org.jboss.mq.server.JMSServer.addMessage(JMSServer.java:280)
            at org.jboss.mq.server.JMSServer.addMessage(JMSServer.java:265)
            at org.jboss.mq.il.oil.OILServerILService.run(OILServerILService.java:253)
            at java.lang.Thread.run(Thread.java:484)

            The client returns:

            [java] Begin sendRecvAsync
            [java] Exception in thread "main" org.jboss.mq.SpyJMSException: Cannot send a message to the JMS server
            [java] at org.jboss.mq.Connection.sendToServer(Connection.java:616)
            [java] at org.jboss.mq.SpySession.sendMessage(SpySession.java:478)
            [java] at org.jboss.mq.SpyQueueSender.send(SpyQueueSender.java:103)
            [java] at org.jboss.mq.SpyQueueSender.send(SpyQueueSender.java:64)
            [java] at com.noc.sirtapp.clients.UserListMDC.sendRecvAsync(UserListMDC.java:81)
            [java] at com.noc.sirtapp.clients.UserListMDC.main(UserListMDC.java:95)
            [java] linked exception is:
            [java] java.lang.NullPointerException
            [java] <<no stack trace available>>

            Any ideas why this would happen? Do I need an updated kernal?

            Thanks mike

            • 3. Re: JDBC persistence does not work in 2.4.4
              Sundaram Ramasamy Newbie

              I am having the same problem with jboss-2.4.6, any work around for this.

              -SR

              [10:24:40,190,JBossMQService] Starting
              [10:24:40,200,JBossMQService] JBossMQ version 1.0.0 Beta Started
              [10:24:40,200,JBossMQService] Started
              [10:24:40,210,StateManager] Starting
              [10:24:40,250,StateManager] Started
              [10:24:40,260,PersistenceManager] Starting
              [10:24:40,260,XAPoolDataSource] Creating XA Pool
              [10:24:40,380,PersistenceManager] Stopped
              org.jboss.mq.SpyJMSException: Could not rebuild the queue from the queue's tranaction log.
              at org.jboss.mq.pm.jdbc.MessageLog.throwJMSException(MessageLog.java:206)
              at org.jboss.mq.pm.jdbc.MessageLog.restore(MessageLog.java:96)
              at org.jboss.mq.pm.jdbc.PersistenceManager.restore(PersistenceManager.java:280)
              at org.jboss.mq.pm.jdbc.PersistenceManager.startService(PersistenceManager.java:122)
              at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
              at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:967)
              at $Proxy0.start(Unknown Source)
              at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
              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 com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at org.jboss.Main.(Main.java:208)
              at org.jboss.Main$1.run(Main.java:110)
              at java.security.AccessController.doPrivileged(Native Method)
              at org.jboss.Main.main(Main.java:106)
              linked exception is:
              java.lang.ClassCastException
              at org.jboss.mq.pm.jdbc.MessageLog.restore(MessageLog.java:79)
              at org.jboss.mq.pm.jdbc.PersistenceManager.restore(PersistenceManager.java:280)
              at org.jboss.mq.pm.jdbc.PersistenceManager.startService(PersistenceManager.java:122)
              at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
              at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:967)
              at $Proxy0.start(Unknown Source)
              at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
              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 com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at org.jboss.Main.(Main.java:208)
              at org.jboss.Main$1.run(Main.java:110)
              at java.security.AccessController.doPrivileged(Native Method)
              at org.jboss.Main.main(Main.java:106)
              [10:24:40,661,ConfigurationService] Unexpected error
              org.jboss.mq.SpyJMSException: Could not rebuild the queue from the queue's tranaction log.
              at org.jboss.mq.pm.jdbc.MessageLog.throwJMSException(MessageLog.java:206)
              at org.jboss.mq.pm.jdbc.MessageLog.restore(MessageLog.java:96)
              at org.jboss.mq.pm.jdbc.PersistenceManager.restore(PersistenceManager.java:280)
              at org.jboss.mq.pm.jdbc.PersistenceManager.startService(PersistenceManager.java:122)
              at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
              at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:967)
              at $Proxy0.start(Unknown Source)
              at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
              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 com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at org.jboss.Main.(Main.java:208)
              at org.jboss.Main$1.run(Main.java:110)
              at java.security.AccessController.doPrivileged(Native Method)
              at org.jboss.Main.main(Main.java:106)
              linked exception is:
              java.lang.ClassCastException
              at org.jboss.mq.pm.jdbc.MessageLog.restore(MessageLog.java:79)
              at org.jboss.mq.pm.jdbc.PersistenceManager.restore(PersistenceManager.java:280)
              at org.jboss.mq.pm.jdbc.PersistenceManager.startService(PersistenceManager.java:122)
              at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
              at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:324)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:967)
              at $Proxy0.start(Unknown Source)
              at org.jboss.util.ServiceControl.start(ServiceControl.java:79)
              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 com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
              at org.jboss.Main.(Main.java:208)
              at org.jboss.Main$1.run(Main.java:110)
              at java.security.AccessController.doPrivileged(Native Method)
              at org.jboss.Main.main(Main.java:106)
              [10:24:40,931,JVMServerILService] Starting