Results 1 to 3 of 3

Thread: ActiveMQ and spring 1.3 Exception.

  1. #1
    Join Date
    Mar 2009
    Posts
    5

    Default ActiveMQ and spring 1.3 Exception.

    Hi,

    Setup:
    * 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!

  2. #2
    Join Date
    Mar 2009
    Posts
    5

    Default

    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.

  3. #3
    Join Date
    Mar 2010
    Posts
    1

    Question Did that really fix it?

    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?

    Thanks!
    Gary

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •