keenan
10-15-2008, 04:27 PM
I could use a recommendation for working around a problem that arises when we try to start a listener container that has been stopped for a long time (ex: hours).
Here is the stack trace:
[2008-10-15 01:16:04,654] [GC.GTP.#1] [WARN ] [(null)] [(null)] [AbstractListenerContainer] Ignoring Connection start exception - assuming already started
Apache.NMS.ActiveMQ.ConnectionClosedException: The connection is already closed!
at Apache.NMS.ActiveMQ.Connection.CheckConnected() in c:\code\3rdparty\apache\activemq\nms\trunk\src\mai n\csharp\Connection.cs:line 400
at Apache.NMS.ActiveMQ.Connection.Start() in c:\code\3rdparty\apache\activemq\nms\trunk\src\mai n\csharp\Connection.cs:line 114
at Spring.Messaging.Nms.Connections.CloseSupressingCo nnection.Start() in c:\code\3rdparty\spring.net\trunk\src\Spring\Sprin g.Messaging.Nms\Messaging\Nms\Connections\SingleCo nnectionFactory.cs:line 489
at Spring.Messaging.Nms.Listener.AbstractListenerCont ainer.StartSharedConnection() in c:\code\3rdparty\spring.net\trunk\src\Spring\Sprin g.Messaging.Nms\Messaging\Nms\Listener\AbstractLis tenerContainer.cs:line 496
I'm still looking into why the connection gets closed (NMS 1.1 has a "keepalive" feature so technically the connection should not get dropped even when we stop accepting messages for awhile) but in the meantime is there any way to get the listener stared when this happens?
Here is the stack trace:
[2008-10-15 01:16:04,654] [GC.GTP.#1] [WARN ] [(null)] [(null)] [AbstractListenerContainer] Ignoring Connection start exception - assuming already started
Apache.NMS.ActiveMQ.ConnectionClosedException: The connection is already closed!
at Apache.NMS.ActiveMQ.Connection.CheckConnected() in c:\code\3rdparty\apache\activemq\nms\trunk\src\mai n\csharp\Connection.cs:line 400
at Apache.NMS.ActiveMQ.Connection.Start() in c:\code\3rdparty\apache\activemq\nms\trunk\src\mai n\csharp\Connection.cs:line 114
at Spring.Messaging.Nms.Connections.CloseSupressingCo nnection.Start() in c:\code\3rdparty\spring.net\trunk\src\Spring\Sprin g.Messaging.Nms\Messaging\Nms\Connections\SingleCo nnectionFactory.cs:line 489
at Spring.Messaging.Nms.Listener.AbstractListenerCont ainer.StartSharedConnection() in c:\code\3rdparty\spring.net\trunk\src\Spring\Sprin g.Messaging.Nms\Messaging\Nms\Listener\AbstractLis tenerContainer.cs:line 496
I'm still looking into why the connection gets closed (NMS 1.1 has a "keepalive" feature so technically the connection should not get dropped even when we stop accepting messages for awhile) but in the meantime is there any way to get the listener stared when this happens?