• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java.lang.ThreadDeath

 
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 1364
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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).
 
We can walk to school together. And we can both read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic