Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Unusual Error Message

Reply
Thread Tools

Unusual Error Message

 
 
Mike
Guest
Posts: n/a
 
      06-02-2006


I have some Java classes that accept parameters, perform login then
update MYSQL tables. The code runs fine when executed from IDE
(JBuilder). When I try to run it from a JSP I get the following
message. Can't make heads or tails out of it. Does anyone see the
problem? What does the first line mean?

Thanks


javax.servlet.ServletException: Name index 59136 in LocalVariableTable
has bad constant type in class file
com_xyz_practice/CrunchBracketSchedule

org.apache.jasper.runtime.PageContextImpl.doHandle PageException(PageContextImpl.java:84

org.apache.jasper.runtime.PageContextImpl.handlePa geException(PageContextImpl.java:781)

org.apache.jsp.brackets20B.bracket_005fauto_005fsc h_005fbrks_jsp._jspService(org.apache.jsp.brackets 20B.bracket_005fauto_005fsch_005fbrks_jsp:11

org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet .java:802)

org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:322)

org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:291)

org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet .java:802)

root cause

java.lang.ClassFormatError: Name index 59136 in LocalVariableTable has
bad constant type in class file com_xyz_practice/CrunchBracketSchedule
java.lang.ClassLoader.defineClass1(Native Method)
java.lang.ClassLoader.defineClass(ClassLoader.java :620)

java.security.SecureClassLoader.defineClass(Secure ClassLoader.java:124)

org.apache.catalina.loader.WebappClassLoader.findC lassInternal(WebappClassLoader.java:1629)

org.apache.catalina.loader.WebappClassLoader.findC lass(WebappClassLoader.java:850)

org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1299)

org.apache.catalina.loader.WebappClassLoader.loadC lass(WebappClassLoader.java:1181)
java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:319)

com_xyz_practice.ScheduleBrackets.Schedule(Schedul eBrackets.java:59)

org.apache.jsp.brackets20B.bracket_005fauto_005fsc h_005fbrks_jsp._jspService(org.apache.jsp.brackets 20B.bracket_005fauto_005fsch_005fbrks_jsp:92)

org.apache.jasper.runtime.HttpJspBase.service(Http JspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet .java:802)

org.apache.jasper.servlet.JspServletWrapper.servic e(JspServletWrapper.java:322)

org.apache.jasper.servlet.JspServlet.serviceJspFil e(JspServlet.java:291)

org.apache.jasper.servlet.JspServlet.service(JspSe rvlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet .java:802)

 
Reply With Quote
 
 
 
 
Mike
Guest
Posts: n/a
 
      06-03-2006


Error caused by trying to run class files on machine A that were
compiled on machnie B. A & B have different jdk.

When compiled on B and run on B things worked!!

Thanks for listening.



On Fri, 02 Jun 2006 15:26:48 GMT, http://www.velocityreviews.com/forums/(E-Mail Removed) (Mike) wrote:

>
>
>I have some Java classes that accept parameters, perform login then
>update MYSQL tables. The code runs fine when executed from IDE
>(JBuilder). When I try to run it from a JSP I get the following
>message. Can't make heads or tails out of it. Does anyone see the
>problem? What does the first line mean?
>
>Thanks
>
>
>javax.servlet.ServletException: Name index 59136 in LocalVariableTable
>has bad constant type in class file
>com_xyz_practice/CrunchBracketSchedule
>
>org.apache.jasper.runtime.PageContextImpl.doHandl ePageException(PageContextImpl.java:84
>
>org.apache.jasper.runtime.PageContextImpl.handleP ageException(PageContextImpl.java:781)
>
>org.apache.jsp.brackets20B.bracket_005fauto_005fs ch_005fbrks_jsp._jspService(org.apache.jsp.bracket s20B.bracket_005fauto_005fsch_005fbrks_jsp:11
>
>org.apache.jasper.runtime.HttpJspBase.service(Htt pJspBase.java:97)
> javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
>
>org.apache.jasper.servlet.JspServletWrapper.servi ce(JspServletWrapper.java:322)
>
>org.apache.jasper.servlet.JspServlet.serviceJspFi le(JspServlet.java:291)
>
>org.apache.jasper.servlet.JspServlet.service(JspS ervlet.java:241)
> javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
>
>root cause
>
>java.lang.ClassFormatError: Name index 59136 in LocalVariableTable has
>bad constant type in class file com_xyz_practice/CrunchBracketSchedule
> java.lang.ClassLoader.defineClass1(Native Method)
> java.lang.ClassLoader.defineClass(ClassLoader.java :620)
>
>java.security.SecureClassLoader.defineClass(Secur eClassLoader.java:124)
>
>org.apache.catalina.loader.WebappClassLoader.find ClassInternal(WebappClassLoader.java:1629)
>
>org.apache.catalina.loader.WebappClassLoader.find Class(WebappClassLoader.java:850)
>
>org.apache.catalina.loader.WebappClassLoader.load Class(WebappClassLoader.java:1299)
>
>org.apache.catalina.loader.WebappClassLoader.load Class(WebappClassLoader.java:1181)
> java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:319)
>
>com_xyz_practice.ScheduleBrackets.Schedule(Schedu leBrackets.java:59)
>
>org.apache.jsp.brackets20B.bracket_005fauto_005fs ch_005fbrks_jsp._jspService(org.apache.jsp.bracket s20B.bracket_005fauto_005fsch_005fbrks_jsp:92)
>
>org.apache.jasper.runtime.HttpJspBase.service(Htt pJspBase.java:97)
> javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
>
>org.apache.jasper.servlet.JspServletWrapper.servi ce(JspServletWrapper.java:322)
>
>org.apache.jasper.servlet.JspServlet.serviceJspFi le(JspServlet.java:291)
>
>org.apache.jasper.servlet.JspServlet.service(JspS ervlet.java:241)
> javax.servlet.http.HttpServlet.service(HttpServlet .java:802)
>


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unusual error message from WebService installer. Peter Chapman ASP .Net Web Services 1 04-26-2006 08:46 PM
Unusual wreless fluc, high packet error numbers =?Utf-8?B?SiBTcGVjdG9y?= Wireless Networking 0 02-23-2006 07:10 AM
Unusual Parsin Error?? Lanacan ASP .Net 0 08-02-2005 04:25 PM
Unusual email bounce message Trent SC Computer Support 3 12-20-2004 05:15 PM
Unusual Error with Smart Navigation............urgent.please help thomson ASP .Net 1 11-19-2004 03:39 AM



Advertisments