You are viewing a plain text version of this content. The canonical link for it is here.
Posted to woden-dev@ws.apache.org by "John Kaputin (JIRA)" <ji...@apache.org> on 2006/01/23 12:35:09 UTC
[jira] Created: (WODEN-2) 'element' attribute is not treated as
OPTIONAL by validator
'element' attribute is not treated as OPTIONAL by validator
-----------------------------------------------------------
Key: WODEN-2
URL: http://issues.apache.org/jira/browse/WODEN-2
Project: Woden
Type: Bug
Reporter: John Kaputin
Priority: Minor
The 'element' attribute of interface fault and message reference is optional [1], so I tried a test with this attribute missing from an interface <fault>. It caused a NPE in WSDLDocumentValidator.validateInterfaces(..) at the point where it calls testAssertionSchema0016(..). A similar test should be done on interface <input> and <output> (i.e. interface message reference).
[1] http://www.w3.org/TR/2006/CR-wsdl20-20060106/#InterfaceFault_XMLRep
The WSDL used was:
<?xml version="1.0" encoding="utf-8" ?>
<description xmlns="http://www.w3.org/2005/08/wsdl"
targetNamespace="http://greath.example.com/2004/services/updateDetails"
xmlns:tns="http://greath.example.com/2004/services/updateDetails"
xmlns:details="http://greath.example.com/2004/schemas/reservationDetails"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.w3.org/2005/08/wsdl http://www.w3.org/2005/08/wsdl/wsdl20.xsd
http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema.xsd"
>
<documentation>
Test that the 'element' attribute of an interface fault is treated as optional.
</documentation>
<types>
<xs:schema id="items"
targetNamespace="http://greath.example.com/2004/schemas/reservationItems">
<xs:element name="confirmationNumber" type="xs:string" />
<xs:element name="checkInDate" type="xs:date" />
<xs:element name="checkOutDate" type="xs:date" />
<xs:element name="roomType" type="xs:string" />
<xs:element name="smoking" type="xs:boolean" />
</xs:schema>
</types>
<interface name="reservationInterface">
<fault name="invalidDataFault1" element="confirmationNumber" />
<fault name="invalidDataFault2" />
</interface>
</description>
The stack trace is:
java.lang.NullPointerException
at org.apache.woden.internal.wsdl20.validation.WSDLDocumentValidator.validateInterfaces(WSDLDocumentValidator.java:171)
at org.apache.woden.internal.wsdl20.validation.WSDLDocumentValidator.validate(WSDLDocumentValidator.java:80)
at org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:153)
at jktest.ReadWsdlTest.main(ReadWsdlTest.java:75)
--
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: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org
[jira] Resolved: (WODEN-2) 'element' attribute is not treated as
OPTIONAL by validator
Posted by "Lawrence Mandel (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WODEN-2?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lawrence Mandel resolved WODEN-2.
---------------------------------
Resolution: Fixed
John, I'm sure this was an issue last January but I can't reproduce the problem using the latest from HEAD. I'm going to resolve this issue as fixed. Please reopen if you can reproduce the problem.
> 'element' attribute is not treated as OPTIONAL by validator
> -----------------------------------------------------------
>
> Key: WODEN-2
> URL: https://issues.apache.org/jira/browse/WODEN-2
> Project: Woden
> Issue Type: Bug
> Components: Validation
> Reporter: John Kaputin
> Assigned To: Lawrence Mandel
> Priority: Minor
> Fix For: M7
>
>
> The 'element' attribute of interface fault and message reference is optional [1], so I tried a test with this attribute missing from an interface <fault>. It caused a NPE in WSDLDocumentValidator.validateInterfaces(..) at the point where it calls testAssertionSchema0016(..). A similar test should be done on interface <input> and <output> (i.e. interface message reference).
> [1] http://www.w3.org/TR/2006/CR-wsdl20-20060106/#InterfaceFault_XMLRep
> The WSDL used was:
> <?xml version="1.0" encoding="utf-8" ?>
> <description xmlns="http://www.w3.org/2005/08/wsdl"
> targetNamespace="http://greath.example.com/2004/services/updateDetails"
> xmlns:tns="http://greath.example.com/2004/services/updateDetails"
> xmlns:details="http://greath.example.com/2004/schemas/reservationDetails"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation=
> "http://www.w3.org/2005/08/wsdl http://www.w3.org/2005/08/wsdl/wsdl20.xsd
> http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema.xsd"
> >
> <documentation>
> Test that the 'element' attribute of an interface fault is treated as optional.
> </documentation>
> <types>
> <xs:schema id="items"
> targetNamespace="http://greath.example.com/2004/schemas/reservationItems">
> <xs:element name="confirmationNumber" type="xs:string" />
> <xs:element name="checkInDate" type="xs:date" />
> <xs:element name="checkOutDate" type="xs:date" />
> <xs:element name="roomType" type="xs:string" />
> <xs:element name="smoking" type="xs:boolean" />
> </xs:schema>
> </types>
>
> <interface name="reservationInterface">
> <fault name="invalidDataFault1" element="details:confirmationNumber" />
> <fault name="invalidDataFault2" />
> </interface>
>
> </description>
> The stack trace is:
> java.lang.NullPointerException
> at org.apache.woden.internal.wsdl20.validation.WSDLDocumentValidator.validateInterfaces(WSDLDocumentValidator.java:171)
> at org.apache.woden.internal.wsdl20.validation.WSDLDocumentValidator.validate(WSDLDocumentValidator.java:80)
> at org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:153)
> at jktest.ReadWsdlTest.main(ReadWsdlTest.java:75)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org
[jira] Updated: (WODEN-2) 'element' attribute is not treated as
OPTIONAL by validator
Posted by "Lawrence Mandel (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/WODEN-2?page=all ]
Lawrence Mandel updated WODEN-2:
--------------------------------
Fix Version/s: M7
Affects Version/s: (was: M7)
> 'element' attribute is not treated as OPTIONAL by validator
> -----------------------------------------------------------
>
> Key: WODEN-2
> URL: http://issues.apache.org/jira/browse/WODEN-2
> Project: Woden
> Issue Type: Bug
> Components: Validation
> Reporter: John Kaputin
> Assigned To: Lawrence Mandel
> Priority: Minor
> Fix For: M7
>
>
> The 'element' attribute of interface fault and message reference is optional [1], so I tried a test with this attribute missing from an interface <fault>. It caused a NPE in WSDLDocumentValidator.validateInterfaces(..) at the point where it calls testAssertionSchema0016(..). A similar test should be done on interface <input> and <output> (i.e. interface message reference).
> [1] http://www.w3.org/TR/2006/CR-wsdl20-20060106/#InterfaceFault_XMLRep
> The WSDL used was:
> <?xml version="1.0" encoding="utf-8" ?>
> <description xmlns="http://www.w3.org/2005/08/wsdl"
> targetNamespace="http://greath.example.com/2004/services/updateDetails"
> xmlns:tns="http://greath.example.com/2004/services/updateDetails"
> xmlns:details="http://greath.example.com/2004/schemas/reservationDetails"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation=
> "http://www.w3.org/2005/08/wsdl http://www.w3.org/2005/08/wsdl/wsdl20.xsd
> http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema.xsd"
> >
> <documentation>
> Test that the 'element' attribute of an interface fault is treated as optional.
> </documentation>
> <types>
> <xs:schema id="items"
> targetNamespace="http://greath.example.com/2004/schemas/reservationItems">
> <xs:element name="confirmationNumber" type="xs:string" />
> <xs:element name="checkInDate" type="xs:date" />
> <xs:element name="checkOutDate" type="xs:date" />
> <xs:element name="roomType" type="xs:string" />
> <xs:element name="smoking" type="xs:boolean" />
> </xs:schema>
> </types>
>
> <interface name="reservationInterface">
> <fault name="invalidDataFault1" element="details:confirmationNumber" />
> <fault name="invalidDataFault2" />
> </interface>
>
> </description>
> The stack trace is:
> java.lang.NullPointerException
> at org.apache.woden.internal.wsdl20.validation.WSDLDocumentValidator.validateInterfaces(WSDLDocumentValidator.java:171)
> at org.apache.woden.internal.wsdl20.validation.WSDLDocumentValidator.validate(WSDLDocumentValidator.java:80)
> at org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:153)
> at jktest.ReadWsdlTest.main(ReadWsdlTest.java:75)
--
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: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org
[jira] Assigned: (WODEN-2) 'element' attribute is not treated as
OPTIONAL by validator
Posted by "Lawrence Mandel (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/WODEN-2?page=all ]
Lawrence Mandel reassigned WODEN-2:
-----------------------------------
Assign To: Lawrence Mandel
> 'element' attribute is not treated as OPTIONAL by validator
> -----------------------------------------------------------
>
> Key: WODEN-2
> URL: http://issues.apache.org/jira/browse/WODEN-2
> Project: Woden
> Type: Bug
> Reporter: John Kaputin
> Assignee: Lawrence Mandel
> Priority: Minor
>
> The 'element' attribute of interface fault and message reference is optional [1], so I tried a test with this attribute missing from an interface <fault>. It caused a NPE in WSDLDocumentValidator.validateInterfaces(..) at the point where it calls testAssertionSchema0016(..). A similar test should be done on interface <input> and <output> (i.e. interface message reference).
> [1] http://www.w3.org/TR/2006/CR-wsdl20-20060106/#InterfaceFault_XMLRep
> The WSDL used was:
> <?xml version="1.0" encoding="utf-8" ?>
> <description xmlns="http://www.w3.org/2005/08/wsdl"
> targetNamespace="http://greath.example.com/2004/services/updateDetails"
> xmlns:tns="http://greath.example.com/2004/services/updateDetails"
> xmlns:details="http://greath.example.com/2004/schemas/reservationDetails"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation=
> "http://www.w3.org/2005/08/wsdl http://www.w3.org/2005/08/wsdl/wsdl20.xsd
> http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema.xsd"
> >
> <documentation>
> Test that the 'element' attribute of an interface fault is treated as optional.
> </documentation>
> <types>
> <xs:schema id="items"
> targetNamespace="http://greath.example.com/2004/schemas/reservationItems">
> <xs:element name="confirmationNumber" type="xs:string" />
> <xs:element name="checkInDate" type="xs:date" />
> <xs:element name="checkOutDate" type="xs:date" />
> <xs:element name="roomType" type="xs:string" />
> <xs:element name="smoking" type="xs:boolean" />
> </xs:schema>
> </types>
>
> <interface name="reservationInterface">
> <fault name="invalidDataFault1" element="details:confirmationNumber" />
> <fault name="invalidDataFault2" />
> </interface>
>
> </description>
> The stack trace is:
> java.lang.NullPointerException
> at org.apache.woden.internal.wsdl20.validation.WSDLDocumentValidator.validateInterfaces(WSDLDocumentValidator.java:171)
> at org.apache.woden.internal.wsdl20.validation.WSDLDocumentValidator.validate(WSDLDocumentValidator.java:80)
> at org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:153)
> at jktest.ReadWsdlTest.main(ReadWsdlTest.java:75)
--
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: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org
[jira] Updated: (WODEN-2) 'element' attribute is not treated as
OPTIONAL by validator
Posted by "Lawrence Mandel (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/WODEN-2?page=all ]
Lawrence Mandel updated WODEN-2:
--------------------------------
Affects Version/s: M7
> 'element' attribute is not treated as OPTIONAL by validator
> -----------------------------------------------------------
>
> Key: WODEN-2
> URL: http://issues.apache.org/jira/browse/WODEN-2
> Project: Woden
> Issue Type: Bug
> Components: Validation
> Reporter: John Kaputin
> Assigned To: Lawrence Mandel
> Priority: Minor
> Fix For: M7
>
>
> The 'element' attribute of interface fault and message reference is optional [1], so I tried a test with this attribute missing from an interface <fault>. It caused a NPE in WSDLDocumentValidator.validateInterfaces(..) at the point where it calls testAssertionSchema0016(..). A similar test should be done on interface <input> and <output> (i.e. interface message reference).
> [1] http://www.w3.org/TR/2006/CR-wsdl20-20060106/#InterfaceFault_XMLRep
> The WSDL used was:
> <?xml version="1.0" encoding="utf-8" ?>
> <description xmlns="http://www.w3.org/2005/08/wsdl"
> targetNamespace="http://greath.example.com/2004/services/updateDetails"
> xmlns:tns="http://greath.example.com/2004/services/updateDetails"
> xmlns:details="http://greath.example.com/2004/schemas/reservationDetails"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation=
> "http://www.w3.org/2005/08/wsdl http://www.w3.org/2005/08/wsdl/wsdl20.xsd
> http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema.xsd"
> >
> <documentation>
> Test that the 'element' attribute of an interface fault is treated as optional.
> </documentation>
> <types>
> <xs:schema id="items"
> targetNamespace="http://greath.example.com/2004/schemas/reservationItems">
> <xs:element name="confirmationNumber" type="xs:string" />
> <xs:element name="checkInDate" type="xs:date" />
> <xs:element name="checkOutDate" type="xs:date" />
> <xs:element name="roomType" type="xs:string" />
> <xs:element name="smoking" type="xs:boolean" />
> </xs:schema>
> </types>
>
> <interface name="reservationInterface">
> <fault name="invalidDataFault1" element="details:confirmationNumber" />
> <fault name="invalidDataFault2" />
> </interface>
>
> </description>
> The stack trace is:
> java.lang.NullPointerException
> at org.apache.woden.internal.wsdl20.validation.WSDLDocumentValidator.validateInterfaces(WSDLDocumentValidator.java:171)
> at org.apache.woden.internal.wsdl20.validation.WSDLDocumentValidator.validate(WSDLDocumentValidator.java:80)
> at org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:153)
> at jktest.ReadWsdlTest.main(ReadWsdlTest.java:75)
--
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: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org
[jira] Updated: (WODEN-2) 'element' attribute is not treated as
OPTIONAL by validator
Posted by "Lawrence Mandel (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/WODEN-2?page=all ]
Lawrence Mandel updated WODEN-2:
--------------------------------
Component: Validation
> 'element' attribute is not treated as OPTIONAL by validator
> -----------------------------------------------------------
>
> Key: WODEN-2
> URL: http://issues.apache.org/jira/browse/WODEN-2
> Project: Woden
> Type: Bug
> Components: Validation
> Reporter: John Kaputin
> Assignee: Lawrence Mandel
> Priority: Minor
>
> The 'element' attribute of interface fault and message reference is optional [1], so I tried a test with this attribute missing from an interface <fault>. It caused a NPE in WSDLDocumentValidator.validateInterfaces(..) at the point where it calls testAssertionSchema0016(..). A similar test should be done on interface <input> and <output> (i.e. interface message reference).
> [1] http://www.w3.org/TR/2006/CR-wsdl20-20060106/#InterfaceFault_XMLRep
> The WSDL used was:
> <?xml version="1.0" encoding="utf-8" ?>
> <description xmlns="http://www.w3.org/2005/08/wsdl"
> targetNamespace="http://greath.example.com/2004/services/updateDetails"
> xmlns:tns="http://greath.example.com/2004/services/updateDetails"
> xmlns:details="http://greath.example.com/2004/schemas/reservationDetails"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation=
> "http://www.w3.org/2005/08/wsdl http://www.w3.org/2005/08/wsdl/wsdl20.xsd
> http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema.xsd"
> >
> <documentation>
> Test that the 'element' attribute of an interface fault is treated as optional.
> </documentation>
> <types>
> <xs:schema id="items"
> targetNamespace="http://greath.example.com/2004/schemas/reservationItems">
> <xs:element name="confirmationNumber" type="xs:string" />
> <xs:element name="checkInDate" type="xs:date" />
> <xs:element name="checkOutDate" type="xs:date" />
> <xs:element name="roomType" type="xs:string" />
> <xs:element name="smoking" type="xs:boolean" />
> </xs:schema>
> </types>
>
> <interface name="reservationInterface">
> <fault name="invalidDataFault1" element="details:confirmationNumber" />
> <fault name="invalidDataFault2" />
> </interface>
>
> </description>
> The stack trace is:
> java.lang.NullPointerException
> at org.apache.woden.internal.wsdl20.validation.WSDLDocumentValidator.validateInterfaces(WSDLDocumentValidator.java:171)
> at org.apache.woden.internal.wsdl20.validation.WSDLDocumentValidator.validate(WSDLDocumentValidator.java:80)
> at org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:153)
> at jktest.ReadWsdlTest.main(ReadWsdlTest.java:75)
--
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: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org
[jira] Updated: (WODEN-2) 'element' attribute is not treated as
OPTIONAL by validator
Posted by "John Kaputin (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/WODEN-2?page=all ]
John Kaputin updated WODEN-2:
-----------------------------
Description:
The 'element' attribute of interface fault and message reference is optional [1], so I tried a test with this attribute missing from an interface <fault>. It caused a NPE in WSDLDocumentValidator.validateInterfaces(..) at the point where it calls testAssertionSchema0016(..). A similar test should be done on interface <input> and <output> (i.e. interface message reference).
[1] http://www.w3.org/TR/2006/CR-wsdl20-20060106/#InterfaceFault_XMLRep
The WSDL used was:
<?xml version="1.0" encoding="utf-8" ?>
<description xmlns="http://www.w3.org/2005/08/wsdl"
targetNamespace="http://greath.example.com/2004/services/updateDetails"
xmlns:tns="http://greath.example.com/2004/services/updateDetails"
xmlns:details="http://greath.example.com/2004/schemas/reservationDetails"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.w3.org/2005/08/wsdl http://www.w3.org/2005/08/wsdl/wsdl20.xsd
http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema.xsd"
>
<documentation>
Test that the 'element' attribute of an interface fault is treated as optional.
</documentation>
<types>
<xs:schema id="items"
targetNamespace="http://greath.example.com/2004/schemas/reservationItems">
<xs:element name="confirmationNumber" type="xs:string" />
<xs:element name="checkInDate" type="xs:date" />
<xs:element name="checkOutDate" type="xs:date" />
<xs:element name="roomType" type="xs:string" />
<xs:element name="smoking" type="xs:boolean" />
</xs:schema>
</types>
<interface name="reservationInterface">
<fault name="invalidDataFault1" element="details:confirmationNumber" />
<fault name="invalidDataFault2" />
</interface>
</description>
The stack trace is:
java.lang.NullPointerException
at org.apache.woden.internal.wsdl20.validation.WSDLDocumentValidator.validateInterfaces(WSDLDocumentValidator.java:171)
at org.apache.woden.internal.wsdl20.validation.WSDLDocumentValidator.validate(WSDLDocumentValidator.java:80)
at org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:153)
at jktest.ReadWsdlTest.main(ReadWsdlTest.java:75)
was:
The 'element' attribute of interface fault and message reference is optional [1], so I tried a test with this attribute missing from an interface <fault>. It caused a NPE in WSDLDocumentValidator.validateInterfaces(..) at the point where it calls testAssertionSchema0016(..). A similar test should be done on interface <input> and <output> (i.e. interface message reference).
[1] http://www.w3.org/TR/2006/CR-wsdl20-20060106/#InterfaceFault_XMLRep
The WSDL used was:
<?xml version="1.0" encoding="utf-8" ?>
<description xmlns="http://www.w3.org/2005/08/wsdl"
targetNamespace="http://greath.example.com/2004/services/updateDetails"
xmlns:tns="http://greath.example.com/2004/services/updateDetails"
xmlns:details="http://greath.example.com/2004/schemas/reservationDetails"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=
"http://www.w3.org/2005/08/wsdl http://www.w3.org/2005/08/wsdl/wsdl20.xsd
http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema.xsd"
>
<documentation>
Test that the 'element' attribute of an interface fault is treated as optional.
</documentation>
<types>
<xs:schema id="items"
targetNamespace="http://greath.example.com/2004/schemas/reservationItems">
<xs:element name="confirmationNumber" type="xs:string" />
<xs:element name="checkInDate" type="xs:date" />
<xs:element name="checkOutDate" type="xs:date" />
<xs:element name="roomType" type="xs:string" />
<xs:element name="smoking" type="xs:boolean" />
</xs:schema>
</types>
<interface name="reservationInterface">
<fault name="invalidDataFault1" element="confirmationNumber" />
<fault name="invalidDataFault2" />
</interface>
</description>
The stack trace is:
java.lang.NullPointerException
at org.apache.woden.internal.wsdl20.validation.WSDLDocumentValidator.validateInterfaces(WSDLDocumentValidator.java:171)
at org.apache.woden.internal.wsdl20.validation.WSDLDocumentValidator.validate(WSDLDocumentValidator.java:80)
at org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:153)
at jktest.ReadWsdlTest.main(ReadWsdlTest.java:75)
In the WSDL sample, changed "element=confirmationNumber" to "element=details:confirmationNumber".
> 'element' attribute is not treated as OPTIONAL by validator
> -----------------------------------------------------------
>
> Key: WODEN-2
> URL: http://issues.apache.org/jira/browse/WODEN-2
> Project: Woden
> Type: Bug
> Reporter: John Kaputin
> Priority: Minor
>
> The 'element' attribute of interface fault and message reference is optional [1], so I tried a test with this attribute missing from an interface <fault>. It caused a NPE in WSDLDocumentValidator.validateInterfaces(..) at the point where it calls testAssertionSchema0016(..). A similar test should be done on interface <input> and <output> (i.e. interface message reference).
> [1] http://www.w3.org/TR/2006/CR-wsdl20-20060106/#InterfaceFault_XMLRep
> The WSDL used was:
> <?xml version="1.0" encoding="utf-8" ?>
> <description xmlns="http://www.w3.org/2005/08/wsdl"
> targetNamespace="http://greath.example.com/2004/services/updateDetails"
> xmlns:tns="http://greath.example.com/2004/services/updateDetails"
> xmlns:details="http://greath.example.com/2004/schemas/reservationDetails"
> xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation=
> "http://www.w3.org/2005/08/wsdl http://www.w3.org/2005/08/wsdl/wsdl20.xsd
> http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema.xsd"
> >
> <documentation>
> Test that the 'element' attribute of an interface fault is treated as optional.
> </documentation>
> <types>
> <xs:schema id="items"
> targetNamespace="http://greath.example.com/2004/schemas/reservationItems">
> <xs:element name="confirmationNumber" type="xs:string" />
> <xs:element name="checkInDate" type="xs:date" />
> <xs:element name="checkOutDate" type="xs:date" />
> <xs:element name="roomType" type="xs:string" />
> <xs:element name="smoking" type="xs:boolean" />
> </xs:schema>
> </types>
>
> <interface name="reservationInterface">
> <fault name="invalidDataFault1" element="details:confirmationNumber" />
> <fault name="invalidDataFault2" />
> </interface>
>
> </description>
> The stack trace is:
> java.lang.NullPointerException
> at org.apache.woden.internal.wsdl20.validation.WSDLDocumentValidator.validateInterfaces(WSDLDocumentValidator.java:171)
> at org.apache.woden.internal.wsdl20.validation.WSDLDocumentValidator.validate(WSDLDocumentValidator.java:80)
> at org.apache.woden.internal.DOMWSDLReader.readWSDL(DOMWSDLReader.java:153)
> at jktest.ReadWsdlTest.main(ReadWsdlTest.java:75)
--
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: woden-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: woden-dev-help@ws.apache.org