You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by "Litton, Tom - CEPM" <To...@cepm-us.com> on 2006/04/28 23:10:13 UTC
NPE when closing
I'm running a broker embedded in a tomcat server. I'm getting a NullPointerException when the server is shut down.
The exception stack trace is:
java.lang.NullPointerException
at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnect
ion.java:1137)
at org.apache.activemq.ActiveMQConnection.close(ActiveMQConnection.java:
540)
The transport class is org.apache.activemq.transport.vm.VMTransportServer$1 It looks like the VM transport server never responds to the request to shutdown. The call to Transport.request times out and returns null.
Has anyone seen this problem before? Is it a problem with the way i'm setting up the VM transport?
My transport configuration is:
<transportConnectors>
<transportConnector name="default" uri="vm://localhost" />
<transportConnector name="external" uri="tcp://localhost:61616" />
</transportConnectors>
Thanks for any help you can provide.
Tom
----------------------------------------------------------------------
The information contained in this transmission is intended only for
the personal and confidential use of the designated recipients named
herein. If the reader of this transmission is not the intended
recipient or an agent responsible for delivering it to the intended
recipient, you are hereby notified that you have received this
transmission in error, and that any review, dissemination,
distribution, or copying of this transmission is strictly prohibited.
If you have received this communication in error, please notify the
sender and return and delete the original transmission immediately.
Thank you.
Re: NPE when closing
Posted by James Strachan <ja...@gmail.com>.
On 4/28/06, Litton, Tom - CEPM <To...@cepm-us.com> wrote:
> I'm running a broker embedded in a tomcat server. I'm getting a NullPointerException when the server is shut down.
>
> The exception stack trace is:
> java.lang.NullPointerException
> at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnect
> ion.java:1137)
> at org.apache.activemq.ActiveMQConnection.close(ActiveMQConnection.java:
> 540)
BTW that is a wrapped exception; the real cause of the exception is
not that line; an exception has been received on the client side of a
broker exception that occurs when trying to close. I wonder is there
any chance of seeing the full stack trace (which hopefully includes
the nested exception with the real stack trace in it)
--
James
-------
http://radio.weblogs.com/0112098/
Re: NPE when closing
Posted by James Strachan <ja...@gmail.com>.
Which version are you using? FWIW you don't need to configure the VM
transport in the activemq.xml - not that this is the cause of your
problem.
On 4/28/06, Litton, Tom - CEPM <To...@cepm-us.com> wrote:
> I'm running a broker embedded in a tomcat server. I'm getting a NullPointerException when the server is shut down.
>
> The exception stack trace is:
> java.lang.NullPointerException
> at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnect
> ion.java:1137)
> at org.apache.activemq.ActiveMQConnection.close(ActiveMQConnection.java:
> 540)
>
> The transport class is org.apache.activemq.transport.vm.VMTransportServer$1 It looks like the VM transport server never responds to the request to shutdown. The call to Transport.request times out and returns null.
>
> Has anyone seen this problem before? Is it a problem with the way i'm setting up the VM transport?
>
> My transport configuration is:
> <transportConnectors>
> <transportConnector name="default" uri="vm://localhost" />
> <transportConnector name="external" uri="tcp://localhost:61616" />
> </transportConnectors>
>
> Thanks for any help you can provide.
>
> Tom
>
>
>
>
> ----------------------------------------------------------------------
> The information contained in this transmission is intended only for
> the personal and confidential use of the designated recipients named
> herein. If the reader of this transmission is not the intended
> recipient or an agent responsible for delivering it to the intended
> recipient, you are hereby notified that you have received this
> transmission in error, and that any review, dissemination,
> distribution, or copying of this transmission is strictly prohibited.
> If you have received this communication in error, please notify the
> sender and return and delete the original transmission immediately.
> Thank you.
>
>
>
--
James
-------
http://radio.weblogs.com/0112098/