activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JanV <...@vrxstudios.com>
Subject Re: NMS and 4.1.0 problems
Date Thu, 04 Jan 2007 19:14:29 GMT

Here is some more info. Running TestMain demo code for NMS with added
ConnectionException handler. 
--------------------
                IConnectionFactory factory = new ConnectionFactory(new
Uri("tcp://localhost:61616"));
                using (IConnection connection = factory.CreateConnection())
                {
                    Console.WriteLine("Created a connection!");

                    connection.ExceptionListener += new
ExceptionListener(connection_ExceptionListener);

                    ISession session = connection.CreateSession();
---------------------
        static void connection_ExceptionListener(Exception exception)
        {
            Console.WriteLine("Exception Message: " + exception.Message);
            Console.WriteLine("Exception Stack: " + exception.StackTrace);
        }
--------------------------------

Running AMQ Broker 4.0.2. Following two exceptions seem to alternate in no
particular order. (This version runs the full course and exits).

About to connect to ActiveMQ
Created a connection!
Using destination: FOO.BAR
Received message with ID:   61ebf54e-f07c-4598-b8e9-18bb629ba45d:1:1:1
Received message with text: Hello World!
Exception Message: Unable to read beyond the end of the stream.
Exception Stack:    at System.IO.__Error.EndOfFile()
   at System.IO.BinaryReader.FillBuffer(Int32 numBytes)
   at System.IO.BinaryReader.ReadInt32()
   at ActiveMQ.OpenWire.OpenWireBinaryReader.ReadInt32() in
D:\activemq-dotnet\s
rc\main\csharp\ActiveMQ\OpenWire\OpenWireBinaryReader.cs:line 132
   at ActiveMQ.OpenWire.OpenWireFormat.Unmarshal(BinaryReader dis) in
D:\activem
q-dotnet\src\main\csharp\ActiveMQ\OpenWire\OpenWireFormat.cs:line 157
   at ActiveMQ.Transport.Tcp.TcpTransport.ReadLoop() in
D:\activemq-dotnet\src\m
ain\csharp\ActiveMQ\Transport\Tcp\TcpTransport.cs:line 131

About to connect to ActiveMQ
Created a connection!
Using destination: FOO.BAR
Received message with ID:   414aea76-0b1f-43a1-b078-bab35937c475:1:1:1
Received message with text: Hello World!
Exception Message: Object reference not set to an instance of an object.
Exception Stack:    at
ActiveMQ.Transport.WireFormatNegotiator.OnCommand(ITransp
ort sender, Command command) in
D:\activemq-dotnet\src\main\csharp\ActiveMQ\Tran
sport\WireFormatNegotiator.cs:line 75
   at ActiveMQ.Transport.Tcp.TcpTransport.ReadLoop() in
D:\activemq-dotnet\src\m
ain\csharp\ActiveMQ\Transport\Tcp\TcpTransport.cs:line 146


Now the latest release. Running AMQ Broker 4.1.0 and the TestMain demo code
for NMS. (This version hangs at the ISession session =
connection.CreateSession() statement in TestMain).

About to connect to ActiveMQ
Created a connection!
Exception Message: Object reference not set to an instance of an object.
Exception Stack:    at
ActiveMQ.Transport.WireFormatNegotiator.OnCommand(ITransp
ort sender, Command command) in
D:\activemq-dotnet\src\main\csharp\ActiveMQ\Tran
sport\WireFormatNegotiator.cs:line 75
   at ActiveMQ.Transport.Tcp.TcpTransport.ReadLoop() in
D:\activemq-dotnet\src\m
ain\csharp\ActiveMQ\Transport\Tcp\TcpTransport.cs:line 146
Exception Message: Object reference not set to an instance of an object.
Exception Stack:    at
ActiveMQ.Transport.WireFormatNegotiator.OnCommand(ITransp
ort sender, Command command) in
D:\activemq-dotnet\src\main\csharp\ActiveMQ\Tran
sport\WireFormatNegotiator.cs:line 75
   at ActiveMQ.Transport.Tcp.TcpTransport.ReadLoop() in
D:\activemq-dotnet\src\m
ain\csharp\ActiveMQ\Transport\Tcp\TcpTransport.cs:line 146
Exception Message: Object reference not set to an instance of an object.
Exception Stack:    at
ActiveMQ.Transport.WireFormatNegotiator.OnCommand(ITransp
ort sender, Command command) in
D:\activemq-dotnet\src\main\csharp\ActiveMQ\Tran
sport\WireFormatNegotiator.cs:line 75
   at ActiveMQ.Transport.Tcp.TcpTransport.ReadLoop() in
D:\activemq-dotnet\src\m
ain\csharp\ActiveMQ\Transport\Tcp\TcpTransport.cs:line 146
Exception Message: Object reference not set to an instance of an object.
Exception Stack:    at
ActiveMQ.Transport.WireFormatNegotiator.OnCommand(ITransp
ort sender, Command command) in
D:\activemq-dotnet\src\main\csharp\ActiveMQ\Tran
sport\WireFormatNegotiator.cs:line 75
   at ActiveMQ.Transport.Tcp.TcpTransport.ReadLoop() in
D:\activemq-dotnet\src\m
ain\csharp\ActiveMQ\Transport\Tcp\TcpTransport.cs:line 146



-- 
View this message in context: http://www.nabble.com/NMS-and-4.1.0-problems-tf2787347.html#a8165515
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message