error in oxf:request

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

error in oxf:request

James Gu
I use oxf:request in my xpl but it doesn't work well.

                <p:processor name="oxf:request">
                    <p:input name="config">
                        <config>
                            <include>/request</include>
                        </config>
                    </p:input>
                    <p:output name="data" id="request"/>
                </p:processor>
When I access it by URL (/myapp/gettestxpl) , it works well.

When I access it in submission, it throws out an error. What's the difference between URL and submission? Did I use it in wrong way?

submission:
       <xforms:submission id="mysubmission"
                           ref="instance('myrequest')"
                           replace="instance"
                           instance="myresponse"
                           method="post"
                           action="/myapp/gettestxpl">


page flow:
<page path-info="/phs/gettestxpl" view="test.xpl"/>

error info:
2008-07-23 22:09:14,065 ERROR ProcessorService  - Exception at line 17, column 57 of oxf:/apps/collections/collection.xpl (reading processor output: name='data', id='request')
org.dom4j.IllegalAddException: The node "org.orbeon.oxf.xml.dom4j.NonLazyUserDataElement@161e60b [Element: <protocol attributes: []/>] userData: null" could not be added to the branch "null" because: Cannot add another element to this Document as it already has a root element of: request
        at org.dom4j.tree.AbstractDocument.checkAddElementAllowed(AbstractDocument.java:241)
        at org.dom4j.tree.AbstractDocument.add(AbstractDocument.java:203)
        at org.dom4j.tree.AbstractDocument.addElement(AbstractDocument.java:188)
        at org.dom4j.io.SAXContentHandler.startElement(SAXContentHandler.java:243)

Reply | Threaded
Open this post in threaded view
|

Re: error in oxf:request

Erik Bruchez
Administrator
This was a regression, which we fixed yesterday. Please try the next  
nightly build and see if that helps.

-Erik

On Jul 23, 2008, at 7:16 AM, JamesGu wrote:

>
> I use oxf:request in my xpl but it doesn't work well.
>
>                <p:processor name="oxf:request">
>                    <p:input name="config">
>                        <config>
>                            <include>/request</include>
>                        </config>
>                    </p:input>
>                    <p:output name="data" id="request"/>
>                </p:processor>
> When I access it by URL (/myapp/gettestxpl) , it works well.
>
> When I access it in submission, it throws out an error. What's the
> difference between URL and submission? Did I use it in wrong way?
>
> submission:
>       <xforms:submission id="mysubmission"
>                           ref="instance('myrequest')"
>                           replace="instance"
>                           instance="myresponse"
>                           method="post"
>                           action="/myapp/gettestxpl">
>
>
> page flow:
> <page path-info="/phs/gettestxpl" view="test.xpl"/>
>
> error info:
> 2008-07-23 22:09:14,065 ERROR ProcessorService  - Exception at line  
> 17,
> column 57 of oxf:/apps/collections/collection.xpl (reading processor  
> output:
> name='data', id='request')
> org.dom4j.IllegalAddException: The node
> "org.orbeon.oxf.xml.dom4j.NonLazyUserDataElement@161e60b [Element:  
> <protocol
> attributes: []/>] userData: null" could not be added to the branch  
> "null"
> because: Cannot add another element to this Document as it already  
> has a
> root element of: request
> at
> org
> .dom4j
> .tree.AbstractDocument.checkAddElementAllowed(AbstractDocument.java:
> 241)
> at org.dom4j.tree.AbstractDocument.add(AbstractDocument.java:203)
> at org.dom4j.tree.AbstractDocument.addElement(AbstractDocument.java:
> 188)
> at  
> org.dom4j.io.SAXContentHandler.startElement(SAXContentHandler.java:
> 243)
>
>
> --
> View this message in context: http://www.nabble.com/error-in-oxf%3Arequest-tp18611703p18611703.html
> Sent from the ObjectWeb OPS - Users mailing list archive at  
> Nabble.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
> OW2 mailing lists service home page: http://www.ow2.org/wws
--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: error in oxf:request

James Gu
I downloaded your night build and it works well. Thank you very much.


<quote author="Erik Bruchez">
This was a regression, which we fixed yesterday. Please try the next  
nightly build and see if that helps.