jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Lybarger <Mark.Lybar...@CBC-Companies.com>
Subject RE: junit ComparisonFailure running Cactus tests
Date Fri, 24 Oct 2003 13:22:32 GMT
This issue seems to be resolved by using the latest 1.6dev build Vincent put
out. I'm no longer getting these errors.

> -----Original Message-----
> From: Mark Lybarger 
> Sent: Friday, October 24, 2003 7:54 AM
> To: 'Cactus-User (E-mail)
> Subject: junit ComparisonFailure running Cactus tests
> 
> 
> I'm having troubles running my cactus tests that I believe 
> may be related to
> this message I came accross in the archives:
> 
> http://www.mail-archive.com/cactus-user@jakarta.apache.org/msg
> 02984.html
> 
> 
> I've recently added lots of asserts to my testing (that's a 
> good thing,
> right?), and noticed that my tests were not failing when 
> they're expected
> to. So I check out my weblogic log file, and see tons of 
> these messages:
> 
> ####<Oct 23, 2003 3:56:15 PM EDT> <Error> <HTTP> <mlybarger>

> <myserver>
> <ExecuteThread: '9' for queue: 'default'> <> <> <101020>
> <[WebAppServletContext(4299438,test,/test)] Servlet failed 
> with Exception> 
> java.lang.NullPointerException
> 	at
> junit.framework.ComparisonFailure.getMessage(ComparisonFailure
> .java:34)
> 	at 
> org.apache.cactus.WebTestResult.<init>(WebTestResult.java:132)
> 	at
> org.apache.cactus.server.AbstractWebTestCaller.doTest(Abstract
> WebTestCaller.
> java:166)
> 	at
> org.apache.cactus.server.AbstractWebTestController.dispatch133
> _handleRequest
> (AbstractWebTestController.java;org/apache/cactus/util/log/Log
> Aspect.aj[1k]:
> 130)
> 	at
> org.apache.cactus.server.AbstractWebTestController.around133_h
> andleRequest(A
> bstractWebTestController.java;org/apache/cactus/util/log/LogAs
> pect.aj[1k]:11
> 58)
> 	at
> org.apache.cactus.server.AbstractWebTestController.handleReque
> st(AbstractWeb
> TestController.java;org/apache/cactus/util/log/LogAspect.aj[1k]:101)
> 	at
> org.apache.cactus.server.ServletTestRedirector.dispatch160_doP
> ost(ServletTes
> tRedirector.java;org/apache/cactus/util/log/LogAspect.aj[1k]:125)
> 	at
> org.apache.cactus.server.ServletTestRedirector.around160_doPos
> t(ServletTestR
> edirector.java;org/apache/cactus/util/log/LogAspect.aj[1k]:1158)
> 	at
> org.apache.cactus.server.ServletTestRedirector.doPost(ServletT
> estRedirector.
> java;org/apache/cactus/util/log/LogAspect.aj[1k]:109)
> 	at
> org.apache.cactus.server.ServletTestRedirector.dispatch159_doG
> et(ServletTest
> Redirector.java;org/apache/cactus/util/log/LogAspect.aj[1k]:96)
> 	at
> org.apache.cactus.server.ServletTestRedirector.around159_doGet
> (ServletTestRe
> director.java;org/apache/cactus/util/log/LogAspect.aj[1k]:1158)
> 	at
> org.apache.cactus.server.ServletTestRedirector.doGet(ServletTe
> stRedirector.j
> ava;org/apache/cactus/util/log/LogAspect.aj[1k]:92)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at
> weblogic.servlet.internal.ServletStubImpl.invokeServlet(Servle
> tStubImpl.java
> :265)
> 	at 
> weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:21)
> 	at
> weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChain
> Impl.java:27)
> 	at
> weblogic.servlet.internal.WebAppServletContext.invokeServlet(W
> ebAppServletCo
> ntext.java:2501)
> 	at
> weblogic.servlet.internal.ServletRequestImpl.execute(ServletRe
> questImpl.java
> :2204)
> 	at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
> 	at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
> 
> I believe I'm using 3.8.1 of junit, and either 1.5b1 of 
> cactus or cactus
> libs from an eclipse plugin version dated 09/09/03.  I 
> commented out my
> assertEquals and now I'm getting failed test results (using 
> fail(String)),
> and no error messages in the logs!  Seems to be going 
> smoothly. I never
> really kept version numbers on my jar files if they even came 
> with them, but
> I'll try different versions today of junit/cactus to see what 
> I come up
> with. 
> 
> BTW, regarding version numbers, I notice there was a 1.5beta1, and the
> latest manual nightlies are 1.6dev.  was the 1.5 release 
> scrapped?  Any
> insights into this issue would be MOST appreciated!
> 
> Thanks!
> ~Mark
> 
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.528 / Virus Database: 324 - Release Date: 10/16/2003
>  
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cactus-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: cactus-user-help@jakarta.apache.org
> 
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.528 / Virus Database: 324 - Release Date: 10/16/2003
>  
> 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.528 / Virus Database: 324 - Release Date: 10/16/2003
 


Mime
View raw message