axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anne Thomas Manes" <atma...@gmail.com>
Subject Re: SOLVED: Re: [Axis2] nightly exception while invoking via stub
Date Tue, 29 Aug 2006 23:08:38 GMT
Even though this was caused by user error, Axis2 should not generate
an NPE. Please file a JIRA.

Anne

On 8/29/06, Ajith Ranabahu <ajith.ranabahu@gmail.com> wrote:
> 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 <robertlazarski@gmail.com> 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 <nirdesai@us.ibm.com> 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"
> > >              <robertlazarski@g
> > >              mail.com>                                                 
To
> > >                                        axis-user@ws.apache.org
> > >              08/29/2006 04:35                                           cc
> > >              PM
> > >                                                                    Subject
> > >                                        Re: [Axis2] nightly exception while
> > >              Please respond to         invoking via stub
> > >              axis-user@ws.apac
> > >                   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: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
> --
> Ajith Ranabahu
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message