You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Roy Müller (JIRA)" <ji...@apache.org> on 2013/09/19 12:27:51 UTC

[jira] [Commented] (AMQNET-442) Clients with cultures where decimalpoint separator is other than "." fails to connect because version no is parsed as float/Single

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

Roy Müller commented on AMQNET-442:
-----------------------------------

Fix in class StompWireFormat.cs method ReadConnected (line 201) is to specify a formatter:

remoteWireFormatInfo.Version = Single.Parse(frame.RemoveProperty("version"), new NumberFormatInfo{NumberDecimalSeparator = "."});
                
> Clients with cultures where decimalpoint separator is other than "." fails to connect because version no is parsed as float/Single
> ----------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQNET-442
>                 URL: https://issues.apache.org/jira/browse/AMQNET-442
>             Project: ActiveMQ .Net
>          Issue Type: Bug
>          Components: Stomp
>    Affects Versions: 1.5.3
>            Reporter: Roy Müller
>            Assignee: Jim Gomes
>
> Client connecting with STOMP fails with System.FormatException: Input string was not in a correct format. This happens on computers with a culture that has eg. "," as decimal separator instead of ".".
> DEBUG: Exception received in the Inactivity Monitor: System.FormatException: Input string was not in a correct format.
>    at System.Number.ParseSingle(String value, NumberStyles options, NumberFormatInfo numfmt)
>    at System.Single.Parse(String s)
>    at Apache.NMS.Stomp.Protocol.StompWireFormat.ReadConnected(StompFrame frame) in c:\dev\NMS.Stomp\src\main\csharp\Protocol\StompWireFormat.cs:line 199
>    at Apache.NMS.Stomp.Protocol.StompWireFormat.CreateCommand(StompFrame frame) in c:\dev\NMS.Stomp\src\main\csharp\Protocol\StompWireFormat.cs:line 153
>    at Apache.NMS.Stomp.Protocol.StompWireFormat.Unmarshal(BinaryReader dataIn) in c:\dev\NMS.Stomp\src\main\csharp\Protocol\StompWireFormat.cs:line 123
>    at Apache.NMS.Stomp.Transport.Tcp.TcpTransport.ReadLoop() in c:\dev\NMS.Stomp\src\main\csharp\Transport\Tcp\TcpTransport.cs:line 285

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira