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 "vladi vladii (JIRA)" <ji...@apache.org> on 2006/11/06 10:11:37 UTC

[jira] Created: (AXIS2-1617) ADB, nillable attribut in complextype elements and error

ADB, nillable attribut in complextype elements and error
--------------------------------------------------------

                 Key: AXIS2-1617
                 URL: http://issues.apache.org/jira/browse/AXIS2-1617
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: adb
    Affects Versions: 1.1
         Environment: axis2,tomcat5.5,jdk1.5, win xp
            Reporter: vladi vladii


When I try to return null value with any element in following type, then there must be problem in axis libraries. I use ADB and in previous version it worked correctly. I m trying last Axis2 release  - 1.1. RC2.

I have this type(all elements in it are nillable):


<xs:complexType name="tuser">
  <xs:sequence>
    <xs:element name="user_name" type="tns:tuser_name" nillable="true"/>
    <xs:element name="email" type="tns:temail" nillable="true"/>
    <xs:element name="telephone" type="tns:ttelephone" nillable="true"/>
    <xs:element name="fax" type="tns:tfax" nillable="true"/>
    <xs:element name="lang" type="tns:tlang" nillable="true"/>
    <xs:element name="ico" type="tns:tico" nillable="true"></xs:element>
    <xs:element name="address1" type="tns:taddress" nillable="true"/>
    <xs:element name="address2" type="tns:taddress" nillable="true"/>
    <xs:element name="address3" type="tns:taddress" nillable="true"/>

    <xs:element name="address4" type="tns:taddress" nillable="true"/>
    <xs:element name="dic" type="tns:tdic" nillable="true"></xs:element>
    <xs:element name="contact_person" type="tns:tcontact_person"
nillable="true"></xs:element>
    <xs:element name="bank_account" type="tns:tbank_account"
nillable="true"></xs:element>
    <xs:element name="proc_info" type="tns:tproc_info"
nillable="true"></xs:element>
    <xs:element name="todo_info" type="tns:ttodo_info"
nillable="true"></xs:element>
    <xs:element name="agreement_no" type="tns:tagreement_no"
nillable="true"></xs:element>
    <xs:element name="sigla" type="tns:tsigla" nillable="true"/>
    <xs:element name="center_id" type="xs:int" nillable="true"></xs:element>
   </xs:sequence>
</xs:complexType>

This error is returned,when to any element is null value assigned:


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header/>
   <soapenv:Body>
      <soapenv:Fault>
         <faultcode>soapenv:Client</faultcode>
         <faultstring>java.lang.RuntimeException: testValue cannot be null !!</faultstring>
         <detail/>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>

-- 
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] Commented: (AXIS2-1617) ADB, nillable attribut in complextype elements and error

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/AXIS2-1617?page=comments#action_12459265 ] 
            
Amila Chinthaka Suriarachchi commented on AXIS2-1617:
-----------------------------------------------------

can you please attach your wsdl and xsd files.

> ADB, nillable attribut in complextype elements and error
> --------------------------------------------------------
>
>                 Key: AXIS2-1617
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1617
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.1
>         Environment: axis2,tomcat5.5,jdk1.5, win xp
>            Reporter: vladi vladii
>
> When I try to return null value with any element in following type, then there must be problem in axis libraries. I use ADB and in previous version it worked correctly. I m trying last Axis2 release  - 1.1. RC2.
> I have this type(all elements in it are nillable):
> <xs:complexType name="tuser">
>   <xs:sequence>
>     <xs:element name="user_name" type="tns:tuser_name" nillable="true"/>
>     <xs:element name="email" type="tns:temail" nillable="true"/>
>     <xs:element name="telephone" type="tns:ttelephone" nillable="true"/>
>     <xs:element name="fax" type="tns:tfax" nillable="true"/>
>     <xs:element name="lang" type="tns:tlang" nillable="true"/>
>     <xs:element name="ico" type="tns:tico" nillable="true"></xs:element>
>     <xs:element name="address1" type="tns:taddress" nillable="true"/>
>     <xs:element name="address2" type="tns:taddress" nillable="true"/>
>     <xs:element name="address3" type="tns:taddress" nillable="true"/>
>     <xs:element name="address4" type="tns:taddress" nillable="true"/>
>     <xs:element name="dic" type="tns:tdic" nillable="true"></xs:element>
>     <xs:element name="contact_person" type="tns:tcontact_person"
> nillable="true"></xs:element>
>     <xs:element name="bank_account" type="tns:tbank_account"
> nillable="true"></xs:element>
>     <xs:element name="proc_info" type="tns:tproc_info"
> nillable="true"></xs:element>
>     <xs:element name="todo_info" type="tns:ttodo_info"
> nillable="true"></xs:element>
>     <xs:element name="agreement_no" type="tns:tagreement_no"
> nillable="true"></xs:element>
>     <xs:element name="sigla" type="tns:tsigla" nillable="true"/>
>     <xs:element name="center_id" type="xs:int" nillable="true"></xs:element>
>    </xs:sequence>
> </xs:complexType>
> This error is returned,when to any element is null value assigned:
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>    <soapenv:Header/>
>    <soapenv:Body>
>       <soapenv:Fault>
>          <faultcode>soapenv:Client</faultcode>
>          <faultstring>java.lang.RuntimeException: testValue cannot be null !!</faultstring>
>          <detail/>
>       </soapenv:Fault>
>    </soapenv:Body>
> </soapenv:Envelope>

-- 
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-1617) ADB, nillable attribut in complextype elements and error

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIS2-1617?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Amila Chinthaka Suriarachchi resolved AXIS2-1617.
-------------------------------------------------

    Resolution: Fixed

we will repone this if you attach your wsdl (and skelton )and still have the problem.

as I understood (I guess) you have set nillable true for an any element and set it to null. in any element there is no nillble attribute. so you have to set it to minOccurs 0. 

> ADB, nillable attribut in complextype elements and error
> --------------------------------------------------------
>
>                 Key: AXIS2-1617
>                 URL: https://issues.apache.org/jira/browse/AXIS2-1617
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.1
>         Environment: axis2,tomcat5.5,jdk1.5, win xp
>            Reporter: vladi vladii
>         Assigned To: Amila Chinthaka Suriarachchi
>
> When I try to return null value with any element in following type, then there must be problem in axis libraries. I use ADB and in previous version it worked correctly. I m trying last Axis2 release  - 1.1. RC2.
> I have this type(all elements in it are nillable):
> <xs:complexType name="tuser">
>   <xs:sequence>
>     <xs:element name="user_name" type="tns:tuser_name" nillable="true"/>
>     <xs:element name="email" type="tns:temail" nillable="true"/>
>     <xs:element name="telephone" type="tns:ttelephone" nillable="true"/>
>     <xs:element name="fax" type="tns:tfax" nillable="true"/>
>     <xs:element name="lang" type="tns:tlang" nillable="true"/>
>     <xs:element name="ico" type="tns:tico" nillable="true"></xs:element>
>     <xs:element name="address1" type="tns:taddress" nillable="true"/>
>     <xs:element name="address2" type="tns:taddress" nillable="true"/>
>     <xs:element name="address3" type="tns:taddress" nillable="true"/>
>     <xs:element name="address4" type="tns:taddress" nillable="true"/>
>     <xs:element name="dic" type="tns:tdic" nillable="true"></xs:element>
>     <xs:element name="contact_person" type="tns:tcontact_person"
> nillable="true"></xs:element>
>     <xs:element name="bank_account" type="tns:tbank_account"
> nillable="true"></xs:element>
>     <xs:element name="proc_info" type="tns:tproc_info"
> nillable="true"></xs:element>
>     <xs:element name="todo_info" type="tns:ttodo_info"
> nillable="true"></xs:element>
>     <xs:element name="agreement_no" type="tns:tagreement_no"
> nillable="true"></xs:element>
>     <xs:element name="sigla" type="tns:tsigla" nillable="true"/>
>     <xs:element name="center_id" type="xs:int" nillable="true"></xs:element>
>    </xs:sequence>
> </xs:complexType>
> This error is returned,when to any element is null value assigned:
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>    <soapenv:Header/>
>    <soapenv:Body>
>       <soapenv:Fault>
>          <faultcode>soapenv:Client</faultcode>
>          <faultstring>java.lang.RuntimeException: testValue cannot be null !!</faultstring>
>          <detail/>
>       </soapenv:Fault>
>    </soapenv:Body>
> </soapenv:Envelope>

-- 
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] Assigned: (AXIS2-1617) ADB, nillable attribut in complextype elements and error

Posted by "Amila Chinthaka Suriarachchi (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/AXIS2-1617?page=all ]

Amila Chinthaka Suriarachchi reassigned AXIS2-1617:
---------------------------------------------------

    Assignee: Amila Chinthaka Suriarachchi

> ADB, nillable attribut in complextype elements and error
> --------------------------------------------------------
>
>                 Key: AXIS2-1617
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1617
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.1
>         Environment: axis2,tomcat5.5,jdk1.5, win xp
>            Reporter: vladi vladii
>         Assigned To: Amila Chinthaka Suriarachchi
>
> When I try to return null value with any element in following type, then there must be problem in axis libraries. I use ADB and in previous version it worked correctly. I m trying last Axis2 release  - 1.1. RC2.
> I have this type(all elements in it are nillable):
> <xs:complexType name="tuser">
>   <xs:sequence>
>     <xs:element name="user_name" type="tns:tuser_name" nillable="true"/>
>     <xs:element name="email" type="tns:temail" nillable="true"/>
>     <xs:element name="telephone" type="tns:ttelephone" nillable="true"/>
>     <xs:element name="fax" type="tns:tfax" nillable="true"/>
>     <xs:element name="lang" type="tns:tlang" nillable="true"/>
>     <xs:element name="ico" type="tns:tico" nillable="true"></xs:element>
>     <xs:element name="address1" type="tns:taddress" nillable="true"/>
>     <xs:element name="address2" type="tns:taddress" nillable="true"/>
>     <xs:element name="address3" type="tns:taddress" nillable="true"/>
>     <xs:element name="address4" type="tns:taddress" nillable="true"/>
>     <xs:element name="dic" type="tns:tdic" nillable="true"></xs:element>
>     <xs:element name="contact_person" type="tns:tcontact_person"
> nillable="true"></xs:element>
>     <xs:element name="bank_account" type="tns:tbank_account"
> nillable="true"></xs:element>
>     <xs:element name="proc_info" type="tns:tproc_info"
> nillable="true"></xs:element>
>     <xs:element name="todo_info" type="tns:ttodo_info"
> nillable="true"></xs:element>
>     <xs:element name="agreement_no" type="tns:tagreement_no"
> nillable="true"></xs:element>
>     <xs:element name="sigla" type="tns:tsigla" nillable="true"/>
>     <xs:element name="center_id" type="xs:int" nillable="true"></xs:element>
>    </xs:sequence>
> </xs:complexType>
> This error is returned,when to any element is null value assigned:
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>    <soapenv:Header/>
>    <soapenv:Body>
>       <soapenv:Fault>
>          <faultcode>soapenv:Client</faultcode>
>          <faultstring>java.lang.RuntimeException: testValue cannot be null !!</faultstring>
>          <detail/>
>       </soapenv:Fault>
>    </soapenv:Body>
> </soapenv:Envelope>

-- 
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