• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

regarding JSP Processing Error --Illegal constant pool index

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all.,

I am getting the following excpetion while loading my jsp page.

An exception has occurred in the compiler (1.4.2). Please file a bug at the Java Developer Connection (http://java.sun.com/cgi-bin/bugreport.cgi) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.

java.lang.ClassFormatError: com/sun/tools/javac/v8/comp/Gen (Illegal constant pool index)at java.lang.ClassLoader.defineClass0(Native Method)

I have tried very much to find the cause of exception. But I can`t.
Please tell me the solution for this exception.
I hope my JSP doesn`t contain any errors.

Thanks in Advance
 
author & internet detective
Posts: 41878
909
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Suresh,
The first step is to reproduce the problem. Can you come up with a smaller JSP that gives the error? You'll want to slowly remove code until the error goes away so you can narrow it down to a specific line of the JSP.
 
suresh sai
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Jeanne .,
Thanks for your immediate response.Now I have resolved the problem.But I did nothing.Last day, I shutdown my system after getting the error and today I have executed again. Now it is working fine. But I am again telling ,I didn`t do any thing. If it is possible ,could you please trace the problem where went wrong.

Thank u
 
Jeanne Boyarsky
author & internet detective
Posts: 41878
909
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by suresh sai:
If it is possible ,could you please trace the problem where went wrong.


I don't know that anyone is going to be able to trace a problem that no longer exists. It's possible that something cached in memory was messing things up.
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maybe you should file a bug, if you have the complete exception report.
So that it can be fixed in future releases.
 
Greenhorn
Posts: 23
Eclipse IDE Opera Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi...

I know this question was asked almost 5 years back, but for the benefit of those reading this post.... the solution (restarting the system) really works !

I did not have a JSP page or something as mentioned in the question... but I simply added a server (Tomcat 7.0) configuration to my eclipse workspace. The problem was that the server would not start and would throw:

SEVERE: Begin event threw

error java.lang.ClassFormatError: Illegal constant pool index 0 for method name in class file org/apache/catalina/util/Lifecycle Support


After searching for a solution to this problem, I came across this post and restarted my PC.

It indeed worked fine! By the way, am using jre7
 
Politics is a circus designed to distract you from what is really going on. So is this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic