cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Redman (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-2400) NullPointerException with wsdl2js
Date Fri, 21 Aug 2009 16:42:14 GMT

    [ https://issues.apache.org/jira/browse/CXF-2400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12746072#action_12746072
] 

Jim Redman commented on CXF-2400:
---------------------------------

 In this case the assumption of "anyType" seems valid, for example:

     <s:complexType name="ArrayOfAnyType">
        <s:sequence>
          <s:element minOccurs="0" maxOccurs="unbounded" name="anyType" nillable="true"/>
        </s:sequence>
      </s:complexType>

Doesn't have a type, but seems to hint pretty strongly that the type should be "anyType".

Since the Java generation generates "anyType" then JavaScript would also be consistent with
that code generation.  So I would say that, if possible, defaulting to "anyType" is the best
behavior.


> NullPointerException with wsdl2js
> ---------------------------------
>
>                 Key: CXF-2400
>                 URL: https://issues.apache.org/jira/browse/CXF-2400
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.2.3
>            Reporter: Jim Redman
>            Assignee: Benson Margulies
>            Priority: Blocker
>
> http://www.advosol.us/xmldademo/xml_sim/OpcXmlDaServer.asmx?WSDL
> wsdl2java works fine, wsdl2js gives the following:
> WSDLToJS Error : java.lang.NullPointerException
> org.apache.cxf.tools.common.ToolException: java.lang.NullPointerException
> 	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:272)
> 	at org.apache.cxf.tools.wsdlto.javascript.JavaScriptContainer.execute(JavaScriptContainer.java:150)
> 	at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
> 	at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:67)
> 	at org.apache.cxf.tools.wsdlto.javascript.WSDLToJavaScript.run(WSDLToJavaScript.java:60)
> 	at org.apache.cxf.tools.wsdlto.javascript.WSDLToJavaScript.main(WSDLToJavaScript.java:97)
> Caused by: java.lang.NullPointerException
> 	at org.apache.cxf.javascript.ParticleInfo.factorySetupType(ParticleInfo.java:208)
> 	at org.apache.cxf.javascript.ParticleInfo.factoryCommon(ParticleInfo.java:193)
> 	at org.apache.cxf.javascript.ParticleInfo.forLocalItem(ParticleInfo.java:157)
> 	at org.apache.cxf.javascript.types.SchemaJavascriptBuilder.complexTypeConstructorAndAccessors(SchemaJavascriptBuilder.java:196)
> 	at org.apache.cxf.javascript.types.SchemaJavascriptBuilder.generateCodeForSchema(SchemaJavascriptBuilder.java:101)
> 	at org.apache.cxf.tools.wsdlto.javascript.WSDLToJavaScriptProcessor.process(WSDLToJavaScriptProcessor.java:85)
> 	at org.apache.cxf.tools.wsdlto.javascript.JavaScriptContainer.execute(JavaScriptContainer.java:143)
> 	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:263)
> 	... 5 more

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message