Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

java.lang.ThreadDeath  RSS feed

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tomcat 5.0.24
Struts 1.1



The error message is :
javax.servlet.ServletException
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:244)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)


root cause

java.lang.ThreadDeath
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1229)
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1189)
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
org.apache.log4j.spi.LoggingEvent.<init>(LoggingEvent.java:145)
org.apache.log4j.Category.forcedLog(Category.java:372)
org.apache.log4j.Category.log(Category.java:864)
org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:192)
org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:377)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:441)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:422)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:507)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:274)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)


The log error message is:
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)

I don't understand what's going on.
If I use
out.println(session.getAttribute("account"));
that's fine.

I have the same error message if I try to use
String s = request.getAttibute("abc");

Any ideals?
 
drifter
Ranch Hand
Posts: 1364
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm wondering what's in your included jsp, top.jsp.

I'm not sure what's going on with your stack trace (my best wild guess without seeing all of your code and your configuration is that the compile failed and it's trying to log it but fails to do that, too), but the following line in your jsp shouldn't compile, it needs a cast. I get an "incompatible types" error when I try to compile it (not with tomcat 5).

Account account = session.getAttribute("account");

With cast:
Account account = (Account)session.getAttribute("account");

Same thing with the String

String s = (String)session.getAttribute("mystring");

Your String line has a typo in it that would not compile either (getAttibute).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!