You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by ram <ra...@yahoo.co.in> on 2009/12/04 17:26:11 UTC

java.io.IOException: Non nillable element

Hi,
  In my xsd's the element is declared as nillable=true

  While in serverside, i am building the response from the database. if this element is not having the data in the database, i am getting  IOException. Non nillable element

      Each time do i need to check from the database whether the value is null or not if so then i need to manually set the element.
  like the following way

if (info.getName().getFirstName() != null) {
                name.setFirstName(info.getName().getFirstName());
            } else {
                name.setFirstName("");
            }

             Its of more painfull, since in my xsd most of the elements are like nillable='true' 

                Is there any alternate for this??

                 

Thanks & Regards,
Ram
    


      The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/

Re: java.io.IOException: Non nillable element

Posted by ram <ra...@yahoo.co.in>.
Any suggestions on this ??

Thanks & Regards,
Ram
    

--- On Fri, 4/12/09, ram <ra...@yahoo.co.in> wrote:

From: ram <ra...@yahoo.co.in>
Subject: java.io.IOException: Non nillable element
To: axis-user@ws.apache.org
Date: Friday, 4 December, 2009, 9:56 PM

Hi,
  In my xsd's the element is declared as nillable=true

  While in serverside, i am building the response from the database. if this element is not having the data in the database, i am getting  IOException. Non nillable element

      Each time do i need to check from the database whether the value is null or not if so then i need to manually set the element.
  like the following way

if (info.getName().getFirstName() != null) {
                name.setFirstName(info.getName().getFirstName());
            } else {
                name.setFirstName("");
           
 }

             Its of more painfull, since in my xsd most of the elements are like nillable='true' 

                Is there any alternate for this??

                 

Thanks & Regards,
Ram
    




       
The INTERNET now has a personality. YOURS! See your Yahoo! Homepage.


      The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. http://in.yahoo.com/