Wednesday, July 4, 2012

java.lang.UnsupportedClassVersionError: Bad version number in .class file


This is due to the incorrect Java Version for the complication & execution.

Resolution:
Download the correct Java Version for the complication.

HTTP Status 500 -


type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Bad version number in .class file
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:272)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
java.lang.UnsupportedClassVersionError: Bad version number in .class file
 java.lang.ClassLoader.defineClass1(Native Method)
 java.lang.ClassLoader.defineClass(ClassLoader.java:620)
 java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
 org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1812)
 org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:866)
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1319)
 org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1198)
 org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1325)
 org.apache.jasper.compiler.Parser.parseElements(Parser.java:1573)
 org.apache.jasper.compiler.Parser.parse(Parser.java:126)
 org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)
 org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
 org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:155)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.

No comments:

Post a Comment