Uploaded image for project: 'ActiveMQ .Net'
  1. ActiveMQ .Net
  2. AMQNET-251

System.IO.__Error.EndOfFile() exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 1.3.0
    • 1.4.0
    • ActiveMQ
    • None
    • Using ActiveMQ 5.2, NMS 1.3, activemq host Windows Server 2008, activemq nms client on windows XP

    Description

      Get "Unable to read beyond the end of the stream." exception when sending a message. Message gets added to queue appropriately though.

      Stack trace:

      at System.IO.__Error.EndOfFile()
      at System.IO.BinaryReader.FillBuffer(Int32 numBytes)
      at System.IO.BinaryReader.ReadInt32()
      at Apache.NMS.Util.EndianBinaryReader.ReadInt32()
      at Apache.NMS.ActiveMQ.OpenWire.OpenWireFormat.Unmarshal(BinaryReader dis)
      at Apache.NMS.ActiveMQ.Transport.Tcp.TcpTransport.ReadLoop()

      To replicate run attached console against an ActiveMQ 5.2 broker. Inputs entered should be similar to the following, of which after entering Visual Studio 2008 breaks at the exception being thrown. Bug does not occur when using NMS 1.2.

      What is the machine name your broker is running on?
      wamqdev1
      What is the port your broker is running on?
      10200
      URI using is: failover:(tcp://wamqdev1:10200?transport.UseLogging=true)
      What is the queue?
      test
      Run consumer? (Y/N)N
      Run producer? (Y/N)Y
      Do you need to enter a username/password? (Y/N)Y
      enter Usernameuser
      enter Passwordpassword
      How many messages do you want to send (e.g. 10)?
      1
      Press <enter> at any time to shutdown.
      Please enter a pace to send messages in milliseconds (e.g. 1000) or 0 for no wai
      t between message sending. Test was started at 5/19/2010 11:14:34 AM.

      Attachments

        1. NativeNMSConsumerAndProducer.zip
          984 kB
          Mark Gellings

        Activity

          People

            tabish Timothy A. Bish
            magellings Mark Gellings
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: