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: Strange NullPointer Exception
Date Thu, 01 Jul 2004 18:42:40 GMT
Hi Bret,

See below

> -----Original Message-----
> From: Bret Kumler [mailto:bkumler@bitfone.com]
> Sent: jeudi 1 juillet 2004 00:38
> To: 'Cactus Users List'
> Subject: Strange NullPointer Exception
> 
> I'm running a CactusStrutsTestCase and at the end of the test I get this
> NullPointerException.
> 
> I don't know why, all the tests pass.
> 
> 
> 15:32:17,296 [main] DEBUG httpclient.HttpMethodBase       - Resorting to
> protocol version default close connection policy
> 15:32:17,296 [main] DEBUG httpclient.HttpMethodBase       - Should NOT
> close
> connection, using HTTP/1.1.
> 15:32:17,296 [main] DEBUG httpclient.HttpConnection       - enter
> HttpConnection.releaseConnection()
> 15:32:17,296 [main] DEBUG util.IoUtil                     - >getText =
> [<webresult><exception
> classname="java.lang.NullPointerException"><message><![CDATA[null]]></mess
> ag
> e><stacktrace><![CDATA[java.lang.NullPointerException
> 	at java.util.Hashtable.put(Hashtable.java:393)
> 	at
> weblogic.servlet.internal.WebAppServletContext.setAttribute(WebAppServletC
> on
> text.java:669)
> 	at
> org.apache.cactus.server.AbstractServletContextWrapper.setAttribute_around
> Bo
> dy2(AbstractServletContextWrapper.java:120)
> 	at
> org.apache.cactus.server.AbstractServletContextWrapper.setAttribute_around
> Bo
> dy3$advice(AbstractServletContextWrapper.java:124)
> 	at
> org.apache.cactus.server.AbstractServletContextWrapper.setAttribute(Abstra
> ct
> ServletContextWrapper.java)
> 	at
> org.apache.cactus.server.AbstractServletContextWrapper.setAttribute_around
> Bo
> dy2(AbstractServletContextWrapper.java:120)
> 	at
> org.apache.cactus.server.AbstractServletContextWrapper.setAttribute_around
> Bo
> dy3$advice(AbstractServletContextWrapper.java:124)
> 	at
> org.apache.cactus.server.AbstractServletContextWrapper.setAttribute(Abstra
> ct
> ServletContextWrapper.java)
> 	at
> servletunit.struts.CactusStrutsTestCase.tearDown(CactusStrutsTestCase.java
> :1
> 29)
> 	at junit.framework.TestCase.runBare(TestCase.java:130)

[snip]

Mime
View raw message