Unusual Error Message

Discussion in 'Java' started by Mike, Jun 2, 2006.

  1. Mike

    Mike Guest

    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.doHandlePageException(PageContextImpl.java:848)

    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)

    org.apache.jsp.brackets20B.bracket_005fauto_005fsch_005fbrks_jsp._jspService(org.apache.jsp.brackets20B.bracket_005fauto_005fsch_005fbrks_jsp:118)

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

    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)

    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)

    org.apache.jasper.servlet.JspServlet.service(JspServlet.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(SecureClassLoader.java:124)

    org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1629)

    org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)

    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)

    org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
    java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)

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

    org.apache.jsp.brackets20B.bracket_005fauto_005fsch_005fbrks_jsp._jspService(org.apache.jsp.brackets20B.bracket_005fauto_005fsch_005fbrks_jsp:92)

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

    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)

    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)

    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
     
    Mike, Jun 2, 2006
    #1
    1. Advertising

  2. Mike

    Mike Guest

    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, (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.doHandlePageException(PageContextImpl.java:848)
    >
    >org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
    >
    >org.apache.jsp.brackets20B.bracket_005fauto_005fsch_005fbrks_jsp._jspService(org.apache.jsp.brackets20B.bracket_005fauto_005fsch_005fbrks_jsp:118)
    >
    >org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    > javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    >
    >org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
    >
    >org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
    >
    >org.apache.jasper.servlet.JspServlet.service(JspServlet.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(SecureClassLoader.java:124)
    >
    >org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1629)
    >
    >org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)
    >
    >org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)
    >
    >org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)
    > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    >
    >com_xyz_practice.ScheduleBrackets.Schedule(ScheduleBrackets.java:59)
    >
    >org.apache.jsp.brackets20B.bracket_005fauto_005fsch_005fbrks_jsp._jspService(org.apache.jsp.brackets20B.bracket_005fauto_005fsch_005fbrks_jsp:92)
    >
    >org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    > javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    >
    >org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
    >
    >org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
    >
    >org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    > javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    >
     
    Mike, Jun 3, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. thomson
    Replies:
    1
    Views:
    401
    =?Utf-8?B?aG4=?=
    Nov 19, 2004
  2. Lanacan

    Unusual Parsin Error??

    Lanacan, Aug 2, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    353
    Lanacan
    Aug 2, 2005
  3. Lanacan

    Unusual Parsin Error??

    Lanacan, Aug 2, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    339
    Shimon Sim
    Aug 3, 2005
  4. Justin Martin

    Help with unusual ASP.NET 2.0 compile error

    Justin Martin, Jan 9, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    524
    =?Utf-8?B?TWFjayBELiBNYWxl?=
    Jan 21, 2006
  5. Peter Chapman

    Unusual error message from WebService installer.

    Peter Chapman, Apr 25, 2006, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    128
    John Fullmer
    Apr 26, 2006
Loading...

Share This Page