Re: _returnMessageContext is being set to null

Kishanthan Thangarajah <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <CAHt68vFX-UzTQ-eUhJtGQCq-q=JrdwEk0AJNJh63gyikRhJ7pw@mail.gmail.com>
Hi,

On Wed, Dec 12, 2012 at 7:08 PM, Ivan Furdi <[email protected]> wrote:

> Hi,
>
> can someone help me figure this one out?
>
> When calling generated client stub, _returnMessageContext is set to null,
> and next command throws null pointer exception.
>
> When executing through debugger, everything works fine.
>

One possible reason may be that you are invoking using the client in
an asynchronous manner (ie non-blocking). As you said, this is where it
works when debugging.

Thanks,
Kishanthan.



>
> org.apache.axis2.context.**MessageContext _returnMessageContext =
> _operationClient.**getMessageContext(org.apache.**
> axis2.wsdl.WSDLConstants.**MESSAGE_LABEL_IN_VALUE);
> org.apache.axiom.soap.**SOAPEnvelope _returnEnv = _returnMessageContext.**
> getEnvelope();
>
>
> Can someone tell me why is this happening?
>
> Thx,
> Ivan
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.**apache.org<[email protected]>
> For additional commands, e-mail: [email protected]
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.