NPE with Calabash 0.9.7

  Hi,

  I've just got a null pointer exception with Calabash 0.9.7.
Unfortunately, that's hard to reduce the example further than the
following pipeline:

    <p:declare-step xmlns:p="http://www.w3.org/ns/xproc"
                    xmlns:c="http://www.w3.org/ns/xproc-step">

       <p:output port="result"/>

       <p:option name="username" select="'...'"/>
       <p:option name="password" select="'...'"/>

       <p:wrap wrapper="c:body" match="/">
          <p:input port="source">
             <p:inline>
                <document/>
             </p:inline>
          </p:input>
       </p:wrap>

       <p:add-attribute
          match="/c:body"
          attribute-name="content-type"
          attribute-value="application/xml"/>

       <p:wrap wrapper="c:request" match="/"/>

       <p:add-attribute attribute-name="username" match="/c:request">
          <p:with-option name="attribute-value" select="$username"/>
       </p:add-attribute>

       <p:add-attribute attribute-name="password" match="/c:request">
          <p:with-option name="attribute-value" select="$password"/>
       </p:add-attribute>

       <p:set-attributes match="/c:request">
          <p:input port="attributes">
             <p:inline>
                <c:request
                   method="put"
                   auth-method="Basic"
                   send-authorization="true"

href="http://localhost:8080/exist/rest/db/expath/modules.xml"/>
             </p:inline>
          </p:input>
       </p:set-attributes>

       <p:http-request/>

    </p:declare-step>

  I get the following error:

    Error : Pipeline failed: com.xmlcalabash.core.XProcException:
    java.lang.NullPointerException

  Interestingly, if the URI does not point to a port with a
server listening, an dynamic error is returned telling that there
was an HTTP error.  So it seems the error is while using the
result of the http-request step.

  Regards,

-- 
Florent Georges
http://www.fgeorges.org/

Received on Monday, 6 April 2009 21:42:01 UTC