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 "Oliver Waeldrich (JIRA)" <ax...@ws.apache.org> on 2005/06/07 14:58:42 UTC

[jira] Commented: (AXIS-1259) local xsd:group constructs are not processed properly

    [ http://issues.apache.org/jira/browse/AXIS-1259?page=comments#action_12312873 ] 

Oliver Waeldrich commented on AXIS-1259:
----------------------------------------

In the current version (Axis 1.2 / Nightly) this problem showed up again when generating the classes for the first example wsdl file. (not shure if this was fixed in an earlier version with the patch provided). At least the code generation fails because the java name for the type DerivationControl could not be resolved. (similar problem to: http://issues.apache.org/jira/secure/ViewIssue.jspa?key=AXIS-1259#action_26479)

The second example wsdl executes properly, but with no support for the SimpleRestrictionModel. Are there any known work arounds for this problem?

Parsing XML file:  C:\ressources\projects\current\eclipse\Axis_Test\test_SimpleRestrictionModel.wsdl
{http://www.w3.org/2001/XMLSchema}derivationSet>null already exists
{http://www.w3.org/2001/XMLSchema}fullDerivationSet>null already exists
{http://www.w3.org/2001/XMLSchema}blockSet>null already exists
{http://www.w3.org/2001/XMLSchema}namespaceList>null already exists
{http://www.w3.org/2001/XMLSchema}simpleDerivationSet>null already exists
Generating org\w3\www\_2001\XMLSchema\TopLevelSimpleType.java
Generating com\your_company\www\Untitled_xsd1\Foobartype.java
Generating org\w3\www\_2001\XMLSchema\DerivationControl.java
java.lang.NullPointerException
	at org.apache.axis.wsdl.toJava.JavaBeanWriter.preprocess(JavaBeanWriter.java:287)
	at org.apache.axis.wsdl.toJava.JavaBeanWriter.getImplementsText(JavaBeanWriter.java:478)
	at org.apache.axis.wsdl.toJava.JavaBeanWriter.writeFileHeader(JavaBeanWriter.java:179)
	at org.apache.axis.wsdl.toJava.JavaWriter.generate(JavaWriter.java:129)
	at org.apache.axis.wsdl.toJava.JavaBeanWriter.generate(JavaBeanWriter.java:1248)
	at org.apache.axis.wsdl.toJava.JavaTypeWriter.generate(JavaTypeWriter.java:113)
	at org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(JavaGeneratorFactory.java:421)
	at org.apache.axis.wsdl.gen.Parser.generateTypes(Parser.java:544)
	at org.apache.axis.wsdl.gen.Parser.generate(Parser.java:431)
	at org.apache.axis.wsdl.gen.Parser.access$0(Parser.java:418)
	at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361)
	at java.lang.Thread.run(Thread.java:534)

Thanks for your help.

> local xsd:group constructs are not processed properly
> -----------------------------------------------------
>
>          Key: AXIS-1259
>          URL: http://issues.apache.org/jira/browse/AXIS-1259
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: current (nightly)
>  Environment: Gentoo Linux, Blackdown JDK 1.4.1
>     Reporter: Dominic Battre
>     Assignee: Davanum Srinivas
>      Fix For: current (nightly)
>  Attachments: patch.diff, test.wsdl, test.wsdl
>
> The fix for http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26548 seems to create some problems concerning xsd:groups.
> At least WSDL2Java (cvs as of Feb 5 2004) processes the following code without complains whilst WSDL2Java (cvs as of Feb 6 2004) produces this exception:
> java org.apache.axis.wsdl.WSDL2Java --server-side --skeletonDeploy true --verbose test.wsdl
> Parsing XML file:  test.wsdl
> java.io.IOException: Type {http://www.w3.org/2001/XMLSchema}simpleRestrictionModel is referenced but not defined.
>         at org.apache.axis.wsdl.symbolTable.SymbolTable.checkForUndefined(SymbolTable.java:670)
>         at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:550)
>         at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:524)
>         at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:501)
>         at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:374)
>         at java.lang.Thread.run(Thread.java:536)
> The wsdl code creating the problem is
>  <xsd:complexType name="foobartype">
>     <xsd:sequence>
>        <xsd:group ref="xsd:simpleRestrictionModel" minOccurs="0"/>
>     </xsd:sequence>
>  </xsd:complexType>
> I will attach the whole wsdl file and the patch that was applied on Feb 6 2004.

-- 
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