keenan
08-25-2008, 09:01 PM
I'm not 100% sure this is a Spring.NET problem, but I wanted to document it here just in case.
We have a command line server which aborts with a StackOverflowException, usually within a few minutes after AMQ is shut down.
I will try to put together a small test case, but basically what we have are classes that read and write to queues (fairly low volume-- 100 messages or less).
If I shut down AMQ, I expect to see errors in the log from the producers and consumers, and indeed the stack traces are logged which indicate that communication with AMQ failed, such as:
System.Exception: Error writing to broker. Transport connection is closed.
at Apache.NMS.ActiveMQ.Transport.Tcp.TcpTransport.One way(Command command)
However, about 1-5 minutes later our server shuts down and the following is printed to the console:
Process is terminated due to StackOverflowException.
I wouldn't expect to get that just because AMQ is offline.
The producers are using a shared NmsTemplate instance and the consumers are using SimpleMessageListenerContainer and MessageListenerAdapter from the Spring.Messaging.Nms assembly.
Any ideas?
We have a command line server which aborts with a StackOverflowException, usually within a few minutes after AMQ is shut down.
I will try to put together a small test case, but basically what we have are classes that read and write to queues (fairly low volume-- 100 messages or less).
If I shut down AMQ, I expect to see errors in the log from the producers and consumers, and indeed the stack traces are logged which indicate that communication with AMQ failed, such as:
System.Exception: Error writing to broker. Transport connection is closed.
at Apache.NMS.ActiveMQ.Transport.Tcp.TcpTransport.One way(Command command)
However, about 1-5 minutes later our server shuts down and the following is printed to the console:
Process is terminated due to StackOverflowException.
I wouldn't expect to get that just because AMQ is offline.
The producers are using a shared NmsTemplate instance and the consumers are using SimpleMessageListenerContainer and MessageListenerAdapter from the Spring.Messaging.Nms assembly.
Any ideas?