Page 1 of 1

Error message running xmlcalabash

Posted: Tue Jul 27, 2010 6:03 pm
by PaulHermans
Using following XProc

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>
Running this as xmlcalabash command outside OxygenXML runs as expected:

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>
And the xml file is added to the eXist database.

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.

Re: Error message running xmlcalabash

Posted: Wed Jul 28, 2010 12:45 pm
by george
Hi Paul,

We will make available this afternoon a connector for the latest Calabash (the one released a few hours ago). I will post the link also here as soon as it will be available. Then please try the same pipeline with that and let us know if you still get this problem.

Best Regards,
George

Re: Error message running xmlcalabash

Posted: Wed Jul 28, 2010 3:39 pm
by PaulHermans
Hi George,

With the new connector I get
<c:body content-type="" encoding="base64" xmlns:c="http://www.w3.org/ns/xproc-step"></c:body>
and no error message anymore.

Solved.


Many thanks,


Paul

Re: Error message running xmlcalabash

Posted: Wed Jul 28, 2010 3:43 pm
by george
Hi Paul,

Thanks for updating the post, I am happy to hear the issue is solved with the new Calabash and the new connector.

I was about to post also here the link to the updated Calabash connector
http://www.oxygenxml.com/update/calabash-oXygen.zip

Best Regards,
George