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 "Davanum Srinivas (JIRA)" <ax...@ws.apache.org> on 2004/10/25 17:37:45 UTC

[jira] Commented: (AXIS-1568) NPE from wsdl2java if message element in WSDL file is wrong

     [ http://issues.apache.org/jira/browse/AXIS-1568?page=comments#action_54610 ]
     
Davanum Srinivas commented on AXIS-1568:
----------------------------------------

Can you please attach your complete WSDL for our testing?

thanks,
dims

> NPE from wsdl2java if message element in WSDL file is wrong
> -----------------------------------------------------------
>
>          Key: AXIS-1568
>          URL: http://issues.apache.org/jira/browse/AXIS-1568
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2 Beta
>  Environment: java version "1.4.2_04", windows XP, Ant 1.6.1
>     Reporter: Ian Dickinson
>     Priority: Minor

>
> An error in the message element of a WSDL file produces a NPE instead of a helpful error message. I had in my WSDL file:
>     <wsdl:message name="soap_wcResult">
>         <wsdl:part name="count" element="xsd:int"/>
>     </wsdl:message>
> when I should have had:
>     <wsdl:message name="soap_wcResult">
>         <wsdl:part name="count" type="xsd:int"/>
>     </wsdl:message>
> Running the wsdl2java task from Ant I got:
> Buildfile: C:\cygwin\home\projects\Nuin\examples\ws\build.xml
> generate2:
>      [echo] working directory C:\cygwin\home\projects\Nuin\examples\ws
> [axis-wsdl2java] WSDL2Java wsdl/wordcountsoap.wsdl
> [axis-wsdl2java] Parsing XML file:  wsdl/wordcountsoap.wsdl
> [axis-wsdl2java] Running Wsdl2javaAntTask with parameters:
> [axis-wsdl2java] verbose:true
> [axis-wsdl2java] debug:true
> [axis-wsdl2java] server-side:true
> [axis-wsdl2java] skeletonDeploy:false
> [axis-wsdl2java] helperGen:false
> [axis-wsdl2java] factory:null
> [axis-wsdl2java] nsIncludes:[]
> [axis-wsdl2java] nsExcludes:[]
> [axis-wsdl2java] factoryProps:[]
> [axis-wsdl2java] testCase:true
> [axis-wsdl2java] noImports:false
> [axis-wsdl2java] NStoPkg:{http://www.nuin.org/examples/wordcount.xsd=org.nuin.examples.ws, http://www.nuin.org/examples/wordcount.wsdl=org.nuin.examples.ws}
> [axis-wsdl2java] output:C:\cygwin\home\projects\nuin\examples\ws\src
> [axis-wsdl2java] protocolHandlerPkgs:
> [axis-wsdl2java] deployScope:
> [axis-wsdl2java] URL:wsdl/wordcountsoap.wsdl
> [axis-wsdl2java] all:false
> [axis-wsdl2java] typeMappingVersion:1.1
> [axis-wsdl2java] timeout:45000
> [axis-wsdl2java] failOnNetworkErrors:false
> [axis-wsdl2java] printStackTraceOnFailure:true
> [axis-wsdl2java] namespaceMappingFile:null
> [axis-wsdl2java] username:null
> [axis-wsdl2java] :passwordnull
> [axis-wsdl2java] :noWrappedtrue
> [axis-wsdl2java] :classpathnull
> [axis-wsdl2java] http.proxyHost=null
> [axis-wsdl2java] http.proxyPort=null
> [axis-wsdl2java] http.proxyUser=null
> [axis-wsdl2java] http.proxyPassword=null
> [axis-wsdl2java] socks.proxyHost=null
> [axis-wsdl2java] socks.proxyPort=null
> [axis-wsdl2java] java.lang.NullPointerException
> [axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.setMIMEInfo(SymbolTable.java:2309)
> [axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.fillParamInfo(SymbolTable.java:2174)
> [axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.getParametersFromParts(SymbolTable.java:2042)
> [axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.getOperationParameters(SymbolTable.java:1678)
> [axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.populateParameters(SymbolTable.java:1597)
> [axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:512)
> [axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:485)
> [axis-wsdl2java] at org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:462)
> [axis-wsdl2java] at org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:334)
> [axis-wsdl2java] at java.lang.Thread.run(Thread.java:534)
> BUILD FAILED: C:\cygwin\home\projects\Nuin\examples\ws\build.xml:82: Error while processing WSDL in Wsdl2javaAntTask for wsdl/wordcountsoap.wsdl
> Total time: 3 seconds

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