Skip to main content

WS / Applocation after deploiment unuseable

1 reply [Last post]
oaspublic
Offline
Joined: 2003-10-16
Points: 0

Hi,

I have gf v. Sun GlassFish Enterprise Server v2.1 (9.1.1) (build b60e-fcs) on Win2000 with Sun VM v6.

Sometimes after deploy my ws offer application is unavailable and throw exceptions when some access this ws. They see npe but I'm not sure what part of code produce this. All I see is in log is during / after depoy:

[#|2009-12-03T14:43:39.650+0100|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=23;_ThreadName=RMI TCP Connection(956)-192.168.13.1;|
classLoader = WebappClassLoader
delegate: true
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
EJBClassLoader :
urlSet = []
doneCalled = false
Parent -> Shared ClassLoader Chain parentCL :: sun.misc.Launcher$AppClassLoader@df6ccd URLs ::
,[many gf libs.............]

Then this info:

[#|2009-12-03T14:43:39.665+0100|INFO|sun-appserver2.1|org.apache.catalina.loader.WebappClassLoader|_ThreadID=41;_ThreadName=Thread-468;|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)|#]

and then when some rq a ws I see this error:

[#|2009-12-03T14:43:39.665+0100|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=41;_ThreadName=Thread-468;_RequestID=dfec29d0-d04c-4363-ae88-fe6a5f589b74;|
org.apache.commons.mail.EmailException: Sending the email to the following server failed : 172.25.82.40:25
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:873)
at org.apache.commons.mail.Email.send(Email.java:898)
at at.eurotours.mail.Mail.run(Mail.java:374)
Caused by: java.lang.ThreadDeath
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1411)
at javax.activation.MailcapCommandMap.getDataContentHandler(MailcapCommandMap.java:603)
at javax.activation.MailcapCommandMap.createDataContentHandler(MailcapCommandMap.java:563)
at javax.activation.DataHandler.getDataContentHandler(DataHandler.java:625)
at javax.activation.DataHandler.writeTo(DataHandler.java:329)
at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:261)
at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1321)
at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1030)
at javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:416)
at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1307)
at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2074)
at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2042)
at javax.mail.Transport.send(Transport.java:117)
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:863)
... 2 more
|#]

I think the root cause is a email that is send through an unknown exception.
When I send an email I create a new thread and send this asyncron. But I don't know the root cause that cause the exception email.

But what mean this:

Caused by: java.lang.ThreadDeath
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1411)

Does any know something about this or have some hints how to find the root cause of this

thanks for all

regards Dietmar

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Jan Luehe

On 12/04/09 06:33, glassfish@javadesktop.org wrote:
> Hi,
>
> I have gf v. Sun GlassFish Enterprise Server v2.1 (9.1.1) (build b60e-fcs) on Win2000 with Sun VM v6.
>
> Sometimes after deploy my ws offer application is unavailable and throw exceptions when some access this ws. They see npe but I'm not sure what part of code produce this. All I see is in log is during / after depoy:
>
> [#|2009-12-03T14:43:39.650+0100|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=23;_ThreadName=RMI TCP Connection(956)-192.168.13.1;|
> classLoader = WebappClassLoader
> delegate: true
> repositories:
> /WEB-INF/classes/
> ----------> Parent Classloader:
> EJBClassLoader :
> urlSet = []
> doneCalled = false
> Parent -> Shared ClassLoader Chain parentCL :: sun.misc.Launcher$AppClassLoader@df6ccd URLs ::
> ,[many gf libs.............]
>
> Then this info:
>
> [#|2009-12-03T14:43:39.665+0100|INFO|sun-appserver2.1|org.apache.catalina.loader.WebappClassLoader|_ThreadID=41;_ThreadName=Thread-468;|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)|#]
>
>
> and then when some rq a ws I see this error:
>
> [#|2009-12-03T14:43:39.665+0100|WARNING|sun-appserver2.1|javax.enterprise.system.stream.err|_ThreadID=41;_ThreadName=Thread-468;_RequestID=dfec29d0-d04c-4363-ae88-fe6a5f589b74;|
> org.apache.commons.mail.EmailException: Sending the email to the following server failed : 172.25.82.40:25
> at org.apache.commons.mail.Email.sendMimeMessage(Email.java:873)
> at org.apache.commons.mail.Email.send(Email.java:898)
> at at.eurotours.mail.Mail.run(Mail.java:374)
> Caused by: java.lang.ThreadDeath
> at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1411)
> at javax.activation.MailcapCommandMap.getDataContentHandler(MailcapCommandMap.java:603)
> at javax.activation.MailcapCommandMap.createDataContentHandler(MailcapCommandMap.java:563)
> at javax.activation.DataHandler.getDataContentHandler(DataHandler.java:625)
> at javax.activation.DataHandler.writeTo(DataHandler.java:329)
> at javax.mail.internet.MimeUtility.getEncoding(MimeUtility.java:261)
> at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1321)
> at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1030)
> at javax.mail.internet.MimeMultipart.updateHeaders(MimeMultipart.java:416)
> at javax.mail.internet.MimeBodyPart.updateHeaders(MimeBodyPart.java:1307)
> at javax.mail.internet.MimeMessage.updateHeaders(MimeMessage.java:2074)
> at javax.mail.internet.MimeMessage.saveChanges(MimeMessage.java:2042)
> at javax.mail.Transport.send(Transport.java:117)
> at org.apache.commons.mail.Email.sendMimeMessage(Email.java:863)
> ... 2 more
> |#]
>
>
> I think the root cause is a email that is send through an unknown exception.
> When I send an email I create a new thread and send this asyncron. But I don't know the root cause that cause the exception email.
>
> But what mean this:
>
> Caused by: java.lang.ThreadDeath
> at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1411)
>
> Does any know something about this or have some hints how to find the root cause of this
>

See

http://wiki.glassfish.java.net/Wiki.jsp?page=FaqWebAppStoppedIllegalAcce...

for an explanation of what might be causing this error (it's most likely
an error in your app).

BTW, we've made this exception a little more intuitive in v3.

Jan

> thanks for all
>
> regards Dietmar
> [Message sent by forum member 'oaspublic' ]
>
> http://forums.java.net/jive/thread.jspa?messageID=374743
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: users-help@glassfish.dev.java.net
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: users-help@glassfish.dev.java.net