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 "Dennis Sosnoski (JIRA)" <ji...@apache.org> on 2006/09/28 07:10:52 UTC

[jira] Created: (AXIS2-1255) ADB does not properly handle empty element definition

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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


[jira] Resolved: (AXIS2-1255) ADB does not properly handle empty element definition

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ 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


[jira] Updated: (AXIS2-1255) ADB does not properly handle empty element definition

Posted by "Davanum Srinivas (JIRA)" <ji...@apache.org>.
     [ 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org