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 Eran Chinthaka <ch...@opensource.lk> on 2006/09/10 19:30:39 UTC
Re: SOLVED: Re: [Axis2] nightly exception while invoking via stub
Fixed the NPE problem.
Anne Thomas Manes wrote:
> 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 <aj...@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 <ro...@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 <ni...@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
>
>