[ http://issues.apache.org/jira/browse/WODEN-93?page=all ]

Arthur Ryman closed WODEN-93.
-----------------------------

    Resolution: Fixed

Fixed in r476277.

> Ant Task Throws NPE on MessageTest-4G
> -------------------------------------
>
>                 Key: WODEN-93
>                 URL: http://issues.apache.org/jira/browse/WODEN-93
>             Project: Woden
>          Issue Type: Bug
>            Reporter: Arthur Ryman
>         Assigned To: Arthur Ryman
>
> The NPE is caused by a null being returned to signal an empty array of HTTP 
> Headers. The test case is acutally wrong since it omits the trailing slash 
> from the HTTP protocol URI, but it exposed a problem in the API.
> For consistency, an empty set of components should always be represented by 
> an array of length 0.
> I'll correct the test case and fix the API to return empty arrays.
> Starting: 
> file:///D:/workspaces/WSD2/woden/downloads/w3c/documents/good/WSAddressing-1G/wsaTestService2.wsdl
> [Error] wsaTestService2.wsdl:5:64: cvc-elt.1: Cannot find the declaration of 
> element 'description'.
> java.lang.NullPointerException
>       at org.apache.woden.ant.CmHttpWriter.write(CmHttpWriter.java:156)
>       at 
> org.apache.woden.ant.CmSoapWriter.soapBindingFaultExtension(CmSoapWriter.java:86)
>       at org.apache.woden.ant.CmWriter.write(CmWriter.java:465)
>       at org.apache.woden.ant.CmWriter.write(CmWriter.java:447)
>       at org.apache.woden.ant.CmWriter.write(CmWriter.java:404)
>       at org.apache.woden.ant.CmWriter.write(CmWriter.java:392)
>       at org.apache.woden.ant.CmWriter.write(CmWriter.java:134)
>       at org.apache.woden.ant.WsdlCm.write(WsdlCm.java:77)
>       at org.apache.woden.ant.WsdlCm.main(WsdlCm.java:132)
> Finished.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to