activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Litton, Tom - CEPM" <Tom.Lit...@cepm-us.com>
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] (StandardHostDeployer.java:668) - Removing web application
at context path /email_opts
||  INFO [Thread-42] (MessageConsumerDriver.java:163) - 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
roller
java.lang.NullPointerException
        at org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnect
ion.java:1137)
        at org.apache.activemq.ActiveMQConnection.close(ActiveMQConnection.java:
540)
        at com.cexppm.messaging.MessageConsumerDriver.stop(MessageConsumerDriver
.java:178)
        at com.cexppm.messaging.QueueConsumerContextListener.contextDestroyed(Qu
eueConsumerContextListener.java:287)
        at org.apache.catalina.core.StandardContext.listenerStop(StandardContext
.java:3868)
        at org.apache.catalina.core.StandardContext.stop(StandardContext.java:45
31)
        at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java
:952)
        at org.apache.catalina.core.StandardHostDeployer.remove(StandardHostDepl
oyer.java:670)
        at org.apache.catalina.core.StandardHost.remove(StandardHost.java:946)
        at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1
028)
        at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1005)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:351)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:119)
        at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1123)
        at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1135)
        at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:483)

        at org.apache.catalina.core.StandardService.stop(StandardService.java:54
2)
        at org.apache.catalina.core.StandardServer.stop(StandardServer.java:2347
)
        at org.apache.catalina.startup.Catalina.stop(Catalina.java:605)
        at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalin
a.java:648)

-----Original Message-----
From: James Strachan [mailto:james.strachan@gmail.com]
Sent: Saturday, May 06, 2006 2:13 AM
To: activemq-users@geronimo.apache.org
Subject: Re: NPE when closing


On 4/28/06, Litton, Tom - CEPM <Tom.Litton@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/


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


Mime
View raw message