activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vadim Chekan (JIRA)" <jira+amq...@apache.org>
Subject [jira] Updated: (AMQNET-110) WireFormatNegotiator does not negotiate version
Date Thu, 28 Aug 2008 18:50:52 GMT

     [ https://issues.apache.org/activemq/browse/AMQNET-110?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Vadim Chekan updated AMQNET-110:
--------------------------------

    Description: 
Apparently WireFormatNegotiator checks only magic bytes during the
format negotiation and does not check the version.
So NMS client V2 talks to ActiveMQ V3.

394 [-1211205856] INFO Apache.NMS.Tracer (null) - SENDING:
WireFormatInfo[ Magic=System.Byte[] Version=2
MarshalledProperties={CacheEnabled=False, SizePrefixDisabled=False,
StackTraceEnabled=False, TcpNoDelayEnabled=False,
TightEncodingEnabled=False} ]
395 [-1225606256] DEBUG Apache.NMS.Tracer (null) - Parsing type: 1
with: Apache.NMS.ActiveMQ.OpenWire.V1.WireFormatInfoMarshaller
403 [-1225606256] INFO Apache.NMS.Tracer (null) - RECEIVED:
WireFormatInfo[ Magic=System.Byte[] Version=3
MarshalledProperties={CacheEnabled=True, CacheSize=1024,
SizePrefixDisabled=False, TightEncodingEnabled=True,
MaxInactivityDuration=30000, MaxInactivityDurationInitalDelay=10000,
StackTraceEnabled=True, TcpNoDelayEnabled=True} ]

Please note that even though ActiveMQ claimed V3 protocol, NMS client accepted it.
According to the current code in WireFormatNegotiator  only magic bytes are checked but not
the version.

  was:
Apparently WireFormatNegotiator checks only magic bytes during the
format negotiation and does not check the version.
So NMS client V2 talks to ActiveMQ V3.

394 [-1211205856] INFO Apache.NMS.Tracer (null) - SENDING:
WireFormatInfo[ Magic=System.Byte[] Version=2
MarshalledProperties={CacheEnabled=False, SizePrefixDisabled=False,
StackTraceEnabled=False, TcpNoDelayEnabled=False,
TightEncodingEnabled=False} ]
395 [-1225606256] DEBUG Apache.NMS.Tracer (null) - Parsing type: 1
with: Apache.NMS.ActiveMQ.OpenWire.V1.WireFormatInfoMarshaller
403 [-1225606256] INFO Apache.NMS.Tracer (null) - RECEIVED:
WireFormatInfo[ Magic=System.Byte[] Version=3
MarshalledProperties={CacheEnabled=True, CacheSize=1024,
SizePrefixDisabled=False, TightEncodingEnabled=True,
MaxInactivityDuration=30000, MaxInactivityDurationInitalDelay=10000,
StackTraceEnabled=True, TcpNoDelayEnabled=True} ]

Please note that even though ActiveMQ claimed V# protocol, NMS client accepted it.
According to the current code in WireFormatNegotiator  only magic bytes are checked but not
the version.


> WireFormatNegotiator does not negotiate version
> -----------------------------------------------
>
>                 Key: AMQNET-110
>                 URL: https://issues.apache.org/activemq/browse/AMQNET-110
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>          Components: ActiveMQ Client
>            Reporter: Vadim Chekan
>            Assignee: James Strachan
>
> Apparently WireFormatNegotiator checks only magic bytes during the
> format negotiation and does not check the version.
> So NMS client V2 talks to ActiveMQ V3.
> 394 [-1211205856] INFO Apache.NMS.Tracer (null) - SENDING:
> WireFormatInfo[ Magic=System.Byte[] Version=2
> MarshalledProperties={CacheEnabled=False, SizePrefixDisabled=False,
> StackTraceEnabled=False, TcpNoDelayEnabled=False,
> TightEncodingEnabled=False} ]
> 395 [-1225606256] DEBUG Apache.NMS.Tracer (null) - Parsing type: 1
> with: Apache.NMS.ActiveMQ.OpenWire.V1.WireFormatInfoMarshaller
> 403 [-1225606256] INFO Apache.NMS.Tracer (null) - RECEIVED:
> WireFormatInfo[ Magic=System.Byte[] Version=3
> MarshalledProperties={CacheEnabled=True, CacheSize=1024,
> SizePrefixDisabled=False, TightEncodingEnabled=True,
> MaxInactivityDuration=30000, MaxInactivityDurationInitalDelay=10000,
> StackTraceEnabled=True, TcpNoDelayEnabled=True} ]
> Please note that even though ActiveMQ claimed V3 protocol, NMS client accepted it.
> According to the current code in WireFormatNegotiator  only magic bytes are checked but
not the version.

-- 
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