jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vincent Massol" <vmas...@pivolis.com>
Subject RE: NewBie question - VerifyError
Date Tue, 20 Jul 2004 08:51:37 GMT
Hi,

2 possible problems:

1/ You have an old cactus jar in your classpath (client side)
2/ You need to recompile your code against the latest version of Cactus that
you use.

-Vincent

> -----Original Message-----
> From: Jan Buczkowski [mailto:jbuczkowski@supermedia.pl]
> Sent: mercredi 20 juillet 2005 10:23
> To: cactus-user@jakarta.apache.org
> Subject: NewBie question - VerifyError
> 
> I try to test simple servlet (from Cactus example). When I deploy
> test+servlet as a single war everything is OK, but when I try to add
> sample project to my application ear (as one of war archives) I get
> exception:
> 
>   <?xml version="1.0" encoding="UTF-8" ?>
> - <testsuites>
> - <testsuite name="test.TestSampleServlet" tests="1" failures="0"
> errors="1" time="0.03">
> - <testcase name="testSaveToSessionOK" time="0.03">
>   <error message="(class:
> org/apache/cactus/internal/client/connector/http/HttpClientConnectionHelpe
> r, method: addUserData signature: (Lorg/apache/cactus/WebRequest;)V)
> Incompatible object argument for function call"
> type="java.lang.VerifyError">java.lang.VerifyError: (class:
> org/apache/cactus/internal/client/connector/http/HttpClientConnectionHelpe
> r, method: addUserData signature: (Lorg/apache/cactus/WebRequest;)V)
> Incompatible object argument for function call at
> org.apache.cactus.internal.client.connector.http.DefaultHttpClient.callRun
> Test(DefaultHttpClient.java:158) at
> org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_
> aroundBody0(DefaultHttpClient.java:80) at
> org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest_
> aroundBody1$advice(DefaultHttpClient.java:188) at
> org.apache.cactus.internal.client.connector.http.DefaultHttpClient.doTest(
> DefaultHttpClient.java) at
> org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runWe
> bTest(HttpProtocolHandler.java:159) at
> org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTe
> st_aroundBody0(HttpProtocolHandler.java:80) at
> org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTe
> st_aroundBody1$advice(HttpProtocolHandler.java:188) at
> org.apache.cactus.internal.client.connector.http.HttpProtocolHandler.runTe
> st(HttpProtocolHandler.java) at
> org.apache.cactus.internal.client.ClientTestCaseCaller.runTest(ClientTestC
> aseCaller.java:144) at
> org.apache.cactus.internal.AbstractCactusTestCase.runBareClient(AbstractCa
> ctusTestCase.java:215) at
> org.apache.cactus.internal.AbstractCactusTestCase.runBare(AbstractCactusTe
> stCase.java:133) at
> org.apache.cactus.server.runner.ServletTestRunner.run(ServletTestRunner.ja
> va:315) at
> org.apache.cactus.server.runner.ServletTestRunner.doGet_aroundBody0(Servle
> tTestRunner.java:193) at
> org.apache.cactus.server.runner.ServletTestRunner.doGet_aroundBody1$advice
> (ServletTestRunner.java:117) at
> org.apache.cactus.server.runner.ServletTestRunner.doGet(ServletTestRunner.
> java) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360) at
> org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHan
> dler.java:294) at
> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558)
> at org.mortbay.http.HttpContext.handle(HttpContext.java:1714) at
> org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationConte
> xt.java:507) at org.mortbay.http.HttpContext.handle(HttpContext.java:1664)
> at org.mortbay.http.HttpServer.service(HttpServer.java:863) at
> org.jboss.jetty.Jetty.service(Jetty.java:460) at
> org.mortbay.http.HttpConnection.service(HttpConnection.java:775) at
> org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:939) at
> org.mortbay.http.HttpConnection.handle(HttpConnection.java:792) at
> org.mortbay.http.SocketListener.handleConnection(SocketListener.java:201)
> at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:289) at
> org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:455)</error>
>   </testcase>
>   </testsuite>
>   </testsuites>
> 
> How to fix it? :))
> 
> Thanx for your help.
> 
> Jasiu
> 
> 
> --
> Jan Buczkowski
> Projektant-Programista
> tel +4822 829-65-84
> fax +4822 829-65-02
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Super Media http://www.supermedia.pl ec@supermedia.pl
> provider-www/wap-ecommerce-reklama w internecie-econsulting
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Mime
View raw message