ADB does not properly handle empty element definition
-----------------------------------------------------

                 Key: AXIS2-1255
                 URL: http://issues.apache.org/jira/browse/AXIS2-1255
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: databinding
    Affects Versions: nightly
         Environment: Linux, Java 1.5
            Reporter: Dennis Sosnoski


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.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to