axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [jira] Updated: (AXIS-1617) WSDL2Java throw NullPointerException instead of useful error message when doesn't find Part
Date Fri, 22 Oct 2004 20:14:32 GMT
The following issue has been updated:

    Updater: S├ębastien Tardif (
       Date: Fri, 22 Oct 2004 1:13 PM
             Attachment changed to docHarbor.wsdl
For a full history of the issue, see:

View the issue:

Here is an overview of the issue:
        Key: AXIS-1617
    Summary: WSDL2Java throw NullPointerException instead of useful error message when doesn't
find Part
       Type: Bug

     Status: Unassigned
   Priority: Major

    Project: Axis
             WSDL processing

   Reporter: S├ębastien Tardif

    Created: Fri, 22 Oct 2004 1:11 PM
    Updated: Fri, 22 Oct 2004 1:13 PM
Environment: cvs updated 9/23/2004

Here the parameter sent to wsdl2Java and the stack trace:

[axis-wsdl2java] WSDL2Java C:\docHarborWebServices/etc/docHarbor.wsdl
[axis-wsdl2java] Parsing XML file:  C:\docHarborWebServices/etc/docHarbor.wsdl
[axis-wsdl2java] Running Wsdl2javaAntTask with parameters:
[axis-wsdl2java]        verbose:true
[axis-wsdl2java]        debug:true
[axis-wsdl2java]        quiet:false
[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:{}
[axis-wsdl2java]        output:C:\docHarborWebServices\srcGenerated
[axis-wsdl2java]        protocolHandlerPkgs:
[axis-wsdl2java]        deployScope:Application
[axis-wsdl2java]        URL:C:\docHarborWebServices/etc/docHarbor.wsdl
[axis-wsdl2java]        all:true
[axis-wsdl2java]        typeMappingVersion:1.1
[axis-wsdl2java]        timeout:-1
[axis-wsdl2java]        failOnNetworkErrors:false
[axis-wsdl2java]        printStackTraceOnFailure:true
[axis-wsdl2java]        namespaceMappingFile:null
[axis-wsdl2java]        username:null
[axis-wsdl2java]        :passwordnull
[axis-wsdl2java]        :noWrappedfalse
[axis-wsdl2java]        :implementationClassNamenull
[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 

[axis-wsdl2java]        at 

[axis-wsdl2java]        at 

[axis-wsdl2java]        at 

[axis-wsdl2java]        at org.apache.axis.wsdl.symbolTable.SymbolTable.add(
[axis-wsdl2java]        at 

[axis-wsdl2java]        at 

[axis-wsdl2java]        at org.apache.axis.wsdl.gen.Parser$
[axis-wsdl2java]        at

The problem is that typeEntry is null, meaning it doesn't find the Part it expecting.

An error message giving the Mime component and the part that it doesn't find should be provided.
 private Use addMIMETypes(
            BindingEntry bEntry, MIMEMultipartRelated mpr, Operation op)
            throws IOException {

        Use bodyType = Use.ENCODED;
        List parts = mpr.getMIMEParts();
        Iterator i = parts.iterator();

        while (i.hasNext()) {
            MIMEPart part = (MIMEPart);
            List elems = part.getExtensibilityElements();
            Iterator j = elems.iterator();

            while (j.hasNext()) {
                Object obj =;

                if (obj instanceof MIMEContent) {
                    MIMEContent content = (MIMEContent) obj;
                    TypeEntry typeEntry = findPart(op, content.getPart());
                    String dims = typeEntry.getDimensions();

                    if ((dims.length() <= 0)
                            && (typeEntry.getRefType() != null)) {
                        Node node = typeEntry.getRefType().getNode();

                        if (getInnerCollectionComponentQName(node) != null) {
                            dims += "[]";

This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:

If you want more information on JIRA, or have a bug to report see:

View raw message