activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Timothy Bish (JIRA)" <jira+amq...@apache.org>
Subject [jira] Commented: (AMQNET-196) ActiveMQ 5.3 / System.IO.EndOfStreamException / "Unable to read beyond the end of the stream.
Date Tue, 13 Oct 2009 18:51:52 GMT

    [ https://issues.apache.org/activemq/browse/AMQNET-196?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=54736#action_54736
] 

Timothy Bish commented on AMQNET-196:
-------------------------------------

The reason this is happening in 5.3 is as a result of the change in https://issues.apache.org/activemq/browse/AMQ-2351.
 The broker doesn't set a response required flag on the KeepAliveInfo command so the .NET
client doesn't ever send back a KeepAliveInfo to the broker as it lacks a true Inactivity
Monitor implementation.  

You can increase the Max Inactivity duration value by setting the option on the clients connection
URI, see: http://activemq.apache.org/configuring-wire-formats.html

Or you can turn on the response required field of the KeepAliveInfo command sent from the
broker by setting the following in you activemq.xml config file:

{noformat}
        <transportConnectors>
            <transportConnector name="openwire" uri="tcp://0.0.0.0:61616?transport.keepAliveResponseRequired=true"/>
        </transportConnectors>
{noformat}



> ActiveMQ 5.3 / System.IO.EndOfStreamException / "Unable to read beyond the end of the
stream.
> ---------------------------------------------------------------------------------------------
>
>                 Key: AMQNET-196
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-196
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>    Affects Versions: 1.1.0
>         Environment: Windows-server-2003
> AMQ 5.3 RC4
> Apache.NMS.ActiveMQ, Version 1.1.0.1642
>            Reporter: Daniel Lujan
>            Assignee: Timothy Bish
>             Fix For: 1.2.0
>
>         Attachments: nmsTest.cs
>
>
> using "Assembly Apache.NMS.ActiveMQ, Version 1.1.0.1642"
> when I use:
>      connection = CreateConnection();
>      connection.ExceptionListener += new ExceptionListener(OnException);
>      session = connection.CreateSession(this.SessionAcknowledgeMode);
>      ....
>    
> each 60 seconds I get a exception :
>       "Unable to read beyond the end of the stream."
> its not necessary a message.... is automatic.
> I upload my test in: 
>        http://www.nabble.com/file/p25862392/nmsTest.cs
> ticket:
>          http://www.nabble.com/NMS---ActiveMQ-5.3----%22Unable-to-read-beyond-the-end-of-the-stream.%22-td25849938.html
> exception type is >>>   System.IO.EndOfStreamException
> note:   with ActiveMQ 5.2 I don't have this issue.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message