View Full Version : ActiveMQ and spring 1.3 Exception.

12-19-2009, 12:45 PM

* spring 1.3
* ActiveMQ 5.3

I'm trying to receive messages from an ActiveMQ based queue. But receive the following exception just as the message is about to be received:

2009/12/19 13:44:33:774 [INFO] Spring.Messaging.Nms.Listener.SimpleMessageListe
nerContainer - Trying to recover from NMS Connection exception: System.IO.EndOfS
treamException: Unable to read beyond the end of the stream.
at System.IO.__Error.EndOfFile()
at System.IO.BinaryReader.FillBuffer(Int32 numBytes)
at System.IO.BinaryReader.ReadInt32()
at Apache.NMS.ActiveMQ.OpenWire.OpenWireBinaryReader. ReadInt32() in d:\Hudson
\jobs\Regatta_Products\workspace\External\Apache.N MS\project\Apache.NMS.ActiveMQ
\tags\1.1.0\src\main\csharp\OpenWire\OpenWireBinar yReader.cs:line 132
at Apache.NMS.ActiveMQ.OpenWire.OpenWireFormat.Unmars hal(BinaryReader dis) in
d:\Hudson\jobs\Regatta_Products\workspace\External \Apache.NMS\project\Apache.NM
S.ActiveMQ\tags\1.1.0\src\main\csharp\OpenWire\Ope nWireFormat.cs:line 242
at Apache.NMS.ActiveMQ.Transport.Tcp.TcpTransport.Rea dLoop() in d:\Hudson\job
s\Regatta_Products\workspace\External\Apache.NMS\p roject\Apache.NMS.ActiveMQ\tag
s\1.1.0\src\main\csharp\Transport\Tcp\TcpTransport .cs:line 315
2009/12/19 13:44:33:829 [INFO] Spring.Messaging.Nms.Listener.SimpleMessageListe
nerContainer - Successfully refreshed NMS Connection

Any ideas appreciated!

12-19-2009, 05:12 PM
Turns out I was missing a reference to spring.data. Why do I need that? I'm not doing any data access. I can't find anything about it in the documentation either.

03-03-2010, 01:32 AM
Hi - I'm running into the same exact error despite including the Spring.Data reference. Did you just need to include the reference or us it anyway? Did that really solve the problem?