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. Advertisements

  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.
     
    Mike, Jun 3, 2006
    #2
    1. Advertisements

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.