4 Replies Latest reply on Aug 24, 2006 3:11 AM by pradeep

    Failed to remove delivery Delivery

    pradeep Newbie

      Steps

      1. Created 5 Topics
      2. Registered 5 subscribers for each of the above topic and disconnect
      3. Run a producer program which sents messages to the above topic
      4. Bring up all the subscribers to consume the messages.

      I got this exception

      2006-08-18 17:16:08,289 ERROR [org.jboss.messaging.core.ChannelSupport] Failed to remove delivery Delivery[Reference[219615]:RELIABLE](active) from state
      org.jboss.util.NestedSQLException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.; - nested throwable: (javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.)
       at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:79)
       at org.jboss.messaging.core.plugin.JDBCPersistenceManager.removeReference(JDBCPersistenceManager.java:1726)
       at org.jboss.messaging.core.ChannelState.acknowledge(ChannelState.java:312)
       at org.jboss.messaging.core.ChannelSupport.acknowledge(ChannelSupport.java:182)
       at org.jboss.messaging.core.SimpleDelivery.acknowledge(SimpleDelivery.java:136)
       at org.jboss.jms.server.endpoint.ServerConsumerEndpoint.acknowledgeAll(ServerConsumerEndpoint.java:500)
       at org.jboss.jms.server.endpoint.ServerSessionEndpoint.acknowledge(ServerSessionEndpoint.java:411)
       at org.jboss.jms.server.endpoint.advised.SessionAdvised.org$jboss$jms$server$endpoint$advised$SessionAdvised$acknowledge$aop(SessionAdvised.java:103)
       at sun.reflect.GeneratedMethodAccessor120.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:585)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:112)
       at org.jboss.aop.Advisor.dynamicInvoke(Advisor.java:723)
       at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:101)
       at org.jboss.jms.server.remoting.JMSServerInvocationHandler.invoke(JMSServerInvocationHandler.java:126)
       at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:842)
       at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:691)
       at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:443)
       at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:530)
       at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:253)
      Caused by: javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.
       at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:454)
       at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:894)
       at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:73)
       ... 19 more


      The code hasn't closed the connection factory. Why is the error coming ?