Hi,
If the WSDL (schema really) has the value as nillable, ADB will
generate the code to handle the null value.

Ajith

On 8/29/06, robert lazarski <[EMAIL PROTECTED]> wrote:
MinOccurs=0 would fix that, right? Typically its hard to program null
as a valid value, because your not sure if its valid or not.

HTH,
Robert
http://www.braziloutsource.com/

On 8/29/06, Nirmit Desai <[EMAIL PROTECTED]> wrote:
> Hi Robert,
>
> All my fault...
>
> Thanks for pointing that one out. I found deep down somewhere one of the
> fields of an ADB bean was not being set and so was left null. And
> SOAPMonitor did not display anything as its connection to server was lost
> :) The problem was on the service side trying to serialize the results...
>
> Should Axis2 serialize null in some way instead of complaining? maybe only
> if it is declared nillable in WSDL..?
>
> Thanks,
>
> -Nirmit
>
>
>
>
>              "robert lazarski"
>              <[EMAIL PROTECTED]
>              mail.com>                                                  To
>                                        [email protected]
>              08/29/2006 04:35                                           cc
>              PM
>                                                                    Subject
>                                        Re: [Axis2] nightly exception while
>              Please respond to         invoking via stub
>              [EMAIL PROTECTED]
>                   he.org
>
>
>
>
>
>
>
>
> <snip>
> > Caused by: java.lang.NullPointerException
> >       at org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeCharacters(
> > MTOMXMLStreamWriter.java:194)
> >       at
> com.ibm.sobe.xsd.ServiceBundle$1.serialize(ServiceBundle.java:307)
> >       at
> >
> 
org.apache.axiom.om.impl.llom.OMSourcedElementImpl.internalSerializeAndConsume(
>
> > OMSourcedElementImpl.java:522)
> >       at org.apache.axiom.om.impl.llom.OMSourcedElementImpl.serialize(
> > OMSourcedElementImpl.java:529)
> >       at com.ibm.sobe.xsd.ArrayOfServiceBundle$1.serialize(
>
> Something is null. Need to see to the code to perhaps know why, but
> that should give you a start.
>
> HTH,
> Robert
> http://www.braziloutsource.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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




--
Ajith Ranabahu

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

Reply via email to