You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "Shaw, Richard A" <ri...@atkinsglobal.com> on 2008/03/26 15:28:45 UTC

WARNING: dispatch failed!

Does anybody know why I would get the following error  ?

26-Mar-2008 11:52:11 sun.reflect.GeneratedMethodAccessor19 invoke
WARNING: dispatch failed!

I have a client which communicated with a service every minute. The service reads some data from a database and returns it. A few hours ago my server started to log the error above every minute. Which suggests that it is still receveived communcation from the client evey minute, however it has stopped providing its wsdl definition. I was asking for the wsdl from my web browser just to check that the server was still running. 

I've restarted my service now and everything is working fine again (I didn't restart the client).

I'm using cxf-2.0-incubator-RC.jar from 23rd April 2007

Richard Shaw

¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤

Richard Shaw  
Technical Design Authority - Information Solutions Consultancy  
Intelligent Transport Systems 

Atkins Highways and Transportation 
Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW

Tel: +44 (0) 1372 756407 
Fax: +44 (0) 1372 740055
Mob: 07740 817586 
E-mail: richard.shaw@atkinsglobal.com

www.atkinsglobal.com/its



This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding.

The ultimate parent company of the Atkins Group is WS Atkins plc.  Registered in England No. 1885586.  Registered Office Woodcote Grove, Ashley Road, Epsom, Surrey KT18 5BW. A list of wholly owned Atkins Group companies registered in the United Kingdom can be found at http://www.atkinsglobal.com/terms_and_conditions/index.aspx

Consider the environment. Please don't print this e-mail unless you really need to.

RE: WARNING: dispatch failed!

Posted by "Shaw, Richard A" <ri...@atkinsglobal.com>.
Thanks for that - I'm not sure what has produced the warning in my log file, I don't think I have trapped it and written it to the log, I have assumed CXF has written it to the log. It hasn't written a stack trace so I'm at a loss as to where it has come from. 

It has only happened once in 2 weeks of continuous operation.

The reason I asked the question is that I thought somebody might have recognised the syntax of the log message and could have pointed me at the CXF module (or jetty, or ...) to give me some idea of what it might be. Maybe I can do a binary search of the jar files in my project to see which one contains "Dispatch failed!".

We restarted the service and it has been running fine for the last 18 hours. 

Richard Shaw

¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤

Richard Shaw  
Technical Design Authority - Information Solutions Consultancy  
Intelligent Transport Systems 

Atkins Highways and Transportation 
Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW

Tel: +44 (0) 1372 756407 
Fax: +44 (0) 1372 740055
Mob: 07740 817586 
E-mail: richard.shaw@atkinsglobal.com

www.atkinsglobal.com/its

-----Original Message-----
From: Jervis Liu [mailto:jervisliu@gmail.com] 
Sent: 27 March 2008 00:20
To: cxf-user@incubator.apache.org
Subject: Re: WARNING: dispatch failed!

Hi Shaw, it will be very helpful if you can provide the whole stack trace, as at the moment, it is hard to know where this "Dispatch failed" 
error message comes from. Certainly its sth wrong with CXF server, it can be a out-of-threads or out-of-memory problem as Glen suggested, or can be anything else for example a problem in Jetty or in Tomcat. We cant tell exactly unless we have a detailed stack trace, or a test case that can reproduce this problem (a test case would be hard as it has to be a long running process with client/server involved I guess. Simply hope you wont run into this problem again :-) )

Cheers,
Jervis

Shaw, Richard A wrote:
> Does anybody know why I would get the following error  ?
>
> 26-Mar-2008 11:52:11 sun.reflect.GeneratedMethodAccessor19 invoke
> WARNING: dispatch failed!
>
> I have a client which communicated with a service every minute. The service reads some data from a database and returns it. A few hours ago my server started to log the error above every minute. Which suggests that it is still receveived communcation from the client evey minute, however it has stopped providing its wsdl definition. I was asking for the wsdl from my web browser just to check that the server was still running. 
>
> I've restarted my service now and everything is working fine again (I didn't restart the client).
>
> I'm using cxf-2.0-incubator-RC.jar from 23rd April 2007
>
> Richard Shaw
>
> ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤
>
> Richard Shaw
> Technical Design Authority - Information Solutions Consultancy 
> Intelligent Transport Systems
>
> Atkins Highways and Transportation
> Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW
>
> Tel: +44 (0) 1372 756407
> Fax: +44 (0) 1372 740055
> Mob: 07740 817586
> E-mail: richard.shaw@atkinsglobal.com
>
> www.atkinsglobal.com/its
>
>
>
> This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding.
>
> The ultimate parent company of the Atkins Group is WS Atkins plc.  
> Registered in England No. 1885586.  Registered Office Woodcote Grove, 
> Ashley Road, Epsom, Surrey KT18 5BW. A list of wholly owned Atkins 
> Group companies registered in the United Kingdom can be found at 
> http://www.atkinsglobal.com/terms_and_conditions/index.aspx
>
> Consider the environment. Please don't print this e-mail unless you really need to.
>
>   



This message has been scanned for viruses by MailControl - (see http://bluepages.wsatkins.co.uk/?6875772)

Re: WARNING: dispatch failed!

Posted by Jervis Liu <je...@gmail.com>.
Hi Shaw, it will be very helpful if you can provide the whole stack 
trace, as at the moment, it is hard to know where this "Dispatch failed" 
error message comes from. Certainly its sth wrong with CXF server, it 
can be a out-of-threads or out-of-memory problem as Glen suggested, or 
can be anything else for example a problem in Jetty or in Tomcat. We 
cant tell exactly unless we have a detailed stack trace, or a test case 
that can reproduce this problem (a test case would be hard as it has to 
be a long running process with client/server involved I guess. Simply 
hope you wont run into this problem again :-) )

Cheers,
Jervis

Shaw, Richard A wrote:
> Does anybody know why I would get the following error  ?
>
> 26-Mar-2008 11:52:11 sun.reflect.GeneratedMethodAccessor19 invoke
> WARNING: dispatch failed!
>
> I have a client which communicated with a service every minute. The service reads some data from a database and returns it. A few hours ago my server started to log the error above every minute. Which suggests that it is still receveived communcation from the client evey minute, however it has stopped providing its wsdl definition. I was asking for the wsdl from my web browser just to check that the server was still running. 
>
> I've restarted my service now and everything is working fine again (I didn't restart the client).
>
> I'm using cxf-2.0-incubator-RC.jar from 23rd April 2007
>
> Richard Shaw
>
> ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤
>
> Richard Shaw  
> Technical Design Authority - Information Solutions Consultancy  
> Intelligent Transport Systems 
>
> Atkins Highways and Transportation 
> Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW
>
> Tel: +44 (0) 1372 756407 
> Fax: +44 (0) 1372 740055
> Mob: 07740 817586 
> E-mail: richard.shaw@atkinsglobal.com
>
> www.atkinsglobal.com/its
>
>
>
> This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding.
>
> The ultimate parent company of the Atkins Group is WS Atkins plc.  Registered in England No. 1885586.  Registered Office Woodcote Grove, Ashley Road, Epsom, Surrey KT18 5BW. A list of wholly owned Atkins Group companies registered in the United Kingdom can be found at http://www.atkinsglobal.com/terms_and_conditions/index.aspx
>
> Consider the environment. Please don't print this e-mail unless you really need to.
>
>   


Re: WARNING: dispatch failed!

Posted by Glen Mazza <gl...@verizon.net>.
Just a guess, but that sounds something like a denial-of-service
attack--you may be overquerying the web service, and it is running out
of threads as a result.

Querying the WSDL just to see if the web service is working would seem
to be inaccurate.  I can imagine the former working but the latter not
for many reasons (e.g., the database being down.)

Have you explored using asynchronous clients (links at the first
paragraph of [1])--that may provide an alternative solution for what you
are looking for.

Glen

[1] http://www.jroller.com/gmazza/date/20080308

Am Mittwoch, den 26.03.2008, 14:28 +0000 schrieb Shaw, Richard A:
> Does anybody know why I would get the following error  ?
> 
> 26-Mar-2008 11:52:11 sun.reflect.GeneratedMethodAccessor19 invoke
> WARNING: dispatch failed!
> 
> I have a client which communicated with a service every minute. The service reads some data from a database and returns it. A few hours ago my server started to log the error above every minute. Which suggests that it is still receveived communcation from the client evey minute, however it has stopped providing its wsdl definition. I was asking for the wsdl from my web browser just to check that the server was still running. 
> 
> I've restarted my service now and everything is working fine again (I didn't restart the client).
> 
> I'm using cxf-2.0-incubator-RC.jar from 23rd April 2007
> 
> Richard Shaw
> 
> ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤
> 
> Richard Shaw  
> Technical Design Authority - Information Solutions Consultancy  
> Intelligent Transport Systems 
> 
> Atkins Highways and Transportation 
> Woodcote Grove, Ashley Road, Epsom, Surrey, KT18 5BW
> 
> Tel: +44 (0) 1372 756407 
> Fax: +44 (0) 1372 740055
> Mob: 07740 817586 
> E-mail: richard.shaw@atkinsglobal.com
> 
> www.atkinsglobal.com/its
> 
> 
> 
> This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding.
> 
> The ultimate parent company of the Atkins Group is WS Atkins plc.  Registered in England No. 1885586.  Registered Office Woodcote Grove, Ashley Road, Epsom, Surrey KT18 5BW. A list of wholly owned Atkins Group companies registered in the United Kingdom can be found at http://www.atkinsglobal.com/terms_and_conditions/index.aspx
> 
> Consider the environment. Please don't print this e-mail unless you really need to.