[Webtest] [webtest][JIRA] Created: (WT-33) NullpointerException error message should be improved in com.canoo.webtest.security.SunJsseBaseConnectionInitializer

Håvard Nesvold (JIRA) webtest@lists.canoo.com
Thu, 3 Mar 2005 14:54:41 +0100 (CET)


NullpointerException error message should be improved in com.canoo.webtest.security.SunJsseBaseConnectionInitializer
--------------------------------------------------------------------------------------------------------------------

         Key: WT-33
         URL: http://webtest-community.canoo.com/jira/browse/WT-33
     Project: WebTest
        Type: Bug
 Environment: Windows 2000, Ant 1.6.2
    Reporter: HÃ¥vard Nesvold


While trying to set up canoo for https, i get the following error message: 


Exception raised: com.canoo.webtest.engine.StepExecutionException: Exception raised while t 
rying to create custom ConnectionInitializer <com.canoo.webtest.security.SunJsseBaseConnect 
ionInitializer> / Exception: java.lang.NullPointerException, Step: InvokePage at C:\canoo\d 
oc\samples\test.xml:32:  with (stepId="goto url", url="/", stepType="invoke")com.canoo.webt 
est.engine.StepExecutionException: Exception raised while trying to create custom Connectio 
nInitializer <com.canoo.webtest.security.SunJsseBaseConnectionInitializer> / Exception: jav 
a.lang.NullPointerException, Step: InvokePage at C:\canoo\doc\samples\test.xml:32:  with (s 
tepId="goto url", url="/", stepType="invoke") 
        at com.canoo.webtest.steps.request.Target.invokeCustomInitializer(Target.java:239) 
        at com.canoo.webtest.steps.request.Target.prepareConversationIfNeeded(Target.java:1 
85) 
        at com.canoo.webtest.steps.request.Target.getResponse(Target.java:156) 
        at com.canoo.webtest.steps.request.Target$1.call(Target.java:144) 
        at com.canoo.webtest.steps.request.Target.protectedGoto(Target.java:94) 
        at com.canoo.webtest.steps.request.Target.gotoTarget(Target.java:140) 
        at com.canoo.webtest.steps.request.InvokePage.doExecute(InvokePage.java:42) 
        at com.canoo.webtest.steps.Step.execute(Step.java:138) 
        at com.canoo.webtest.engine.Engine.executeSteps(Engine.java:31) 
        at com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecificationTask.java:8 
0) 
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) 
        at org.apache.tools.ant.Task.perform(Task.java:364) 
        at org.apache.tools.ant.Target.execute(Target.java:341) 
        at org.apache.tools.ant.Target.performTasks(Target.java:369) 
        at org.apache.tools.ant.Project.executeTarget(Project.java:1214) 
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386) 
        at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:106) 
        at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) 
        at org.apache.tools.ant.Task.perform(Task.java:364) 
        at org.apache.tools.ant.Target.execute(Target.java:341) 
        at org.apache.tools.ant.Target.performTasks(Target.java:369) 
        at org.apache.tools.ant.Project.executeTarget(Project.java:1214) 
        at org.apache.tools.ant.Project.executeTargets(Project.java:1062) 
        at org.apache.tools.ant.Main.runBuild(Main.java:673) 
        at org.apache.tools.ant.Main.startAnt(Main.java:188) 
        at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196) 
        at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)

The problem is that a keystore containing a proper certificate is not properly set up, but this error message is not very informative and should be improved.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira