jakarta-cactus-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Denis Avdic" <de...@betterway.net>
Subject Freaky behavior
Date Fri, 17 Oct 2003 16:05:46 GMT
Hello, 

I was trying to run my tests and I was getting an unexplained null pointer error in my first
method of each test. My buddy at work wrote a short testCactus test and it worked.  
Here comes the freaky part:

I copied his methods over to my test and my test worked.  
I deleted instructions from his methods and it still worked.
I deleted the beginCactus() method and the endCactus() method and it still worked.

Then I deleted the testCactus() method and I was getting the null pointer error again.

Here is the error:

null 

java.lang.NullPointerException
at java.net.URLEncoder.encode(URLEncoder.java:184)
at java.net.URLEncoder.encode(URLEncoder.java:149)
at org.apache.cactus.client.connector.http.HttpUtil.dispatch51_addHttpGetParameters(HttpUtil.java;org/apache/cactus/util/log/LogAspect.aj[1k]:124)
at org.apache.cactus.client.connector.http.HttpUtil.around51_addHttpGetParameters(HttpUtil.java;org/apache/cactus/util/log/LogAspect.aj[1k]:1198)
at org.apache.cactus.client.connector.http.HttpUtil.addHttpGetParameters(HttpUtil.java;org/apache/cactus/util/log/LogAspect.aj[1k]:83)
at org.apache.cactus.client.connector.http.HttpClientConnectionHelper.dispatch50_connect(HttpClientConnectionHelper.java;org/apache/cactus/util/log/LogAspect.aj[1k]:130)
at org.apache.cactus.client.connector.http.HttpClientConnectionHelper.around50_connect(HttpClientConnectionHelper.java;org/apache/cactus/util/log/LogAspect.aj[1k]:1240)
at org.apache.cactus.client.connector.http.HttpClientConnectionHelper.connect(HttpClientConnectionHelper.java;org/apache/cactus/util/log/LogAspect.aj[1k]:114)
at org.apache.cactus.client.connector.http.DefaultHttpClient.callRunTest(DefaultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:201)
at org.apache.cactus.client.connector.http.DefaultHttpClient.dispatch49_doTest(DefaultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:119)
at org.apache.cactus.client.connector.http.DefaultHttpClient.around49_doTest(DefaultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:1240)
at org.apache.cactus.client.connector.http.DefaultHttpClient.doTest(DefaultHttpClient.java;org/apache/cactus/util/log/LogAspect.aj[1k]:115)
at org.apache.cactus.internal.client.WebClientTestCaseDelegate.runWebTest(WebClientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:334)
at org.apache.cactus.internal.client.WebClientTestCaseDelegate.runGenericTest(WebClientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:282)
at org.apache.cactus.internal.client.WebClientTestCaseDelegate.runTest(WebClientTestCaseDelegate.java;org/apache/cactus/util/log/LogAspect.aj[1k]:258)
at org.apache.cactus.server.runner.ServletTestRunner.run(ServletTestRunner.java;org/apache/cactus/util/log/LogAspect.aj[1k]:313)
at org.apache.cactus.server.runner.ServletTestRunner.dispatch139_doGet(ServletTestRunner.java;org/apache/cactus/util/log/LogAspect.aj[1k]:209)
at org.apache.cactus.server.runner.ServletTestRunner.around139_doGet(ServletTestRunner.java;org/apache/cactus/util/log/LogAspect.aj[1k]:1158)
at org.apache.cactus.server.runner.ServletTestRunner.doGet(ServletTestRunner.java;org/apache/cactus/util/log/LogAspect.aj[1k]:185)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:466)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:585)
at java.lang.Thread.run(Thread.java:536)


I'd appreciate any help on this.  I mean, it is not a big deal, I just have
public void testCactus(){} after each setUp method in my tests but I was wondering if something
else was broke too...

Denis
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message