3 Replies Latest reply on Dec 17, 2003 1:43 PM by Adrian Brock

    file.PersistenceManager: Could not rebuild the queue from th

    Joerg Thoennes Newbie

      Hello,

      since we are testing the new JBoss 3.2 branch to be used in production, we would like to get an explanation how the following situation could occur:

      [Fri Dec 12 06:00:15.932 CET 2003] [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.io.EOFException)
      at org.jboss.mq.pm.file.MessageLog.throwJMSException(MessageLog.java:277)
      at org.jboss.mq.pm.file.MessageLog.restore(MessageLog.java:114)
      at org.jboss.mq.pm.file.PersistenceManager.restoreTransactions(PersistenceManager.java:264)
      at org.jboss.mq.pm.file.PersistenceManager.startService(PersistenceManager.java:187)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:966)
      at $Proxy11.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:392)
      [...]
      at org.jboss.Main.boot(Main.java:150)
      at org.jboss.Main$1.run(Main.java:388)
      at java.lang.Thread.run(Thread.java:536)
      Caused by: java.io.EOFException
      at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2165)
      at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2634)
      at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:734)
      at java.io.ObjectInputStream.(ObjectInputStream.java:253)
      at org.jboss.mq.pm.file.MessageLog.restoreMessageFromFile(MessageLog.java:263)
      at org.jboss.mq.pm.file.MessageLog.restore(MessageLog.java:98)
      ... 69 more

      From the "Caused by ... EOFException" and the stacktrace below I assume that the
      corresponding message stored in a file had been truncated somehow. But I could not seen any errors during the previous shutdown of the server.

      Are there any known issues that persistent messages are incompletely saved on shutdown,
      perhaps some buffer flushing issue?

      Thanks, Joerg