You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Ronak Patel (JIRA)" <ax...@ws.apache.org> on 2006/08/24 08:48:25 UTC
[jira] Created: (AXISCPP-995) WSDL2Ws ignores attribute refs inside
of attributeGroup
WSDL2Ws ignores attribute refs inside of attributeGroup
-------------------------------------------------------
Key: AXISCPP-995
URL: http://issues.apache.org/jira/browse/AXISCPP-995
Project: Axis-C++
Issue Type: Bug
Components: WSDL processing - Doc, XML parser abstraction layer
Affects Versions: 1.6 Beta
Environment: Windows 2000
Reporter: Ronak Patel
Priority: Blocker
WSDL2Ws complains with a NULLPointerException when encountering the following schema block:
<xsd:attributeGroup name="SomeGroup">
<xsd:attribute ref="first" use="required"/>
<xsd:attribute ref="second" use="required"/>
<xsd:attribute ref="third" use="optional"/>
<xsd:attribute ref="fourth" use="optional"/>
<xsd:attribute ref="fifth" use="optional"/>
<xsd:attribute ref="sixth" use="optional"/>
<xsd:attribute ref="seventh" use="optional"/>
<xsd:attribute ref="eighth" use="optional"/>
<xsd:attribute ref="ninth" use="optional"/>
<xsd:attribute ref="tenth" use="optional"/>
<xsd:attribute ref="eleventh" use="optional"/>
</xsd:attributeGroup>
<xsd:attribute name="first" type="someDeclaredType"/>
<xsd:attribute name="first" type="someDeclaredType"/>
<xsd:attribute name="first" type="someDeclaredType"/>
<xsd:attribute name="first" type="someDeclaredType"/><xsd:attribute name="first" type="someDeclaredType"/>
--
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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Closed: (AXISCPP-995) WSDL2Ws ignores attribute refs inside
of attributeGroup
Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/AXISCPP-995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
nadir amra closed AXISCPP-995.
------------------------------
Resolution: Fixed
Fix Version/s: current (nightly)
The problem was that we were not detecting if the entry in the attributeGroup was a reference. Now it does and resolves to the reference.
The change was in file CSchemaUtils.java. method addAttributeToVector().
> WSDL2Ws ignores attribute refs inside of attributeGroup
> -------------------------------------------------------
>
> Key: AXISCPP-995
> URL: https://issues.apache.org/jira/browse/AXISCPP-995
> Project: Axis-C++
> Issue Type: Bug
> Components: WSDL processing - Doc, XML parser abstraction layer
> Affects Versions: 1.6 Beta
> Environment: Windows 2000
> Reporter: Ronak Patel
> Priority: Blocker
> Fix For: current (nightly)
>
>
> WSDL2Ws complains with a NULLPointerException when encountering the following schema block:
> <xsd:attributeGroup name="SomeGroup">
> <xsd:attribute ref="first" use="required"/>
> <xsd:attribute ref="second" use="required"/>
> <xsd:attribute ref="third" use="optional"/>
> <xsd:attribute ref="fourth" use="optional"/>
> <xsd:attribute ref="fifth" use="optional"/>
> <xsd:attribute ref="sixth" use="optional"/>
> <xsd:attribute ref="seventh" use="optional"/>
> <xsd:attribute ref="eighth" use="optional"/>
> <xsd:attribute ref="ninth" use="optional"/>
> <xsd:attribute ref="tenth" use="optional"/>
> <xsd:attribute ref="eleventh" use="optional"/>
> </xsd:attributeGroup>
> <xsd:attribute name="first" type="someDeclaredType"/>
> <xsd:attribute name="first" type="someDeclaredType"/>
> <xsd:attribute name="first" type="someDeclaredType"/>
> <xsd:attribute name="first" type="someDeclaredType"/><xsd:attribute name="first" type="someDeclaredType"/>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Commented: (AXISCPP-995) WSDL2Ws ignores attribute refs
inside of attributeGroup
Posted by "Ronak Patel (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXISCPP-995?page=comments#action_12430089 ]
Ronak Patel commented on AXISCPP-995:
-------------------------------------
Correction the schema is as follows:
<xsd:attributeGroup name="SomeGroup">
<xsd:attribute ref="first" use="required"/>
<xsd:attribute ref="second" use="required"/>
<xsd:attribute ref="third" use="optional"/>
<xsd:attribute ref="fourth" use="optional"/>
<xsd:attribute ref="fifth" use="optional"/>
<xsd:attribute ref="sixth" use="optional"/>
<xsd:attribute ref="seventh" use="optional"/>
<xsd:attribute ref="eighth" use="optional"/>
<xsd:attribute ref="ninth" use="optional"/>
<xsd:attribute ref="tenth" use="optional"/>
<xsd:attribute ref="eleventh" use="optional"/>
</xsd:attributeGroup>
<xsd:attribute name="first" type="someDeclaredType"/>
...
<xsd:attribute name="eleventh" type="someDeclaredType"/>
I was able to bypass this error by commenting out the first two lines in the createTypeInfo(TypeEntry, String) method in the WSDL2Ws.java file. Here is the complete stack trace:
java.lang.NullPointerException
at java.util.Hashtable.put(Unknown Source)
at org.apache.axis.wsdl.wsdl2ws.info.Type.setTypeForAttributeName(Type.java:277)
at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.createTypeInfo(WSDL2Ws.java:1199)
at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.getTypeInfo(WSDL2Ws.java:639)
at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.generateWrappers(WSDL2Ws.java:680)
at org.apache.axis.wsdl.wsdl2ws.WSDL2Ws.main(WSDL2Ws.java:1478)
> WSDL2Ws ignores attribute refs inside of attributeGroup
> -------------------------------------------------------
>
> Key: AXISCPP-995
> URL: http://issues.apache.org/jira/browse/AXISCPP-995
> Project: Axis-C++
> Issue Type: Bug
> Components: XML parser abstraction layer, WSDL processing - Doc
> Affects Versions: 1.6 Beta
> Environment: Windows 2000
> Reporter: Ronak Patel
> Priority: Blocker
>
> WSDL2Ws complains with a NULLPointerException when encountering the following schema block:
> <xsd:attributeGroup name="SomeGroup">
> <xsd:attribute ref="first" use="required"/>
> <xsd:attribute ref="second" use="required"/>
> <xsd:attribute ref="third" use="optional"/>
> <xsd:attribute ref="fourth" use="optional"/>
> <xsd:attribute ref="fifth" use="optional"/>
> <xsd:attribute ref="sixth" use="optional"/>
> <xsd:attribute ref="seventh" use="optional"/>
> <xsd:attribute ref="eighth" use="optional"/>
> <xsd:attribute ref="ninth" use="optional"/>
> <xsd:attribute ref="tenth" use="optional"/>
> <xsd:attribute ref="eleventh" use="optional"/>
> </xsd:attributeGroup>
> <xsd:attribute name="first" type="someDeclaredType"/>
> <xsd:attribute name="first" type="someDeclaredType"/>
> <xsd:attribute name="first" type="someDeclaredType"/>
> <xsd:attribute name="first" type="someDeclaredType"/><xsd:attribute name="first" type="someDeclaredType"/>
--
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: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org
[jira] Commented: (AXISCPP-995) WSDL2Ws ignores attribute refs
inside of attributeGroup
Posted by "nadir amra (JIRA)" <ax...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/AXISCPP-995?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12462352 ]
nadir amra commented on AXISCPP-995:
------------------------------------
Oh, I forgot to add that I updated a test case, XSD_boolean, so that it uses an attributeGroup with a reference.
> WSDL2Ws ignores attribute refs inside of attributeGroup
> -------------------------------------------------------
>
> Key: AXISCPP-995
> URL: https://issues.apache.org/jira/browse/AXISCPP-995
> Project: Axis-C++
> Issue Type: Bug
> Components: WSDL processing - Doc, XML parser abstraction layer
> Affects Versions: 1.6 Beta
> Environment: Windows 2000
> Reporter: Ronak Patel
> Priority: Blocker
> Fix For: current (nightly)
>
>
> WSDL2Ws complains with a NULLPointerException when encountering the following schema block:
> <xsd:attributeGroup name="SomeGroup">
> <xsd:attribute ref="first" use="required"/>
> <xsd:attribute ref="second" use="required"/>
> <xsd:attribute ref="third" use="optional"/>
> <xsd:attribute ref="fourth" use="optional"/>
> <xsd:attribute ref="fifth" use="optional"/>
> <xsd:attribute ref="sixth" use="optional"/>
> <xsd:attribute ref="seventh" use="optional"/>
> <xsd:attribute ref="eighth" use="optional"/>
> <xsd:attribute ref="ninth" use="optional"/>
> <xsd:attribute ref="tenth" use="optional"/>
> <xsd:attribute ref="eleventh" use="optional"/>
> </xsd:attributeGroup>
> <xsd:attribute name="first" type="someDeclaredType"/>
> <xsd:attribute name="first" type="someDeclaredType"/>
> <xsd:attribute name="first" type="someDeclaredType"/>
> <xsd:attribute name="first" type="someDeclaredType"/><xsd:attribute name="first" type="someDeclaredType"/>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org