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 Javier Kohen <jk...@users.sourceforge.net> on 2007/01/09 03:42:47 UTC

[Axis2] async calls not passing fault exceptions with xmlbeans

I'm generating the webservice stub with WSDL2Java and the XMLBeans
binding, as the WSDL has a couple complex extensions, so I can't use
ADB.

Invoking a given method synchronously is throwing an AxisFault upon
receiving a fault from the webservice, but when using the asynchronous
call, I get a plain empty Exception:
java.lang.Exception: 
	at org.apache.axis2.description.OutInAxisOperationClient
$NonBlockingInvocationWorker.run(OutInAxisOperation.java:455)
	at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:665)
	at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:690)
	at java.lang.Thread.run(Thread.java:595)


I tried this with Axis2 1.1.1-RC1, but Axis2 1.1 seems to have the same
problem. I'm not sure where to look for the bug. The ADB binding seems
to handle this gracefully, as I use it for another webservice with no
problems.

I guess the workaround would be to use synchronous calls for now and
wrap them myself in a Runnable.

Thanks,
-- 
Javier Kohen <jk...@users.sourceforge.net>
ICQ: blashyrkh #2361802
Jabber: jkohen@jabber.org

Re: [Axis2] async calls not passing fault exceptions with xmlbeans

Posted by Davanum Srinivas <da...@gmail.com>.
Javier,

Could you please open a JIRA bug and upload your async wsdl?

thanks,
dims

On 1/8/07, Javier Kohen <jk...@users.sourceforge.net> wrote:
> I'm generating the webservice stub with WSDL2Java and the XMLBeans
> binding, as the WSDL has a couple complex extensions, so I can't use
> ADB.
>
> Invoking a given method synchronously is throwing an AxisFault upon
> receiving a fault from the webservice, but when using the asynchronous
> call, I get a plain empty Exception:
> java.lang.Exception:
>         at org.apache.axis2.description.OutInAxisOperationClient
> $NonBlockingInvocationWorker.run(OutInAxisOperation.java:455)
>         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor
> $Worker.runTask(ThreadPoolExecutor.java:665)
>         at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor
> $Worker.run(ThreadPoolExecutor.java:690)
>         at java.lang.Thread.run(Thread.java:595)
>
>
> I tried this with Axis2 1.1.1-RC1, but Axis2 1.1 seems to have the same
> problem. I'm not sure where to look for the bug. The ADB binding seems
> to handle this gracefully, as I use it for another webservice with no
> problems.
>
> I guess the workaround would be to use synchronous calls for now and
> wrap them myself in a Runnable.
>
> Thanks,
> --
> Javier Kohen <jk...@users.sourceforge.net>
> ICQ: blashyrkh #2361802
> Jabber: jkohen@jabber.org
>
>
>


-- 
Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers)

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