axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Chisarick (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Commented: (AXIS-1755) Extending an enumeration causes NPE in WSDL2Java
Date Fri, 19 Jan 2007 01:26:30 GMT

    [ 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


Mime
View raw message