W3C home > Mailing lists > Public > xproc-dev@w3.org > May 2009

NPE in Calabash with p:http-request

From: Florent Georges <fgeorges@fgeorges.org>
Date: Fri, 1 May 2009 20:23:12 +0200
Message-ID: <ebaca5bf0905011123i4b8555d6ud97930c6e70d0d47@mail.gmail.com>
To: XProc Dev <xproc-dev@w3.org>
  Hi,

  I've just tried to use the file: URI scheme with p:http-request with
Calabash 0.9.9 (I like to version number, seems something important is
going to happen.)  The following (the URI is the name of the pipeline
file here, adapt it at home):

    <p:http-request>
       <p:input port="source">
          <p:inline>
             <c:request href="http-file-scheme.xproc" method="get"/>
          </p:inline>
       </p:input>
    </p:http-request>

gives the following error:

Error  : Pipeline failed: java.lang.NullPointerException
java.lang.NullPointerException
	at net.sf.saxon.event.ComplexContentOutputter.attribute(ComplexContentOutputter.java:352)
	at net.sf.saxon.tinytree.TinyElementImpl.copy(TinyElementImpl.java:336)
	at net.sf.saxon.event.ComplexContentOutputter.append(ComplexContentOutputter.java:491)
	at net.sf.saxon.event.ComplexContentOutputter.append(ComplexContentOutputter.java:485)
	at net.sf.saxon.expr.Expression.process(Expression.java:463)
	at net.sf.saxon.query.XQueryExpression.run(XQueryExpression.java:394)
	at net.sf.saxon.s9api.XQueryEvaluator.run(XQueryEvaluator.java:249)
	at com.xmlcalabash.io.WritableDocument.write(WritableDocument.java:147)
	at com.xmlcalabash.drivers.Main.run(Main.java:265)
	at com.xmlcalabash.drivers.Main.main(Main.java:65)

  Hope that helps,

-- 
Florent Georges
http://www.fgeorges.org/
Received on Friday, 1 May 2009 18:23:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 1 May 2009 18:23:54 GMT