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 "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org> on 2007/02/02 10:39:06 UTC
[jira] Resolved: (AXIS2-1255) ADB does not properly handle empty
element definition
[ https://issues.apache.org/jira/browse/AXIS2-1255?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Amila Chinthaka Suriarachchi resolved AXIS2-1255.
-------------------------------------------------
Resolution: Fixed
have already resolve the issue.it sets an OMElement if type is not defined.
> 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org