activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Loktionov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AMQ-1155) "Object reference not set to an instance of an object." exception when closing connection.
Date Wed, 07 Feb 2007 23:53:04 GMT

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

Dennis Loktionov commented on AMQ-1155:
---------------------------------------

Adding the if-statement helps, there is no exception being thrown anymore, but there is another
problem: connection is not properly disposed.
I was monitoring ActiveMQ broker in JConsole running example given on the NMS webpage on the
ActiveMQ website, the Connection is still registered in JConsole after the code is executed.

I tried to call Dispose() and Close() methods on the connection object, but that didn't help.

> "Object reference not set to an instance of an object." exception when closing connection.
> ------------------------------------------------------------------------------------------
>
>                 Key: AMQ-1155
>                 URL: https://issues.apache.org/activemq/browse/AMQ-1155
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker, NMS (C# client)
>    Affects Versions: 4.1.0
>         Environment: WINXP SP2 
>            Reporter: Jan K
>
>    at ActiveMQ.TestMain.connection_ExceptionListener(Exception exception) in D:\activemq-dotnet\src\test\csharp\ActiveMQ\TestMain.cs:line
80
>    at ActiveMQ.Connection.OnException(ITransport sender, Exception exception) in D:\activemq-dotnet\src\main\csharp\ActiveMQ\Connection.cs:line
334
>    at ActiveMQ.Transport.TransportFilter.OnException(ITransport sender, Exception command)
in D:\activemq-dotnet\src\main\csharp\ActiveMQ\Transport\TransportFilter.cs:line 44
>    at ActiveMQ.Transport.TransportFilter.OnException(ITransport sender, Exception command)
in D:\activemq-dotnet\src\main\csharp\ActiveMQ\Transport\TransportFilter.cs:line 44
>    at ActiveMQ.Transport.WireFormatNegotiator.OnException(ITransport sender, Exception
command) in D:\activemq-dotnet\src\main\csharp\ActiveMQ\Transport\WireFormatNegotiator.cs:line
102
>    at ActiveMQ.Transport.Tcp.TcpTransport.ReadLoop() in D:\activemq-dotnet\src\main\csharp\ActiveMQ\Transport\Tcp\TcpTransport.cs:line
150
>    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
>    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback
callback, Object state)
>    at System.Threading.ThreadHelper.ThreadStart()

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