dev@glassfish.java.net

Re: Threaddeath exceptions

From: Sameer Tyagi <Sameer.Tyagi_at_Sun.COM>
Date: Mon, 02 Oct 2006 11:08:39 -0400

Not sure, because the web apps being deployed dont have any RM
assertions in them.
So the RM pipes shouldnt actually be doing anything - unless I m missing
something.

/s


Tom Amiro wrote:

> Sameer,
>
> This reminds me of a problem with RM client apps captured in issue 75.
> In that case, I also saw this message
>
>> Illegal access: this web application instance has been stopped already
>
>
> Mike Grogan may have a better idea if the problem you are running into
> has the same cause which is described by Mike in issue 75 as
>
>> At the moment, a WebApp hosting a RM client won't undeploy cleanly
>> without restarting the container. Restarting the container is the
>> only way to stop the Thread that resends messages and keeps open
>> connections alive. In this case the Thread keeps trying to keep the
>> open connection alive after the WebApp has been undeployed.
>>
> Tom
>
> Sameer Tyagi wrote:
>
>> Have filed a bug at https://wsit.dev.java.net/issues/show_bug.cgi?id=78
>>
>>
>>
>> Jeanfrancois Arcand wrote:
>>
>>> Hi Sameer,
>>>
>>> Sameer Tyagi wrote:
>>>
>>>> I m at a loss to figure this out so wondering if anyone on this
>>>> list has any idea.
>>>> When deploying WSIT apps I see this exception in the server.log file
>>>
>>>
>>>
>>>
>>> Only at deployment? It seems the WSIT runtime is keeping a reference
>>> the WebContainer internals. Looks like a bug in their implementation.
>>>
>>>>
>>>> If the app server is recycled and process'es killed with -9 the
>>>> exception goes away.
>>>> Only to show up a few hours later.
>>>>
>>>> Any ideas and pointers are appreciated.
>>>
>>>
>>>
>>>
>>> File a bug and I will find a person in WSIT to take a look.
>>>
>>> Thanks
>>>
>>> -- Jeanfrancois
>>>
>>>>
>>>> Thanks
>>>> /s
>>>>
>>>>
>>>> [#|2006-09-28T20:42:49.955-0400|INFO|sun-appserver-pe9.1|javax.enterprise.resource.webservices.jaxws.servlet.http|_ThreadID=11;_ThreadName=httpWorkerThread-4848-1;|WSSERVLET14:
>>>> JAX-WS servlet initializing|#]
>>>>
>>>> [#|2006-09-28T20:43:58.542-0400|INFO|sun-appserver-pe9.1|org.apache.catalina.loader.WebappClassLoader|_ThreadID=20;_ThreadName=httpWorkerThread-8080-1;|PWC1635:
>>>> Illegal access: this web application instance has been stopped
>>>> already (the eventual following stack trace is caused by an error
>>>> thrown for debugging purposes as well as to attempt to terminate
>>>> the thread which caused the illegal access, and has no functional
>>>> impact)|#]
>>>>
>>>> [#|2006-09-28T20:43:58.544-0400|SEVERE|sun-appserver-pe9.1|javax.enterprise.resource.webservices.jaxws.servlet.http|_ThreadID=20;_ThreadName=httpWorkerThread-8080-1;_RequestID=055b4358-6436-4cd7-b5b2-6aa3d09831bb;|caught
>>>> throwable
>>>> java.lang.ThreadDeath
>>>> at
>>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1336)
>>>>
>>>> at
>>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1296)
>>>>
>>>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>>>> at
>>>> com.sun.xml.messaging.saaj.soap.ver1_1.Message1_1Impl.getSOAPPart(Message1_1Impl.java:78)
>>>>
>>>> at
>>>> com.sun.xml.ws.message.AbstractMessageImpl.readAsSOAPMessage(AbstractMessageImpl.java:175)
>>>>
>>>> at
>>>> com.sun.xml.wss.jaxws.impl.SecurityPipeBase.cacheMessage(SecurityPipeBase.java:970)
>>>>
>>>> at
>>>> com.sun.xml.wss.jaxws.impl.SecurityServerPipe.process(SecurityServerPipe.java:181)
>>>>
>>>> at
>>>> com.sun.xml.ws.server.WSEndpointImpl$1.process(WSEndpointImpl.java:139)
>>>>
>>>> at
>>>> com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:153)
>>>>
>>>> at
>>>> com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:235)
>>>> at
>>>> com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:97)
>>>>
>>>> at
>>>> com.sun.xml.ws.transport.http.servlet.WSServletDelegate.doPost(WSServletDelegate.java:161)
>>>>
>>>> at
>>>> com.sun.xml.ws.transport.http.servlet.WSServlet.doPost(WSServlet.java:49)
>>>>
>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
>>>> at
>>>> org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:276)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:246)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:185)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
>>>>
>>>> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
>>>> at
>>>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
>>>>
>>>> at
>>>> com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
>>>>
>>>> at
>>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
>>>> at
>>>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:586)
>>>>
>>>> at
>>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:556)
>>>>
>>>> at
>>>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
>>>> at
>>>> org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.invokeAdapter(DefaultProcessorTask.java:618)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.processNonBlocked(DefaultProcessorTask.java:549)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultProcessorTask.process(DefaultProcessorTask.java:789)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.executeProcessorTask(DefaultReadTask.java:328)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:251)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.DefaultReadTask.doTask(DefaultReadTask.java:205)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
>>>>
>>>> at
>>>> com.sun.enterprise.web.connector.grizzly.WorkerThreadImpl.run(WorkerThreadImpl.java:103)
>>>>
>>>> |#]
>>>