execute-processor java.lang.NullPointerException

5 views
Skip to first unread message

Alessandro Canovi

unread,
Mar 26, 2014, 2:53:57 PM3/26/14
to orb...@googlegroups.com
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>
execute-processor.log

Erik Bruchez

unread,
Mar 27, 2014, 1:57:20 PM3/27/14
to orb...@googlegroups.com
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.

Alessandro Canovi

unread,
Apr 23, 2014, 7:23:45 AM4/23/14
to orb...@googlegroups.com
I've tried the same on 4.5 and it works

Thanks
Alessandro



--
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 orbeon+un...@googlegroups.com.
To post to this group, send email to orb...@googlegroups.com.

Erik Bruchez

unread,
Apr 23, 2014, 1:37:41 PM4/23/14
to orb...@googlegroups.com
Cool, thanks for sharing. -Erik

--
View this message in context: http://discuss.orbeon.com/execute-processor-java-lang-NullPointerException-tp4658152p4658300.html
Reply all
Reply to author
Forward
0 new messages