1 Reply Latest reply on Oct 2, 2001 7:21 PM by Nicolas Fournier

    PersistenceManager crashing

    Nicolas Fournier Newbie

      OS: WinNT 4.0
      JDK: 1.3.1

      I start with a fresh JBoss 2.4.1.
      My MDB registers to a durable topic and the jbossmq-state.xml looks like that

      <?xml version="1.0" encoding="UTF-8"?>


      guest
      guest


      john
      needle
      DurableSubscriberExample

      DurableSubscriberExample
      testTopic




      When I restart Jboss the PersistanceManager crashes with the following stacktrace:

      [PersistenceManager] Starting
      [PersistenceManager] Stopped
      java.lang.NullPointerException
      at org.jboss.mq.pm.rollinglogged.PersistenceManager.restore(PersistenceManager.java:375)
      at org.jboss.mq.pm.rollinglogged.PersistenceManager.startService(PersistenceManager.java:218)
      at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:107)
      at java.lang.reflect.Method.invoke(Native Method)
      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:836)
      at $Proxy0.start(Unknown Source)
      at org.jboss.util.ServiceControl.start(ServiceControl.java:81)
      at java.lang.reflect.Method.invoke(Native Method)
      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:210)
      at org.jboss.Main$1.run(Main.java:116)
      at java.security.AccessController.doPrivileged(Native Method)
      at org.jboss.Main.main(Main.java:112)
      [Configuration] java.lang.NullPointerException
      [Configuration] at org.jboss.mq.pm.rollinglogged.PersistenceManager.restore(PersistenceManager.java:375)
      [Configuration] at org.jboss.mq.pm.rollinglogged.PersistenceManager.startService(PersistenceManager.java:218)
      [Configuration] at org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:107)
      [Configuration] at java.lang.reflect.Method.invoke(Native Method)
      [Configuration] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Configuration] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Configuration] at org.jboss.configuration.ConfigurationService$ServiceProxy.invoke(ConfigurationService.java:836)
      [Configuration] at $Proxy0.start(Unknown Source)
      [Configuration] at org.jboss.util.ServiceControl.start(ServiceControl.java:81)
      [Configuration] at java.lang.reflect.Method.invoke(Native Method)
      [Configuration] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
      [Configuration] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
      [Configuration] at org.jboss.Main.(Main.java:210)
      [Configuration] at org.jboss.Main$1.run(Main.java:116)
      [Configuration] at java.security.AccessController.doPrivileged(Native Method)
      [Configuration] at org.jboss.Main.main(Main.java:112)

      And I discovered that if I remove the DurableSubscription part of the jbossmq-state.xml so it looks like that:

      <?xml version="1.0" encoding="UTF-8"?>


      guest
      guest


      john
      needle
      DurableSubscriberExample



      it no longer crashes but it adds again the DurableSubscribtion.

      Anyone have a clue??

      Thanks