[
https://issues.apache.org/jira/browse/AXIS2-1255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Davanum Srinivas updated AXIS2-1255:
------------------------------------
Assignee: Amila Chinthaka Suriarachchi
> ADB does not properly handle empty element definition
> -----------------------------------------------------
>
> Key: AXIS2-1255
> URL: https://issues.apache.org/jira/browse/AXIS2-1255
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: databinding
> Affects Versions: nightly
> Environment: Linux, Java 1.5
> Reporter: Dennis Sosnoski
> Assigned To: Amila Chinthaka Suriarachchi
>
> ADB is not able to handle empty schema element definitions of this form:
>
> <element name="getTypes"/>
> According to the schema rules, this should be interpreted as an element that
> allows unrestricted content (including no content at all). ADB complains at
> code generation time:
> [java] WARNING: Could not find any schema type associated with the
> Element '{http://ws.sosnoski.com/library/wsdl}getTypes'
> and at runtime throws an exception if a value has not been set for the
> generated localGetTypes field:
> [java] Exception in thread "main" java.lang.NullPointerException
> [java] at
> org.apache.axis2.databinding.utils.ConverterUtil.convertToString(ConverterUtil.java:178)
> [java] at
> com.sosnoski.ws.library.wsdl.GetTypes$1.serialize(GetTypes.java:95)
> [java] at
> org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerializeAndConsume(OMSourcedElementImpl.java:514)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]