You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Benny Kristensen (JIRA)" <ax...@ws.apache.org> on 2005/01/10 14:59:12 UTC
[jira] Created: (AXIS-1755) Extending an enumeration causes NPE in WSDL2Java
Extending an enumeration causes NPE in WSDL2Java
------------------------------------------------
Key: AXIS-1755
URL: http://issues.apache.org/jira/browse/AXIS-1755
Project: Axis
Type: Bug
Components: WSDL processing
Versions: 1.2RC2
Environment: Windows XP
IBM JDK 1.3.1
Axis 1.2.RC2
Reporter: Benny Kristensen
When you 'extend' a enumeration type in xsd, WSDL2Java crashes with a NullPointerException (or in some cases with a DuplicateFileException)
example:
...........
<xs:simpleType name="State">
<xs:restriction base="xs:string">
<xs:enumeration value="dead"/>
<xs:enumeration value="alive"/>
<xs:enumeration value="sick"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="SubState">
<xs:restriction base="State">
<xs:enumeration value="sick"/>
<xs:enumeration value="dead"/>
</xs:restriction>
</xs:simpleType>
.....
--
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
[jira] Commented: (AXIS-1755) Extending an enumeration causes NPE
in WSDL2Java
Posted by "Dan Chisarick (JIRA)" <ax...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/AXIS-1755?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12465932 ]
Dan Chisarick commented on AXIS-1755:
-------------------------------------
Seems I ran into the same issue using Axis 1.3 final (Oct 5, 2005) and Axis 1.4 final (April 22, 2006). It took a while just to figure out what the problem was, and I've spent some time trying to make a fix but have so far been unsuccessful. I've attached a minimal WSDL file that demonstrates the problem. Here's what I type to kick off WSDL processing.
set AXIS_PATH=./lib/log4j-1.2.8.jar;./lib/commons-logging-1.0.4.jar;./lib/commons-discovery-0.2.jar;/lib;./lib/activation.jar;./lib/wsdl4j-1.5.1.jar;./lib/axis.jar;./lib/axis-ant.jar;./lib/jaxrpc.jar;./lib/saaj.jar
java -cp %AXIS_PATH% org.apache.axis.wsdl.WSDL2Java -o C:\temp\AxisOut -D -v -d "Application" -O 999999 c:/temp/DummyII.wsdl
Last, there are a few comments in the WSDL to reproduce the problem a second way. It may be somewhat helpful in identifying the scope of the problem, but maybe not.
> Extending an enumeration causes NPE in WSDL2Java
> ------------------------------------------------
>
> Key: AXIS-1755
> URL: https://issues.apache.org/jira/browse/AXIS-1755
> Project: Apache Axis
> Issue Type: Bug
> Components: WSDL processing
> Affects Versions: 1.2RC2
> Environment: Windows XP
> IBM JDK 1.3.1
> Axis 1.2.RC2
> Reporter: Benny Kristensen
> Attachments: DummyII.wsdl
>
>
> When you 'extend' a enumeration type in xsd, WSDL2Java crashes with a NullPointerException (or in some cases with a DuplicateFileException)
> example:
>
> ...........
> <xs:simpleType name="State">
> <xs:restriction base="xs:string">
> <xs:enumeration value="dead"/>
> <xs:enumeration value="alive"/>
> <xs:enumeration value="sick"/>
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="SubState">
> <xs:restriction base="State">
> <xs:enumeration value="sick"/>
> <xs:enumeration value="dead"/>
> </xs:restriction>
> </xs:simpleType>
> .....
--
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-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Resolved: (AXIS-1755) Extending an enumeration causes NPE in WSDL2Java
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ http://issues.apache.org/jira/browse/AXIS-1755?page=all ]
Davanum Srinivas resolved AXIS-1755:
------------------------------------
Resolution: Cannot Reproduce
Can you please upload a complete wsdl? then i will reopen the bug.
thanks,
dims
> Extending an enumeration causes NPE in WSDL2Java
> ------------------------------------------------
>
> Key: AXIS-1755
> URL: http://issues.apache.org/jira/browse/AXIS-1755
> Project: Axis
> Type: Bug
> Components: WSDL processing
> Versions: 1.2RC2
> Environment: Windows XP
> IBM JDK 1.3.1
> Axis 1.2.RC2
> Reporter: Benny Kristensen
>
> When you 'extend' a enumeration type in xsd, WSDL2Java crashes with a NullPointerException (or in some cases with a DuplicateFileException)
> example:
>
> ...........
> <xs:simpleType name="State">
> <xs:restriction base="xs:string">
> <xs:enumeration value="dead"/>
> <xs:enumeration value="alive"/>
> <xs:enumeration value="sick"/>
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="SubState">
> <xs:restriction base="State">
> <xs:enumeration value="sick"/>
> <xs:enumeration value="dead"/>
> </xs:restriction>
> </xs:simpleType>
> .....
--
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
[jira] Reopened: (AXIS-1755) Extending an enumeration causes NPE in
WSDL2Java
Posted by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/AXIS-1755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davanum Srinivas reopened AXIS-1755:
------------------------------------
Reopened..
> Extending an enumeration causes NPE in WSDL2Java
> ------------------------------------------------
>
> Key: AXIS-1755
> URL: https://issues.apache.org/jira/browse/AXIS-1755
> Project: Apache Axis
> Issue Type: Bug
> Components: WSDL processing
> Affects Versions: 1.2RC2
> Environment: Windows XP
> IBM JDK 1.3.1
> Axis 1.2.RC2
> Reporter: Benny Kristensen
> Attachments: DummyII.wsdl
>
>
> When you 'extend' a enumeration type in xsd, WSDL2Java crashes with a NullPointerException (or in some cases with a DuplicateFileException)
> example:
>
> ...........
> <xs:simpleType name="State">
> <xs:restriction base="xs:string">
> <xs:enumeration value="dead"/>
> <xs:enumeration value="alive"/>
> <xs:enumeration value="sick"/>
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="SubState">
> <xs:restriction base="State">
> <xs:enumeration value="sick"/>
> <xs:enumeration value="dead"/>
> </xs:restriction>
> </xs:simpleType>
> .....
--
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-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org
[jira] Updated: (AXIS-1755) Extending an enumeration causes NPE in
WSDL2Java
Posted by "Dan Chisarick (JIRA)" <ax...@ws.apache.org>.
[ https://issues.apache.org/jira/browse/AXIS-1755?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Chisarick updated AXIS-1755:
--------------------------------
Attachment: DummyII.wsdl
> Extending an enumeration causes NPE in WSDL2Java
> ------------------------------------------------
>
> Key: AXIS-1755
> URL: https://issues.apache.org/jira/browse/AXIS-1755
> Project: Apache Axis
> Issue Type: Bug
> Components: WSDL processing
> Affects Versions: 1.2RC2
> Environment: Windows XP
> IBM JDK 1.3.1
> Axis 1.2.RC2
> Reporter: Benny Kristensen
> Attachments: DummyII.wsdl
>
>
> When you 'extend' a enumeration type in xsd, WSDL2Java crashes with a NullPointerException (or in some cases with a DuplicateFileException)
> example:
>
> ...........
> <xs:simpleType name="State">
> <xs:restriction base="xs:string">
> <xs:enumeration value="dead"/>
> <xs:enumeration value="alive"/>
> <xs:enumeration value="sick"/>
> </xs:restriction>
> </xs:simpleType>
> <xs:simpleType name="SubState">
> <xs:restriction base="State">
> <xs:enumeration value="sick"/>
> <xs:enumeration value="dead"/>
> </xs:restriction>
> </xs:simpleType>
> .....
--
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-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org