Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » HTTPUnit vs. Eclipse - VerifyError
HTTPUnit vs. Eclipse - VerifyError [message #115949] Tue, 11 November 2003 19:10 Go to next message
Eclipse UserFriend
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 #116041 is a reply to message #115949] Wed, 12 November 2003 07:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: hcs33.egon.gyaloglo.hu

Hi,

I got similar exceptions when there was 2 or more version of a library (in
your case httpunit) on the run/debug classpath and the first one was not the
one I wrote code against. You should check the classpath of the test run
(Classpath tab in the appropriate Run configuration) and check whether there
are more httpunit.jar (or similar) exists. If this is the case simply move
the one you use above for the others.

HTH,
Regards,
Csaba

"Stephen Cooper" <coop@us.ibm.com> wrote in message
news:bortmt$olc$1@eclipse.org...
> 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/DocumentAda
pter;)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(HTMLP
arserFactory.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.ja
va:419)
> at com.meterware.httpunit.javascript.JavaScript.run(JavaScript. java:80)
> at
>
com.meterware.httpunit.javascript.JavaScriptEngineFactory.as sociate(JavaScri
ptEngineFactory.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(RemoteTestRu
nner.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 Go to previous message
Eclipse UserFriend
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
Previous Topic:Scrapbook - Internal error
Next Topic:eclipse 2.1.2 errors on mac os x 10.2.6
Goto Forum:
  


Current Time: Fri Jul 25 04:47:14 EDT 2025

Powered by FUDForum. Page generated in 0.08152 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top