activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Litton, Tom - CEPM" <>
Subject RE: NPE when closing
Date Mon, 08 May 2006 16:27:38 GMT
Now that you say that, I think the shutdown hook was stopping the broker before all the VM
transport connections where closed.  I had to stop using the hook for other reasons and I
don't see this problem anymore.  

I can reproduce it if i use the embedded broker using the default settings.  The full stack
trace is:

||  INFO [Thread-42] ( - Removing web application
at context path /email_opts
||  INFO [Thread-42] ( - Stopping JMS connection
Transport class is org.apache.activemq.transport.vm.VMTransportServer$1
StandardContext[/email_opts]Exception sending context destroyed event to listene
r instance of class com.cexppm.applications.optInOptOutEmail.EmailOptMessageCont
        at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnect
        at org.apache.activemq.ActiveMQConnection.close(
        at com.cexppm.messaging.MessageConsumerDriver.stop(MessageConsumerDriver
        at com.cexppm.messaging.QueueConsumerContextListener.contextDestroyed(Qu
        at org.apache.catalina.core.StandardContext.listenerStop(StandardContext
        at org.apache.catalina.core.StandardContext.stop(
        at org.apache.catalina.core.ContainerBase.removeChild(
        at org.apache.catalina.core.StandardHostDeployer.remove(StandardHostDepl
        at org.apache.catalina.core.StandardHost.remove(
        at org.apache.catalina.startup.HostConfig.undeployApps(
        at org.apache.catalina.startup.HostConfig.stop(
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
        at org.apache.catalina.core.ContainerBase.stop(
        at org.apache.catalina.core.ContainerBase.stop(
        at org.apache.catalina.core.StandardEngine.stop(

        at org.apache.catalina.core.StandardService.stop(
        at org.apache.catalina.core.StandardServer.stop(
        at org.apache.catalina.startup.Catalina.stop(
        at org.apache.catalina.startup.Catalina$

-----Original Message-----
From: James Strachan []
Sent: Saturday, May 06, 2006 2:13 AM
Subject: Re: NPE when closing

On 4/28/06, Litton, Tom - CEPM <> 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
>         at org.apache.activemq.ActiveMQConnection.close(
> 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)



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.

View raw message