1 Reply Latest reply on May 12, 2003 12:27 PM by haraldgliebe

    Problem starting Persistence Manager

    phunsberger

      We've had a running JBoss 3.0.4 / Tomca 4.1.12 setup for months. This weekend 4 systems where shut down and all are now failing. Relevant console log is:

      2003-05-12 09:48:24,855 ERROR [org.jboss.mq.pm.file.PersistenceManager] Starting failed
      org.jboss.mq.SpyJMSException: Could not rebuild the queue from the queue's tranaction log.; - nested throwable: (java.lang.NumberFormatException: txt)
      at org.jboss.mq.pm.file.MessageLog.throwJMSException(MessageLog.java:257)
      at org.jboss.mq.pm.file.MessageLog.restore(MessageLog.java:114)
      at org.jboss.mq.pm.file.PersistenceManager.restoreTransactions(PersistenceManager.java:246)
      at org.jboss.mq.pm.file.PersistenceManager.startService(PersistenceManager.java:169)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      ...

      and:

      2003-05-12 09:48:24,996 WARN [org.jboss.system.ServiceController] Problem starting service jboss.mq:service=PersistenceManager
      org.jboss.mq.SpyJMSException: Could not rebuild the queue from the queue's tranaction log.; - nested throwable: (java.lang.NumberFormatException: txt)
      at org.jboss.mq.pm.file.MessageLog.throwJMSException(MessageLog.java:257)
      at org.jboss.mq.pm.file.MessageLog.restore(MessageLog.java:114)
      at org.jboss.mq.pm.file.PersistenceManager.restoreTransactions(PersistenceManager.java:246)
      at org.jboss.mq.pm.file.PersistenceManager.startService(PersistenceManager.java:169)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:165)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      ...

      Both with a "caused by":

      Caused by: java.lang.NumberFormatException: txt
      at java.lang.Long.parseLong(Long.java:323)
      at java.lang.Long.parseLong(Long.java:381)
      at org.jboss.mq.pm.file.MessageLog.restore(MessageLog.java:102)
      ... 68 more

      Subsequently we cannot hit JBoss/or Tomcat

        • 1. Re: Problem starting Persistence Manager
          haraldgliebe

          The exception is probably caused by a *.txt file under server/<configuration-name>/db/jbossmq/file/<queue-name>/
          JBoss tries to parse the suffix as a message number and fails.
          Could you check if there is such a file and if JBoss starts again after removing it ?