1 Reply Latest reply on Jul 22, 2003 6:08 AM by adrian.brock

    Could not rebuild the queue from the queue's tranaction log.

    sundaram

      Hi,

      I am using JBoss-2.4.10_Tomcat-4.0.6 JDBC as message storage. While starting the server I am getting following error message.

      -SR

      [18:03:05,499,JdbcProvider] Starting
      [18:03:05,509,JdbcProvider] Started
      [18:03:05,509,DefaultDS] Starting
      [18:03:05,559,DefaultDS] setGCInterval(120000)
      [18:03:05,569,DefaultDS] setGCMinIdleTime(1200000)
      [18:03:05,569,DefaultDS] setIdleTimeout(1800000)
      [18:03:05,569,DefaultDS] setTimestampUsed(false)
      [18:03:05,589,XAConnectionFactory] Starting
      [18:03:05,589,ObjectPool] Adding pool: DefaultDS, GC enabled: false
      [18:03:05,589,DefaultDS] XA Connection pool DefaultDS bound to java:/DefaultDS
      [18:03:05,949,XAConnectionFactory] XAConnectionImpl: org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@1a12495 has no current tx!
      [18:03:05,949,DefaultDS] Started
      [18:03:05,949,ContainerFactory] Starting
      [18:03:05,949,ContainerFactory] Started
      [18:03:05,949,JBossMQService] Starting
      [18:03:05,959,JBossMQService] JBossMQ version 1.0.0 Beta Started
      [18:03:05,959,JBossMQService] Started
      [18:03:05,959,StateManager] Starting
      [18:03:06,019,StateManager] Started
      [18:03:06,019,PersistenceManager] Starting
      [18:03:06,080,XAConnectionFactory] XAConnectionImpl: org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@1a12495 has no current tx!
      [18:03:06,080,XAConnectionFactory] XAConnectionImpl: org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@1a12495 has no current tx!
      [18:03:06,090,XAConnectionFactory] XAConnectionImpl: org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@1a12495 has no current tx!
      [18:03:06,090,XAConnectionFactory] XAConnectionImpl: org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@1a12495 has no current tx!
      [18:03:06,100,XAConnectionFactory] XAConnectionImpl: org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@1a12495 has no current tx!
      [18:03:06,100,XAConnectionFactory] XAConnectionImpl: org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@1a12495 has no current tx!
      [18:03:06,110,XAConnectionFactory] XAConnectionImpl: org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@1a12495 has no current tx!
      [18:03:06,110,XAConnectionFactory] XAConnectionImpl: org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@1a12495 has no current tx!
      [18:03:06,110,XAConnectionFactory] XAConnectionImpl: org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@1a12495 has no current tx!
      [18:03:06,200,XAConnectionFactory] XAConnectionImpl: org.jboss.pool.jdbc.xa.wrapper.XAConnectionImpl@1a12495 has no current tx!
      [18:03:06,210,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:208)
      at org.jboss.mq.pm.jdbc.MessageLog.restore(MessageLog.java:96)
      at org.jboss.mq.pm.jdbc.PersistenceManager.restore(PersistenceManager.java:282)
      at org.jboss.mq.pm.jdbc.PersistenceManager.startService(PersistenceManager.java:123)
      at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
      at sun.reflect.GeneratedMethodAccessor4.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:209)
      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:282)
      at org.jboss.mq.pm.jdbc.PersistenceManager.startService(PersistenceManager.java:123)
      at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
      at sun.reflect.GeneratedMethodAccessor4.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:209)
      at org.jboss.Main$1.run(Main.java:110)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:106)
      [18:03:06,220,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:208)
      at org.jboss.mq.pm.jdbc.MessageLog.restore(MessageLog.java:96)
      at org.jboss.mq.pm.jdbc.PersistenceManager.restore(PersistenceManager.java:282)
      at org.jboss.mq.pm.jdbc.PersistenceManager.startService(PersistenceManager.java:123)
      at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
      at sun.reflect.GeneratedMethodAccessor4.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:209)
      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:282)
      at org.jboss.mq.pm.jdbc.PersistenceManager.startService(PersistenceManager.java:123)
      at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:103)
      at sun.reflect.GeneratedMethodAccessor4.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:209)
      at org.jboss.Main$1.run(Main.java:110)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:106)
      [18:03:06,220,JVMServerILService] Starting
      [18:03:06,260,JVMServerILService] Started
      [18:03:06,260,RMIServerILService] Starting
      [18:03:06,320,RMIServerILService] Started
      [18:03:06,320,OILServerILService] Starting
      [18:03:06,320,OILServerILService] JBossMQ OIL service available at : 0.0.0.0/0.0.0.0:2904
      [18:03:06,861,OILServerILService] Started
      [18:03:06,861,UILServerILService] Starting
      [18:03:06,861,UILServerILService] JBossMQ UIL service available at : 0.0.0.0/0.0.0.0:2905
      [18:03:06,891,UILServerILService] Started

        • 1. Re: Could not rebuild the queue from the queue's tranaction

          I don't know that the jdbc (as opposed to jdbc2 in jboss3)
          is usuable. The last modification was 12 months ago
          which had the following comment in the commit:

          "Fixed some problems in the JDBC PersistenceManager but it is STILL CAPPY
          so don't use it now."

          The actual meaning of the exception is that it was
          expecting a byte[] from the database but got something
          else hence "ClassCastException".

          It could be caused by you trying to use the XA adapter,
          a local adapter is sufficient for jms persistence.

          Just a guess, but Oracle has known problems with blobs
          over 4k in size.

          Regards,
          Adrian