6 Replies Latest reply on Jul 10, 2006 2:53 PM by David Small

    When deploy mdb,durable attribute is failure,,,

    Fox Gemini Newbie

      When i deploy a mdb whose type is topic,in ejb-jar.xml file:
      ...
      <message-driven-destination>
      <destination-type>javax.jms.Topic</destination-type>
      <subscription-durability>NonDurable</subscription-durability>
      </message-driven-destination>
      ...
      start run.bat,deploy is successful.
      change "NonDurable" to "Durable",deploy fail.
      the error message just like:

      14:10:05,155 WARN [JMSContainerInvoker] JMS provider failure detected:
      org.jboss.deployment.DeploymentException: Error during topic setup; - nested throwable: (javax.jms.J
      MSException: Null or empty subscription)
      at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException
      .java:39)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:807)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:922)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.run(JMSContainerInvok
      er.java:1492)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: javax.jms.JMSException: Null or empty subscription
      at org.jboss.mq.SpyConnection.createDurableConnectionConsumer(SpyConnection.java:153)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:789)
      ... 3 more
      14:10:05,155 INFO [JMSContainerInvoker] Reconnected to JMS provider
      14:10:05,155 ERROR [JMSContainerInvoker] Could not set ExceptionListener to null
      javax.jms.IllegalStateException: The connection is closed
      at org.jboss.mq.Connection.setExceptionListener(Connection.java:559)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerStop(JMSContainerInvoker.java:987)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.run(JMSContainerInvok
      er.java:1460)
      at java.lang.Thread.run(Thread.java:595)
      14:10:05,155 ERROR [JMSContainerInvoker] Could not stop JMS connection
      javax.jms.IllegalStateException: The connection is closed
      at org.jboss.mq.Connection.stop(Connection.java:694)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerStop(JMSContainerInvoker.java:1001)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.run(JMSContainerInvok
      er.java:1460)
      at java.lang.Thread.run(Thread.java:595)
      14:10:15,155 INFO [JMSContainerInvoker] Trying to reconnect to JMS provider
      14:10:15,171 WARN [JMSContainerInvoker] JMS provider failure detected:
      org.jboss.deployment.DeploymentException: Error during topic setup; - nested throwable: (javax.jms.J
      MSException: Null or empty subscription)
      at org.jboss.deployment.DeploymentException.rethrowAsDeploymentException(DeploymentException
      .java:39)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:807)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:922)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker$ExceptionListenerImpl.run(JMSContainerInvok
      er.java:1492)
      at java.lang.Thread.run(Thread.java:595)


      any suggestion?