execute-processor java.lang.NullPointerException

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

execute-processor java.lang.NullPointerException

Alessandro Canovi
Hello,

I am trying to use execute processor with this example, but I get java.lang.NullPointerException.
Attached full error log.

Thanks in advance

<p:config xmlns:p="http://www.orbeon.com/oxf/pipeline"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xmlns:oxf="http://www.orbeon.com/oxf/processors">

    <!-- Execute command -->
    <p:processor name="oxf:execute-processor">
        <p:input name="config">
            <exec executable="env"/>
        </p:input>
        <p:output name="stdout" id="stdout"/>
        <p:output name="stderr" id="stderr"/>
        <p:output name="result" id="result"/>
    </p:processor>

    <!-- Output stdout -->
    <p:processor name="oxf:http-serializer">
        <p:input name="config">
            <config/>
        </p:input>
        <p:input name="data" href="#stdout"/>
    </p:processor>

</p:config>

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].

execute-processor.log (63K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: execute-processor java.lang.NullPointerException

Erik Bruchez
Administrator
I guess this processor is not used very often ;)

The immediate cause seems to be that a character encoding is null when passed to OutputStreamWriter. On the other hand the code seems to imply that it's not supposed to be possible.

What do you see in the debug log output if you put:

<p:output name="stdout" id="stdout" debug="STDOUT"/>

-Erik
Reply | Threaded
Open this post in threaded view
|

Re: execute-processor java.lang.NullPointerException

Alessandro Canovi
I've tried the same on 4.5 and it works

Thanks
Alessandro


2014-03-27 18:57 GMT+01:00 Erik Bruchez <[hidden email]>:
I guess this processor is not used very often ;)

The immediate cause seems to be that a character encoding is null when
passed to OutputStreamWriter. On the other hand the code seems to imply that
it's not supposed to be possible.

What do you see in the debug log output if you put:

<p:output name="stdout" id="stdout" debug="STDOUT"/>

-Erik

--
View this message in context: http://discuss.orbeon.com/execute-processor-java-lang-NullPointerException-tp4658152p4658161.html
Sent from the Orbeon Forms community mailing list mailing list archive at Nabble.com.

--
You received this message because you are subscribed to a topic in the Google Groups "Orbeon Forms" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/orbeon/o7CDtmphzCU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to [hidden email].
To post to this group, send email to [hidden email].

--
You received this message because you are subscribed to the Google Groups "Orbeon Forms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
|

Re: execute-processor java.lang.NullPointerException

Erik Bruchez
Administrator
Cool, thanks for sharing. -Erik