activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pascal ST-LAURENT (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AMQ-1131) Cannot connect to ActiveMQ 4.1.0 with C# NMS client
Date Fri, 02 Feb 2007 09:09:04 GMT

    [ https://issues.apache.org/activemq/browse/AMQ-1131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_38458
] 

Pascal ST-LAURENT commented on AMQ-1131:
----------------------------------------

Of course, I made some tests to figure out where the problem come from.

And here is a starting path to investigate:

When we change, in OpenWireFormat.cs, the property PreferedWireFormatInfo.Version to 1.  Everything
works fine, but we have the same null reference exception like the version 4.0.2.

public OpenWireFormat()
{
    PreferedWireFormatInfo.StackTraceEnabled = false;
    PreferedWireFormatInfo.TightEncodingEnabled = false;
    PreferedWireFormatInfo.TcpNoDelayEnabled = false;
    PreferedWireFormatInfo.CacheEnabled = false;
    PreferedWireFormatInfo.SizePrefixDisabled = false;
    PreferedWireFormatInfo.Version = 1; <--------------- Change version to 1, instead of
2
            
    dataMarshallers = new BaseDataStreamMarshaller[256];
    Version = 1;
}

I guess the activemq 4.1.0, have issues with openwire format 2.

Here is the stack trace for the null reference exception:

Stack Trace from error handler: 
   
at ActiveMQ.Transport.WireFormatNegotiator.OnCommand(ITransport sender, Command command) 
in D:\dev\activemq-dotnet\src\main\csharp\ActiveMQ\Transport\WireFormatNegotiator.cs:ligne
75
   at ActiveMQ.Transport.Tcp.TcpTransport.ReadLoop() 
   in D:\dev\activemq-dotnet\src\main\csharp\ActiveMQ\Transport\Tcp\TcpTransport.cs:ligne
146

> Cannot connect to ActiveMQ 4.1.0 with C# NMS client
> ---------------------------------------------------
>
>                 Key: AMQ-1131
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1131
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: NMS (C# client)
>    Affects Versions: 4.1.0
>         Environment: Windows XP SP2
>            Reporter: Pascal ST-LAURENT
>            Priority: Blocker
>
> It is impossible to connect to ActiveMQ 4.1.0 broker with C# NMS client.
> Here is the problem:
> // START SNIPPET: demo
> IConnectionFactory factory = new ConnectionFactory(new Uri("tcp://localhost:61616"));
> using (IConnection connection = factory.CreateConnection())
> {
>      Console.WriteLine("Created a connection!");
>             
>      ISession session = connection.CreateSession(); //<--- hangs here.
>      ...

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