axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From axis-...@ws.apache.org
Subject [jira] Created: (AXIS-1568) NPE from wsdl2java if message element in WSDL file is wrong
Date Wed, 22 Sep 2004 11:23:38 GMT
Message:

  A new issue has been created in JIRA.

---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/AXIS-1568

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: AXIS-1568
    Summary: NPE from wsdl2java if message element in WSDL file is wrong
       Type: Bug

     Status: Unassigned
   Priority: Minor

    Project: Axis
 Components: 
             WSDL processing
   Versions:
             1.2 Beta

   Assignee: 
   Reporter: Ian Dickinson

    Created: Wed, 22 Sep 2004 4:23 AM
    Updated: Wed, 22 Sep 2004 4:23 AM
Environment: java version "1.4.2_04", windows XP, Ant 1.6.1

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



---------------------------------------------------------------------
JIRA INFORMATION:
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


Mime
View raw message