NullPointerException in 
WebClientContext.getCurrentResponse(WebClientContext.java:182)
--------------------------------------------------------------------------------------

         Key: WT-429
         URL: http://webtest-community.canoo.com/jira/browse/WT-429
     Project: WebTest
        Type: Bug

    Versions: 2.6    
 Environment: WinXP x86, SP3

java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)
    Reporter: Mirko Seifert
 Attachments: webtest_bug.zip

After updating my old version of canoo webtest, my test script does not succeed 
anymore. The test ran successful with the old verion, but now there the 
exception below is thrown.

The exception occurs both using version 2.6 and the current (R_1707) revision.

I'll attach both outputs (the failing one with version 2.6 and the old one), my 
webtest script and the responses (also for both versions). 
Unfortunatly I don't know the version of the old canoo webtest I am using. Is 
there a way to tell the version from the files? I still have the old version, 
but could not find any version number in there.

The exception is thrown after many successful requests to my webapplication. I 
did not try to reduce the test script to the minimum. Maybe you've got a 
special TestHttpServer that can deliver the responses I attached and thereby 
reproduce the bug.

Let me know if you need further information.

Here comes the stackstrace:

java.lang.NullPointerException
        at 
com.canoo.webtest.engine.WebClientContext.getCurrentResponse(WebClientContext.java:182)
        at com.canoo.webtest.engine.Context.getCurrentResponse(Context.java:95)
        at com.canoo.webtest.steps.Step.nullResponseCheck(Step.java:433)
        at 
com.canoo.webtest.steps.request.ClickLink.verifyParameters(ClickLink.java:78)
        at com.canoo.webtest.steps.Step.execute(Step.java:100)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at 
com.canoo.webtest.ant.TestStepSequence.executeSteps(TestStepSequence.java:43)
        at 
com.canoo.webtest.ant.TestStepSequence.doExecute(TestStepSequence.java:31)
        at com.canoo.webtest.steps.Step.execute(Step.java:101)
        at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:206)
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
        at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
        at org.apache.tools.ant.Task.perform(Task.java:348)
        at org.apache.tools.ant.Target.execute(Target.java:357)
        at org.apache.tools.ant.Target.performTasks(Target.java:385)
        at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
        at 
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
        at org.apache.tools.ant.Main.runBuild(Main.java:698)
        at org.apache.tools.ant.Main.startAnt(Main.java:199)
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://webtest-community.canoo.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to