axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "SORIDIS (JIRA)" <>
Subject [jira] Commented: (AXIS-2256) NullPointerException in JavaBeanWriter.preprocess
Date Thu, 13 Oct 2005 09:27:07 GMT
    [ ] 

SORIDIS commented on AXIS-2256:

After some tests, I found the origine of the probleme:
The NullPointerException occures during the generation of the  EmptyType class.

This is defined in an XSD file included in the WSDL.

    <xsd:simpleType name="EmptyType">
            <xsd:documentation>A type with no allowed content, used when simply the
presence of an element is significant.</xsd:documentation>
        <xsd:restriction base="xsd:string">
         	           <xsd:enumeration value=""/>       	

If i replace <xsd:enumeration value=""/> by <xsd:maxLength value="0"/> all is

So the probleme come when an enumaration is defined with a value "".

> NullPointerException in JavaBeanWriter.preprocess
> -------------------------------------------------
>          Key: AXIS-2256
>          URL:
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: 1.2.1
>  Environment: Windows Xp SP2
> Ant 1.6.1
>     Reporter: SORIDIS

> I have a big and quite complexe WSDL and during generation i encounter the following
> [wsdl2java] java.lang.NullPointerException
> [wsdl2java] at org.apache.axis.wsdl.toJava.JavaBeanWriter.preprocess(
> [wsdl2java] at org.apache.axis.wsdl.toJava.JavaBeanWriter.getImplementsText(
> [wsdl2java] at org.apache.axis.wsdl.toJava.JavaBeanWriter.writeFileHeader(
> [wsdl2java] at org.apache.axis.wsdl.toJava.JavaWriter.generate(
> [wsdl2java] at org.apache.axis.wsdl.toJava.JavaBeanWriter.generate(
> [wsdl2java] at org.apache.axis.wsdl.toJava.JavaTypeWriter.generate(
> [wsdl2java] at org.apache.axis.wsdl.toJava.JavaGeneratorFactory$Writers.generate(
> [wsdl2java] at org.apache.axis.wsdl.gen.Parser.generateTypes(
> [wsdl2java] at org.apache.axis.wsdl.gen.Parser.generate(
> [wsdl2java] at org.apache.axis.wsdl.gen.Parser.access$000(
> [wsdl2java] at org.apache.axis.wsdl.gen.Parser$
> [wsdl2java] at

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message