tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 14077] New: - JSP class corruption when compiling page on SMP server
Date Wed, 30 Oct 2002 01:02:33 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14077>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14077

JSP class corruption when compiling page on SMP server

           Summary: JSP class corruption when compiling page on SMP server
           Product: Tomcat 4
           Version: 4.1.12
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Jasper 2
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: erich@ucsd.edu


Running Tomcat 4.1.12 on multiprocessor servers we often see classloader errors
when we hit a JSP page that is being compiled for the first time. We have seen
this both on Windows 2000 with Sun JDK 1.3.1_01 or 1.3.1_05 and AIX with IBM JDK
1.3.1.2, but we have never seen this on a single-processor system.

The symptom looks like the stack traces below--the class name gets mangled in
the class compiled from the JSP page.

Deleting the page from the work directory and hitting it again usually works, as
does precompiling the page using jspc.

This may be related to bug 11379.

java.lang.ClassFormatError: org/apache/jsp/apphead_jsp (Illegal Class name
"Collections$4.")
 at java.lang.ClassLoader.defineClass0(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code))
 at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java(Compiled
Code))
 at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java(Compiled
Code))
 at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java(Compiled
Code))
 at
org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java(Compiled
Code))
 at
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java(Compiled
Code))
 at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java(Compiled Code))
 at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:333)
 at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:472)
 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

java.lang.ClassFormatError: org/apache/jsp/apphead_jsp (Illegal UTF8 string in
constant pool)
	at java.lang.ClassLoader.defineClass0(Native Method)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:426)
	at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:215)
	at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:131)
	at org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:504)
	at
org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:145)
	at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:383)
	at org.apache.jasper.compiler.Compiler.isOutDated(Compiler.java:333)
	at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:472)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:184)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message