Oops, I sent it to the wrong list, sorry about that Vincent! BTW, I needed the latest binary, it works fine now.
-----Original Message----- From: Vincent Massol [mailto:[EMAIL PROTECTED] Sent: Thursday, July 01, 2004 11:43 AM To: 'Cactus Users List' Subject: RE: Strange NullPointer Exception Hi Bret, See below > -----Original Message----- > From: Bret Kumler [mailto:[EMAIL PROTECTED] > 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] >From the stack trace, it seems that the teardown method of CactusStrutsTestCase is trying to set a webapp context attribute with a null value. I have no knowledge at all about StrutsTestCase. I would recommend either reading its source code to see what could go wrong at line 129 of CactuStrutsTestCase and/or sending an email to the StrutsTestCase maling-list/forum. Thanks -Vincent --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
