[Webtest] Unexpected exception caught: org.apache.xerces.xni.XNIException

Marc Guillemot webtest@lists.canoo.com
Mon, 25 Apr 2005 10:38:59 +0200


Hallo,

I guess that it comes from a javascript problem (probably a feature not yet supported). This would explain that it 
worked previously with build 481 as the hs was probably not executed. The XNIException is not really helpfull: this is 
what currently appears when js is executed at load time (for instance embedded script) and throws an exception. You have 
to set the log level to debug to get more information on the origin of the problem.

Marc.

Juergen Damke wrote:
> 
> I must admit, that I gave you the wrong information the first time.
> 
> The Testcase failes in EACH execution, not just each second time, as I 
> wrote before.
> 
> Also I do not get a resultoutput of the executed Step (here <invoke/>).
> 
> 
> This is written in the summary report ...
> 
> <testresult 
> location="file:I:/Test51/wp/code/wt_CreateVP_vm82-5101_079_0419143908-3912_w102_1.xml:15: 
> "
> successful="no" testspecname="Create Virtual Portal 
> 'VP_vm82-5101_079_0419143908-3912'">
>         <config>
>             <parameter name="haltonerror" value="no"/>
>             <parameter name="port" value="9081"/>
>             <parameter name="resultpath" value="I:\Test51\wp\code"/>
>             <parameter name="resultfile" 
> value="WebResults_vm82-5101_079_0419143908-3912_w111_1.xml"/>
>             <parameter name="haltonfailure" value="no"/>
>             <parameter name="basepath" value="wps"/>
>             <parameter name="summary" value="yes"/>
>             <parameter name="showhtmlparseroutput" value="yes"/>
>             <parameter name="protocol" value="http"/>
>             <parameter name="host" value="wps82.boeb.test.com"/>
>             <parameter name="saveresponse" value="yes"/>
>         </config>
>         <results>
>             <step>
>                 <parameter name="stepType" value="invoke"/>
>                 <parameter name="url" value="portal"/>
>                 <parameter name="save" value="PortalDefaultPage"/>
>                 <parameter name="stepId" value="get default Portal Page"/>
>                 <result>
>                     <failed duration="922"/>
>                 </result>
>             </step>
> 
> ....
> 
> BTW: This Testcase has been running successful with Webtest 481.
> 
> 
> Mit freundlichen Grüßen / With best regards
> Jürgen Damke
> Portal Automated Function Verification Tests
> ------------------------------------------------------------------------------------------------------------------------------
> 
> Subject:        *[Webtest] Unexpected exception caught: 
> org.apache.xerces.xni.XNIException*
> 
> Hi,
> I just refreshed my WebTest to Build 765 (from 762) and I still 
> experience the following problem.
> 
> Each second time the same Testcase is executed, so the test fails with 
> the following Exception:
> 
> Does soneone have an idea ?  
> 
> I'm not experienced with log4j, how can I enable the Logger.debug modus ?
> 
> <error exception="com.canoo.webtest.engine.StepExecutionException" 
> message="Unexpected exception caught: org.apache.xerces.xni.XNIException">
> com.canoo.webtest.engine.StepExecutionException: Unexpected exception 
> caught: org.apache.xerces.xni.XNIException, Step: InvokePage at 
> file:I:/Test51/wp/code/wt_DeleteVP_vm82-5101_079_0419133215-3219_w181.xml:24: 
>  with (stepType="invoke", url="portal", save="PortalDefaultPage2", 
> stepId="get default Portal Page")
>        at 
> com.canoo.webtest.steps.Step.handleUnexpectedException(Step.java:432)
>        at 
> com.canoo.webtest.steps.request.Target.protectedGoto(Target.java:112)
>        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:100)
>        at com.canoo.webtest.engine.Engine.executeSteps(Engine.java:31)
>        at 
> com.canoo.webtest.ant.TestSpecificationTask.execute(TestSpecificationTask.java:80) 
> 
>        at org.apache.tools.ant.Task.perform(Task.java(Compiled Code))
>        at org.apache.tools.ant.Target.execute(Target.java(Compiled Code))
>        ...
> 
> BTW: I have the latest .jars installed.
> 
> Mit freundlichen Grüßen / With best regards
> Jürgen Damke
> Portal Automated Function Verification Tests