Problem with xforms-instance-inspector and switch statements on the same page

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Problem with xforms-instance-inspector and switch statements on the same page

Henrik Pettersen
All,

found a peculiar problem when using the xforms-instance-inspector along with switch statements. See attached for reproducible example.

Here is the stacktrace:

2007-03-02 16:05:25,796 http-9080-Processor25 ERROR webapp.ProcessorService  - Exception at null, line -1, column -1
java.lang.NullPointerException
        at org.orbeon.oxf.xforms.XFormsSwitchUtils.copySwitchInfo(XFormsSwitchUtils.java:95)
        at org.orbeon.oxf.xforms.XFormsSwitchUtils.prepareSwitches (XFormsSwitchUtils.java:87)
        at org.orbeon.oxf.xforms.action.actions.XFormsInsertAction.execute(XFormsInsertAction.java:211)
        at org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runAction(XFormsActionInterpreter.java :116)
        at org.orbeon.oxf.xforms.action.actions.XFormsActionAction.execute(XFormsActionAction.java:32)
        at org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runAction(XFormsActionInterpreter.java:116)
        at org.orbeon.oxf.xforms.action.actions.XFormsActionAction.execute(XFormsActionAction.java:32)
        at org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runAction(XFormsActionInterpreter.java:116)
        at org.orbeon.oxf.xforms.XFormsContainingDocument.runAction(XFormsContainingDocument.java:970)
        at org.orbeon.oxf.xforms.event.XFormsEventHandlerImpl.handleEvent(XFormsEventHandlerImpl.java:85)
        at org.orbeon.oxf.xforms.XFormsContainingDocument.dispatchEvent(XFormsContainingDocument.java:899)
        at org.orbeon.oxf.xforms.XFormsContainingDocument.initialize(XFormsContainingDocument.java:1211)
        at org.orbeon.oxf.xforms.XFormsContainingDocument .<init>(XFormsContainingDocument.java:139)
        at org.orbeon.oxf.xforms.processor.XFormsToXHTML.createCacheContainingDocument(XFormsToXHTML.java:332)
        at org.orbeon.oxf.xforms.processor.XFormsToXHTML.access$300 (XFormsToXHTML.java:46)
        at org.orbeon.oxf.xforms.processor.XFormsToXHTML$2.read(XFormsToXHTML.java:168)
        at org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:470)
        at org.orbeon.oxf.xforms.processor.XFormsToXHTML.doIt(XFormsToXHTML.java:134)
        at org.orbeon.oxf.xforms.processor.XFormsToXHTML.access$000(XFormsToXHTML.java:46)
        at org.orbeon.oxf.xforms.processor.XFormsToXHTML$1.readImpl (XFormsToXHTML.java:74)
        at org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:1012)
...

This problem is reproducible using the attached file in the XForms sandbox on http://www.orbeon.com/ops/xforms-sandbox/

Thanks!

Sincerely,
Henrik Pettersen


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

switch.bug.xsl (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Problem with xforms-instance-inspector and switch statements on the same page

Ryan Puddephatt
Henrik,
    Is this in the latest build because I think they recently fixed this

Ryan

Henrik Pettersen wrote:

> All,
>
> found a peculiar problem when using the xforms-instance-inspector
> along with switch statements. See attached for reproducible example.
>
> Here is the stacktrace:
>
> 2007-03-02 16:05:25,796 http-9080-Processor25 ERROR
> webapp.ProcessorService  - Exception at null, line -1, column -1
> java.lang.NullPointerException
>         at
> org.orbeon.oxf.xforms.XFormsSwitchUtils.copySwitchInfo(XFormsSwitchUtils.java:95)
>         at org.orbeon.oxf.xforms.XFormsSwitchUtils.prepareSwitches
> (XFormsSwitchUtils.java:87)
>         at
> org.orbeon.oxf.xforms.action.actions.XFormsInsertAction.execute(XFormsInsertAction.java:211)
>         at
> org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runAction(XFormsActionInterpreter.java
> :116)
>         at
> org.orbeon.oxf.xforms.action.actions.XFormsActionAction.execute(XFormsActionAction.java:32)
>         at
> org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runAction(XFormsActionInterpreter.java:116)
>
>         at
> org.orbeon.oxf.xforms.action.actions.XFormsActionAction.execute(XFormsActionAction.java:32)
>         at
> org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runAction(XFormsActionInterpreter.java:116)
>         at
> org.orbeon.oxf.xforms.XFormsContainingDocument.runAction(XFormsContainingDocument.java:970)
>         at
> org.orbeon.oxf.xforms.event.XFormsEventHandlerImpl.handleEvent(XFormsEventHandlerImpl.java:85)
>         at
> org.orbeon.oxf.xforms.XFormsContainingDocument.dispatchEvent(XFormsContainingDocument.java:899)
>         at
> org.orbeon.oxf.xforms.XFormsContainingDocument.initialize(XFormsContainingDocument.java:1211)
>         at org.orbeon.oxf.xforms.XFormsContainingDocument
> .<init>(XFormsContainingDocument.java:139)
>         at
> org.orbeon.oxf.xforms.processor.XFormsToXHTML.createCacheContainingDocument(XFormsToXHTML.java:332)
>         at org.orbeon.oxf.xforms.processor.XFormsToXHTML.access$300
> (XFormsToXHTML.java:46)
>         at
> org.orbeon.oxf.xforms.processor.XFormsToXHTML$2.read(XFormsToXHTML.java:168)
>         at
> org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:470)
>         at
> org.orbeon.oxf.xforms.processor.XFormsToXHTML.doIt(XFormsToXHTML.java:134)
>         at
> org.orbeon.oxf.xforms.processor.XFormsToXHTML.access$000(XFormsToXHTML.java:46)
>         at org.orbeon.oxf.xforms.processor.XFormsToXHTML$1.readImpl
> (XFormsToXHTML.java:74)
>         at
> org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:1012)
> ...
>
> This problem is reproducible using the attached file in the XForms
> sandbox on http://www.orbeon.com/ops/xforms-sandbox/
>
> Thanks!
>
> Sincerely,
> Henrik Pettersen
> ------------------------------------------------------------------------
>
> <xhtml:html xmlns=""
>            xmlns:xhtml="http://www.w3.org/1999/xhtml"
>            xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>            xmlns:f="http://orbeon.org/oxf/xml/formatting"
>            xmlns:aspic="http://www.cruk.com/aspic/editor/v1"
>            xmlns:xforms="http://www.w3.org/2002/xforms"
>            xmlns:xi="http://www.w3.org/2001/XInclude"
>            xmlns:ev="http://www.w3.org/2001/xml-events"
>            xmlns:xs="http://www.w3.org/2001/XMLSchema"
>            xmlns:xxforms="http://orbeon.org/oxf/xml/xforms"
>            xmlns:xxf="http://orbeon.org/oxf/xml/xforms"
>            xmlns:exf="http://www.exforms.org/exf/1-0"
>            xmlns:xxi="http://orbeon.org/oxf/xml/xinclude"
>            xmlns:widget="http://orbeon.org/oxf/xml/widget"
>            xsl:version="2.0">
>      <xhtml:head>
>          <xhtml:meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
>          <xhtml:title> ASPIC - Update Knowledgebase Details </xhtml:title>
>          <xforms:model>
>              <xforms:instance id="knowledgebase">
>                 <aspic:knowledgebase>
>                     <aspic:rule>
>                         <aspic:id>253</aspic:id>
>                     </aspic:rule>
>                     <aspic:rule>
>                         <aspic:id>254</aspic:id>
>                     </aspic:rule>
>                 </aspic:knowledgebase>
>              </xforms:instance>
>          </xforms:model>
>      </xhtml:head>
>
>     <xhtml:body>
>         <xforms:repeat nodeset="instance('knowledgebase')/aspic:rule" id="rule-repeat">
>             <xforms:switch>
>                 <xforms:case id="delete-rule">
>                     <xforms:trigger>                            
>                         <xforms:label class="fixed-width">Delete</xforms:label>
>                         <xforms:toggle case="confirm-rule" ev:event="DOMActivate"/>
>                     </xforms:trigger>
>                 </xforms:case>
>                 <xforms:case id="confirm-rule">
>                     Are you sure?
>                     <xforms:trigger appearance="xxforms:link">
>                         <xforms:label class="fixed-width">Delete</xforms:label>
>                         <xforms:action ev:event="DOMActivate">
>                             <xforms:send submission="delete-rule-submission"/>
>                         </xforms:action>
>                     </xforms:trigger>
>                     &#160;
>                     <xforms:trigger appearance="xxforms:link">
>                         <xforms:label class="fixed-width">Cancel</xforms:label>
>                         <xforms:toggle case="delete-rule" ev:event="DOMActivate"/>
>                     </xforms:trigger>
>                 </xforms:case>
>             </xforms:switch>
>         </xforms:repeat>
>         <widget:xforms-instance-inspector xmlns:widget="http://orbeon.org/oxf/xml/widget"/>
>     </xhtml:body>
> </xhtml:html>
>
>
>
>  
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
>  



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Problem with xforms-instance-inspector and switch statements on the same page

Erik Bruchez
Administrator
In reply to this post by Henrik Pettersen
Hi Henrik,

We hit this bug as well and it should now be fixed in the nightly builds.

-Erik

Henrik Pettersen wrote:

> All,
>
> found a peculiar problem when using the xforms-instance-inspector along
> with switch statements. See attached for reproducible example.
>
> Here is the stacktrace:
>
> 2007-03-02 16:05:25,796 http-9080-Processor25 ERROR
> webapp.ProcessorService  - Exception at null, line -1, column -1
> java.lang.NullPointerException
>         at
> org.orbeon.oxf.xforms.XFormsSwitchUtils.copySwitchInfo(XFormsSwitchUtils.java:95)
>         at org.orbeon.oxf.xforms.XFormsSwitchUtils.prepareSwitches
> (XFormsSwitchUtils.java:87)
>         at
> org.orbeon.oxf.xforms.action.actions.XFormsInsertAction.execute(XFormsInsertAction.java:211)
>         at
> org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runAction(XFormsActionInterpreter.java
> :116)
>         at
> org.orbeon.oxf.xforms.action.actions.XFormsActionAction.execute(XFormsActionAction.java:32)
>         at
> org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runAction(XFormsActionInterpreter.java:116)
>
>         at
> org.orbeon.oxf.xforms.action.actions.XFormsActionAction.execute(XFormsActionAction.java:32)
>         at
> org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runAction(XFormsActionInterpreter.java:116)
>         at
> org.orbeon.oxf.xforms.XFormsContainingDocument.runAction(XFormsContainingDocument.java:970)
>         at
> org.orbeon.oxf.xforms.event.XFormsEventHandlerImpl.handleEvent(XFormsEventHandlerImpl.java:85)
>         at
> org.orbeon.oxf.xforms.XFormsContainingDocument.dispatchEvent(XFormsContainingDocument.java:899)
>         at
> org.orbeon.oxf.xforms.XFormsContainingDocument.initialize(XFormsContainingDocument.java:1211)
>         at org.orbeon.oxf.xforms.XFormsContainingDocument
> .<init>(XFormsContainingDocument.java:139)
>         at
> org.orbeon.oxf.xforms.processor.XFormsToXHTML.createCacheContainingDocument(XFormsToXHTML.java:332)
>         at org.orbeon.oxf.xforms.processor.XFormsToXHTML.access$300
> (XFormsToXHTML.java:46)
>         at
> org.orbeon.oxf.xforms.processor.XFormsToXHTML$2.read(XFormsToXHTML.java:168)
>         at
> org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:470)
>         at
> org.orbeon.oxf.xforms.processor.XFormsToXHTML.doIt(XFormsToXHTML.java:134)
>         at
> org.orbeon.oxf.xforms.processor.XFormsToXHTML.access$000(XFormsToXHTML.java:46)
>         at org.orbeon.oxf.xforms.processor.XFormsToXHTML$1.readImpl
> (XFormsToXHTML.java:74)
>         at
> org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:1012)
> ...
>
> This problem is reproducible using the attached file in the XForms
> sandbox on http://www.orbeon.com/ops/xforms-sandbox/
>
> Thanks!
>
> Sincerely,
> Henrik Pettersen
>

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Problem with xforms-instance-inspector and switch statements on the same page

Henrik Pettersen
Erik,

great news! Downloaded the nightly build, which resolved the problem.Thank you!

Thanks for the feedback, Ryan :-)

Henrik

On 3/3/07, Erik Bruchez <[hidden email]> wrote:
Hi Henrik,

We hit this bug as well and it should now be fixed in the nightly builds.

-Erik

Henrik Pettersen wrote:

> All,
>
> found a peculiar problem when using the xforms-instance-inspector along
> with switch statements. See attached for reproducible example.
>
> Here is the stacktrace:
>
> 2007-03-02 16:05:25,796 http-9080-Processor25 ERROR
> webapp.ProcessorService  - Exception at null, line -1, column -1
> java.lang.NullPointerException
>         at
> org.orbeon.oxf.xforms.XFormsSwitchUtils.copySwitchInfo(XFormsSwitchUtils.java:95)
>         at org.orbeon.oxf.xforms.XFormsSwitchUtils.prepareSwitches
> (XFormsSwitchUtils.java:87)
>         at
> org.orbeon.oxf.xforms.action.actions.XFormsInsertAction.execute(XFormsInsertAction.java:211)
>         at
> org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runAction (XFormsActionInterpreter.java
> :116)
>         at
> org.orbeon.oxf.xforms.action.actions.XFormsActionAction.execute(XFormsActionAction.java:32)
>         at
> org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runAction (XFormsActionInterpreter.java:116)
>
>         at
> org.orbeon.oxf.xforms.action.actions.XFormsActionAction.execute(XFormsActionAction.java:32)
>         at
> org.orbeon.oxf.xforms.action.XFormsActionInterpreter.runAction (XFormsActionInterpreter.java:116)
>         at
> org.orbeon.oxf.xforms.XFormsContainingDocument.runAction(XFormsContainingDocument.java:970)
>         at
> org.orbeon.oxf.xforms.event.XFormsEventHandlerImpl.handleEvent (XFormsEventHandlerImpl.java:85)
>         at
> org.orbeon.oxf.xforms.XFormsContainingDocument.dispatchEvent(XFormsContainingDocument.java:899)
>         at
> org.orbeon.oxf.xforms.XFormsContainingDocument.initialize (XFormsContainingDocument.java:1211)
>         at org.orbeon.oxf.xforms.XFormsContainingDocument
> .<init>(XFormsContainingDocument.java:139)
>         at
> org.orbeon.oxf.xforms.processor.XFormsToXHTML.createCacheContainingDocument (XFormsToXHTML.java:332)
>         at org.orbeon.oxf.xforms.processor.XFormsToXHTML.access$300
> (XFormsToXHTML.java:46)
>         at
> org.orbeon.oxf.xforms.processor.XFormsToXHTML$2.read(XFormsToXHTML.java :168)
>         at
> org.orbeon.oxf.processor.ProcessorImpl.readCacheInputAsObject(ProcessorImpl.java:470)
>         at
> org.orbeon.oxf.xforms.processor.XFormsToXHTML.doIt(XFormsToXHTML.java:134)
>         at

> org.orbeon.oxf.xforms.processor.XFormsToXHTML.access$000(XFormsToXHTML.java:46)
>         at org.orbeon.oxf.xforms.processor.XFormsToXHTML$1.readImpl
> (XFormsToXHTML.java:74)
>         at
> org.orbeon.oxf.processor.ProcessorImpl$6.read(ProcessorImpl.java:1012)
> ...
>
> This problem is reproducible using the attached file in the XForms
> sandbox on http://www.orbeon.com/ops/xforms-sandbox/
>
> Thanks!
>
> Sincerely,
> Henrik Pettersen
>


--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws




--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws