Error message running xmlcalabash
Posted: Tue Jul 27, 2010 6:03 pm
Using following XProc
Running this as xmlcalabash command outside OxygenXML runs as expected:
And the xml file is added to the eXist database.
Running the same XProc from within OxygenXML returns following error
The xml file however is added also to the eXist db.
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
xmlns:c="http://www.w3.org/ns/xproc-step"
version="1.0">
<p:output port="result"/>
<p:http-request omit-xml-declaration="false" encoding="UTF-8">
<p:input port="source">
<p:inline>
<c:request
href="http://localhost:8888/exist/rest/db/Food/Almonds2.xml" method="PUT">
<c:body content-type="application/xml" >
<product>
<category>fruits</category>
<item>Almonds</item>
<inventory>
<sku>AlmofruiIV75Lm</sku>
<price>2</price>
<inventory>915</inventory>
</inventory>
<vendor>TriCounty Produce</vendor>
</product>
</c:body>
</c:request>
</p:inline>
</p:input>
</p:http-request>
</p:declare-step>
Code: Select all
C:\Program Files\xmlcalabash-0.9.22> java com.xmlcalabash.drivers.Main xpl/PUT.x
pl
27-jul-2010 17:13:31 com.xmlcalabash.util.DefaultXProcMessageListener info
INFO: Running pipeline !1
27-jul-2010 17:13:32 com.xmlcalabash.util.DefaultXProcMessageListener info
INFO: Running http-request !1.2
<c:body xmlns:c="http://www.w3.org/ns/xproc-step" content-type="application/octe
t-stream" encoding="base64">
</c:body>
Running the same XProc from within OxygenXML returns following error
SystemID: C:\Program Files\xmlcalabash-0.9.22\xpl\PUT.xpl
Engine name: Calabash XProc
Severity: error
Description: java.lang.NullPointerException null
The xml file however is added also to the eXist db.