JUnit java.lang.VerifyError

T

Tobi

Hi-

I'm trying to run one test with JUnit, but am getting an "Illegal
constant pool" index error. The test and the source code are being
compiled by Cruise Control which uses using jdk1.5.0_16.

Googling around, I couldn't find a great deal about the problem. I
found this website:

http://www.jpox.org/servlet/jira/browse/ENHANCER-43

which suggested that the problem may reside with a version of bcel.jar-
and suggested that removing the static variable from the source file
(ie, making it an instance variable) could solve the problem, but
unfortunately didn't. I also tried running the entire test suite with
ANT (every test failed with a similar error above) versus just trying
one test from the command line.

D:\Project_Builds\builds\NCAP20\webapp\WEB-INF\classes>java
junit.textui.TestRun
ner test.junit.core.FolderTest
Exception in thread "main" java.lang.VerifyError: (class: test/junit/
core/Folder
Test, method: <init> signature: ()V) Illegal constant pool index
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at
junit.runner.BaseTestRunner.loadSuiteClass(BaseTestRunner.java:208)
at junit.runner.BaseTestRunner.getTest(BaseTestRunner.java:
101)
at junit.textui.TestRunner.start(TestRunner.java:179)
at junit.textui.TestRunner.main(TestRunner.java:138)

I haven't been able to find a lot of resources about this issue, and
am wondering if anyone had experienced something similar or had any
thoughts.

Thanks
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,967
Messages
2,570,148
Members
46,694
Latest member
LetaCadwal

Latest Threads

Top