Annoying warning when using the XForms Submission processor

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

Annoying warning when using the XForms Submission processor

Eric van der Vlist
Hi everyone,

The XForms Submission processor is a great tool to access to REST like
web services and we use it a lot, however the logs are filled with this
warning :

WARN  org.orbeon.oxf.xforms.processor.XFormsServer  - instance or text
replacement did not take place upon successful response because no body
was provided. {submission id: "fr-default-submission"}

Any clue why we get this warning and how we could avoid it?

Thanks,

Eric



--
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: Annoying warning when using the XForms Submission processor

Erik Bruchez
Administrator
Eric,

You in fact have replace="instance" or replace="text" and the service
doesn't respond with a body? If so is that always the case or only for
some responses?

-Erik

On Fri, Mar 30, 2012 at 10:18 AM, Eric van der Vlist <[hidden email]> wrote:

> Hi everyone,
>
> The XForms Submission processor is a great tool to access to REST like
> web services and we use it a lot, however the logs are filled with this
> warning :
>
> WARN  org.orbeon.oxf.xforms.processor.XFormsServer  - instance or text
> replacement did not take place upon successful response because no body
> was provided. {submission id: "fr-default-submission"}
>
> Any clue why we get this warning and how we could avoid it?
>
> Thanks,
>
> Eric
>
>
>
> --
> 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
>


--
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: Re: Annoying warning when using the XForms Submission processor

Eric van der Vlist
Hi Erik,

Le lundi 02 avril 2012 à 21:39 -0700, Erik Bruchez a écrit :
> Eric,
>
> You in fact have replace="instance" or replace="text" and the service
> doesn't respond with a body?

No, that seems to be more systematic than that and as far as I can tell
it appears to appear on any PUT request!

put.xpl:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
xmlns:oxf="http://www.orbeon.com/oxf/processors"
xmlns:xforms="http://www.w3.org/2002/xforms"
   >

    <p:processor name="oxf:xforms-submission">
        <p:input name="submission">
            <xforms:submission method="put"
action="http://localhost:8080/orbeon/exist/rest/db/repro/test.xml"/>
        </p:input>
        <p:input name="request">
            <test/>
        </p:input>
        <p:output name="response" id="response" debug="response"/>
    </p:processor>


    <p:processor name="oxf:null-serializer">
        <p:input name="data" href="#response"/>
    </p:processor>

</p:config>
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Test:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
$ java -jar ../../../orbeon/WEB-INF/orbeon-cli.jar put.xpl
Initializing Resource Manager with:
{oxf.resources.factory=org.orbeon.oxf.resources.PriorityResourceManagerFactory, oxf.resources.priority.1=org.orbeon.oxf.resources.FilesystemResourceManagerFactory, oxf.resources.priority.2=org.orbeon.oxf.resources.ClassLoaderResourceManagerFactory}
2012-04-06 20:07:15,287 INFO  org.orbeon.oxf.main.OPS  - Running
processor
2012-04-06 20:07:16,204 WARN
org.orbeon.oxf.xforms.processor.XFormsServer  - instance or text
replacement did not take place upon successful response because no body
was provided. {submission id: "fr-default-submission"}
2012-04-06 20:07:16,228 INFO  org.orbeon.oxf.processor.DebugProcessor  -
response:
line 18, column 67 of
oxf:/home/vdv/projects/DARVA/svn/trunk/ServicesMessages/put.xpl

<test xmlns:oxf="http://www.orbeon.com/oxf/processors"
xmlns:xforms="http://www.w3.org/2002/xforms"
xmlns:p="http://www.orbeon.com/oxf/pipeline"></test>
2012-04-06 20:07:16,228 INFO  org.orbeon.oxf.main.OPS  - / - Timing: 941
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

The other thing that is most annoying with this warning is that you
can't tell what is causing it (no pipeline name, no line number).

You can switch it off in log4j:

    <category name="org.orbeon.oxf.xforms.processor.XFormsServer">
        <priority value="error"/>
    </category>

but of course you don't log and XForms warning then...

Since this warning seems irrelevant when using the xforms:submission
processor, isn't it possible to avoid it?

Eric

> If so is that always the case or only for
> some responses?
>
> -Erik
>
> On Fri, Mar 30, 2012 at 10:18 AM, Eric van der Vlist <[hidden email]> wrote:
> > Hi everyone,
> >
> > The XForms Submission processor is a great tool to access to REST like
> > web services and we use it a lot, however the logs are filled with this
> > warning :
> >
> > WARN  org.orbeon.oxf.xforms.processor.XFormsServer  - instance or text
> > replacement did not take place upon successful response because no body
> > was provided. {submission id: "fr-default-submission"}
> >
> > Any clue why we get this warning and how we could avoid it?
> >
> > Thanks,
> >
> > Eric
> >
> >
> >
> > --
> > 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
> >
> pièce jointe document texte brut (message-footer.txt)
> --
> 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



--
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