- From: Stefanie Haupt <st.haupt@gmail.com>
- Date: Wed, 2 Feb 2011 10:16:40 +0100
- To: xproc-dev@w3.org
Hello list, I'm trying to unzip some .bz2 file using XProc (using calabash 0.9.32). Since they are not handled by cx:unzip (the archive is read as empty) I thought I'd write a p:exec step. But that fails with a fatal error. Can you tell me what's wrong? I guess the most interesting line of the error message would be this: *module with no systemId*:1:java.io.IOException: Broken pipe, however, I've included the complete pipe and error message below. Many thanks in advance and kind regards, Stefanie This is the pipeline: <?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" xmlns:cx="http://xmlcalabash.com/ns/extensions" version="1.0"> <p:input port="source"> <p:data href="test.xml.bz2"/> </p:input> <p:exec command="/bin/bunzip2" source-is-xml="false" result-is-xml="true" wrap-result-lines="false" name="unzip"> <p:with-option name="args" select="'--keep'" /> </p:exec> <p:store href="test-unzipped.xml"/> </p:declare-step> Error-message: calabash --debug unzip.xpl 02.02.2011 10:08:40 com.xmlcalabash.util.DefaultXProcMessageListener info INFO: Running pipeline !1 02.02.2011 10:08:40 com.xmlcalabash.util.DefaultXProcMessageListener info INFO: Running exec unzip 02.02.2011 10:08:40 com.xmlcalabash.util.DefaultXProcMessageListener info INFO: unzip.xpl:10:44:Exec: /bin/bunzip2 --keep 02.02.2011 10:08:40 com.xmlcalabash.util.DefaultXProcMessageListener error SCHWERWIEGEND: *module with no systemId*:1:java.io.IOException: Broken pipe 02.02.2011 10:08:40 com.xmlcalabash.util.DefaultXProcMessageListener error SCHWERWIEGEND: java.io.IOException: Broken pipe 02.02.2011 10:08:40 com.xmlcalabash.drivers.Main error SCHWERWIEGEND: Pipeline failed: net.sf.saxon.s9api.SaxonApiException: java.io.IOException: Broken pipe 02.02.2011 10:08:40 com.xmlcalabash.drivers.Main error SCHWERWIEGEND: Underlying exception: net.sf.saxon.trans.XPathException: java.io.IOException: Broken pipe net.sf.saxon.s9api.SaxonApiException: java.io.IOException: Broken pipe at net.sf.saxon.s9api.XQueryEvaluator.run(XQueryEvaluator.java:303) at com.xmlcalabash.library.Exec.run(Unknown Source) at com.xmlcalabash.runtime.XAtomicStep.run(Unknown Source) at com.xmlcalabash.runtime.XPipeline.doRun(Unknown Source) at com.xmlcalabash.runtime.XPipeline.run(Unknown Source) at com.xmlcalabash.drivers.Main.run(Unknown Source) at com.xmlcalabash.drivers.Main.main(Unknown Source) Caused by: net.sf.saxon.trans.XPathException: java.io.IOException: Broken pipe at net.sf.saxon.serialize.TEXTEmitter.characters(TEXTEmitter.java:101) at net.sf.saxon.event.ProxyReceiver.characters(ProxyReceiver.java:186) at net.sf.saxon.event.ComplexContentOutputter.characters(ComplexContentOutputter.java:165) at net.sf.saxon.tree.tiny.TinyTextImpl.copy(TinyTextImpl.java:76) at net.sf.saxon.event.ComplexContentOutputter.append(ComplexContentOutputter.java:521) at net.sf.saxon.expr.Expression.process(Expression.java:503) at net.sf.saxon.query.XQueryExpression.run(XQueryExpression.java:390) at net.sf.saxon.s9api.XQueryEvaluator.run(XQueryEvaluator.java:299) ... 6 more Caused by: java.io.IOException: Broken pipe at java.io.FileOutputStream.writeBytes(Native Method) at java.io.FileOutputStream.write(FileOutputStream.java:297) at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82) at java.io.BufferedOutputStream.write(BufferedOutputStream.java:126) at net.sf.saxon.serialize.UTF8Writer.write(UTF8Writer.java:286) at net.sf.saxon.serialize.UTF8Writer.write(UTF8Writer.java:253) at net.sf.saxon.serialize.TEXTEmitter.characters(TEXTEmitter.java:99) ... 13 more -- Stefanie Haupt, M.A.
Received on Wednesday, 2 February 2011 09:17:12 UTC