HTTPUnit vs. Eclipse - VerifyError [message #115949] |
Tue, 11 November 2003 19:10  |
Eclipse User |
|
|
|
Originally posted by: coop.us.ibm.com
All,
I'm trying to run JUnit tests containing HTTPUnit calls as a JUnit
test. When I do so, I'm getting the following error:
java.lang.VerifyError: (class:
com/meterware/httpunit/parsing/NekoHTMLParser, method: parse signature:
(Ljava/net/URL;Ljava/lang/String;Lcom/meterware/httpunit/par sing/DocumentAdapter;)V)
Incompatible object argument for method call
at java.lang.Class.forName1(Native Method)
at java.lang.Class.forName(Class.java:142)
at
com.meterware.httpunit.parsing.HTMLParserFactory.loadParserI fSupported(HTMLParserFactory.java:183)
at
com.meterware.httpunit.parsing.HTMLParserFactory.<clinit>(HTMLParserFactory.java:194)
at com.meterware.httpunit.HTMLPage.parse(HTMLPage.java:244)
at com.meterware.httpunit.WebResponse.getReceivedPage(WebRespon se.java:975)
at com.meterware.httpunit.WebResponse$Scriptable.load(WebRespon se.java:577)
at
com.meterware.httpunit.javascript.JavaScript$Window.initiali ze(JavaScript.java:419)
at com.meterware.httpunit.javascript.JavaScript.run(JavaScript. java:80)
at
com.meterware.httpunit.javascript.JavaScriptEngineFactory.as sociate(JavaScriptEngineFactory.java:46)
at com.meterware.httpunit.FrameHolder.<init>(FrameHolder.java:44)
at com.meterware.httpunit.WebWindow.<init>(WebWindow.java:218)
at com.meterware.httpunit.WebClient.<init>(WebClient.java:51)
at com.meterware.httpunit.WebConversation.<init>(WebConversation.java:46)
at w3.httpunit.HomepageHttpTest.setUp(HomepageHttpTest.java:44)
at junit.framework.TestCase.runBare(TestCase.java:125)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at junit.framework.TestSuite.runTest(TestSuite.java:208)
at junit.framework.TestSuite.run(TestSuite.java:203)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:395)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(R emoteTestRunner.java:279)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main( RemoteTestRunner.java:171)
Any clue what I'm doing wrong? I assume it's a classpath error, but
can't for the life of me figure out what's messed up with the classpath.
Btw, this HTTPUnit test works fine from the commandline.
Thanks!
/Coop
|
|
|
|
Re: HTTPUnit vs. Eclipse - VerifyError [message #116050 is a reply to message #115949] |
Wed, 12 November 2003 09:11  |
Eclipse User |
|
|
|
Originally posted by: olivier_thomann.ca.ibm.comNOSPAM
Le Tue, 11 Nov 2003 17:10:39 -0700, Stephen Cooper <coop@us.ibm.com> a
écrit :
>Any clue what I'm doing wrong? I assume it's a classpath error, but
>can't for the life of me figure out what's messed up with the classpath.
>Btw, this HTTPUnit test works fine from the commandline.
What VM are you using? Could it be due to incompatible versions of
xerces on the classpath?
--
Olivier
|
|
|
Powered by
FUDForum. Page generated in 0.08152 seconds