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: Error in webRequest.addCookie
Date Mon, 21 Apr 2003 08:29:04 GMT
Anil,

Could you send us your test case?

Thanks
-Vincent

> -----Original Message-----
> From: Anil Agrawal [mailto:a.agrawal@popnet.co.in]
> Sent: 21 April 2003 08:20
> To: cactus-user@jakarta.apache.org
> Cc: vmassol@pivolis.com
> Subject: Error in webRequest.addCookie
> 
> When I use
> 
>  webRequest.addCookie("alpha","abc")
> 
> In my beginXXX method on client console I got
> Following exception.
> 
> Pl. help me.
> 
> Error in client console
> ------------------------
> 11:40:10,677 [main] DEBUG actus.TestServletTestCase_Sync  -
> ------------- Test: testSyncRequest
> 11:40:14,052 [main] DEBUG actus.TestServletTestCase_Sync  - Exception
in
> test
> java.lang.NullPointerException
> 	at
>
org.apache.cactus.client.AbstractConnectionHelper.dispatch1_getCookieStr
>
ing(AbstractConnectionHelper.java;org/apache/cactus/util/log/LogAspect.a
> j(1k):198)
> 	at
>
org.apache.cactus.client.AbstractConnectionHelper.around1_getCookieStrin
>
g(AbstractConnectionHelper.java;org/apache/cactus/util/log/LogAspect.aj(
> 1k):1236)
> 	at
>
org.apache.cactus.client.AbstractConnectionHelper.getCookieString(Abstra
>
ctConnectionHelper.java;org/apache/cactus/util/log/LogAspect.aj(1k):150)
> 	at
>
org.apache.cactus.client.HttpClientConnectionHelper.dispatch24_connect(H
>
ttpClientConnectionHelper.java;org/apache/cactus/util/log/LogAspect.aj(1
> k):148)
> 	at
>
org.apache.cactus.client.HttpClientConnectionHelper.around24_connect(Htt
>
pClientConnectionHelper.java;org/apache/cactus/util/log/LogAspect.aj(1k)
> :1236)
> 	at
>
org.apache.cactus.client.HttpClientConnectionHelper.connect(HttpClientCo
> nnectionHelper.java;org/apache/cactus/util/log/LogAspect.aj(1k):106)
> 	at
>
org.apache.cactus.client.AbstractHttpClient.callRunTest(AbstractHttpClie
> nt.java;org/apache/cactus/util/log/LogAspect.aj(1k):186)
> 	at
>
org.apache.cactus.client.AbstractHttpClient.dispatch2_doTest(AbstractHtt
> pClient.java;org/apache/cactus/util/log/LogAspect.aj(1k):109)
> 	at
>
org.apache.cactus.client.AbstractHttpClient.around2_doTest(AbstractHttpC
> lient.java;org/apache/cactus/util/log/LogAspect.aj(1k):1236)
> 	at
>
org.apache.cactus.client.AbstractHttpClient.doTest(AbstractHttpClient.ja
> va;org/apache/cactus/util/log/LogAspect.aj(1k):104)
> 	at
>
org.apache.cactus.AbstractWebTestCase.runGenericTest(AbstractWebTestCase
> .java:260)
> 	at
> org.apache.cactus.ServletTestCase.runTest(ServletTestCase.java:133)
> 	at
> org.apache.cactus.AbstractTestCase.runBare(AbstractTestCase.java:195)
> 	at junit.framework.TestResult$1.protect(TestResult.java:106)
> 	at junit.framework.TestResult.runProtected(TestResult.java:124)
> 	at junit.framework.TestResult.run(TestResult.java:109)
> 	at junit.framework.TestCase.run(TestCase.java:118)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at
>
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTe
> stRunner.java:325)
> 	at
>
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.executeInVM(JUnit
> Task.java:848)
> 	at
>
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask
> .java:556)
> 	at
>
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.execute(JUnitTask
> .java:532)
> 	at org.apache.tools.ant.Task.perform(Task.java:341)
> 	at org.apache.tools.ant.Target.execute(Target.java:309)
> 	at org.apache.tools.ant.Target.performTasks(Target.java:336)
> 	at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
> 	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
> 	at
> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143)
> 	at org.apache.cactus.ant.RunServerTestsTask.callTests(Unknown
> Source)
> 	at org.apache.cactus.ant.RunServerTestsTask.execute(Unknown
> Source)
> 	at org.apache.tools.ant.Task.perform(Task.java:341)
> 	at org.apache.tools.ant.Target.execute(Target.java:309)
> 	at org.apache.tools.ant.Target.performTasks(Target.java:336)
> 	at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
> 	at
> org.apache.tools.ant.Project.executeTargets(Project.java:1255)
> 	at org.apache.tools.ant.Main.runBuild(Main.java:609)
> 	at org.apache.tools.ant.Main.start(Main.java:196)
> 	at org.apache.tools.ant.Main.main(Main.java:235)



Mime
View raw message