You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Inder Dhillon <dh...@cs.dal.ca> on 2007/04/27 03:35:36 UTC
Axis2: Problem invoking service within another service through handler--Please help
Hello
I have posted this question before also. I would really appreciate any kind
of help. I am attaching all the source files along with this mail.
I have written one handler (CallHandler) deployed in userphase in config
file axis2.xml. I tried to invoke one service within this handler so that
whenever I call any service, this service gets called automatically.
But whenever I run any client it goes into infinite loop,
I got following errors when I run any client.
>From the above errors I figured out that its not getting the response for
the 2nd service which I want to call within the handler. As It looks for the
response and as the following part of error is repeating
I have tried to extract the corresponding soap messages also and from that
also it seams that its sending the request message to the 2nd service which
I want to call within the handler but it not getting the response message.
Please see the attached file named extractmsg.txt which contains the
extracted soap messages.
I'll really appreciate if someone can help me with this and suggest me that
what should I do to get the response message from the 2nd service.
The corresponding files attached are
CallHandler.java : This is the handler java file
Client.java : This is the client file of the service which I want to invoke
from within the handler
NewService.rar : this is the zipped file containing the NewService folder (
This is the service which I want to invoke within the handler)
NewServiceStub.java : This is the automatically generated file of client
through wsdl2java command.
Build.xml : This is to compile all the above files.
CallHandler.jar : This is the jar file of handler which I placed in
CATALINA_HOME%/webapps/axis2-/WEB-INF/lib folder
Pleae help me with this problem
Thanks
Inder Dhillon
Re: Axis2: Problem invoking service within another service through handler--Please help
Posted by Sukma Agung Verdianto <sa...@gmail.com>.
Hi Inder,
Not sure about that (I haven't tried to run the code), but I suspect
the invinite loop thrown because service called by call handler is in
one axis instance&config which will call it self when its invoked and
never response.
You should ignore/disable the phase for called service, maybe from the code.
Regards,
Sukma
On 4/27/07, Inder Dhillon <dh...@cs.dal.ca> wrote:
> Hello
>
>
>
> I have posted this question before also. I would really appreciate any kind
> of help. I am attaching all the source files along with this mail.
>
>
>
> I have written one handler (CallHandler) deployed in userphase in config
> file axis2.xml. I tried to invoke one service within this handler so that
> whenever I call any service, this service gets called automatically.
>
> But whenever I run any client it goes into infinite loop,
>
> I got following errors when I run any client.
>
>
>
>
>
>
>
>
>
>
>
>
>
> From the above errors I figured out that its not getting the response for
> the 2nd service which I want to call within the handler. As It looks for the
> response and as the following part of error is repeating
>
>
>
>
>
>
>
>
>
> I have tried to extract the corresponding soap messages also and from that
> also it seams that its sending the request message to the 2nd service which
> I want to call within the handler but it not getting the response message.
> Please see the attached file named extractmsg.txt which contains the
> extracted soap messages.
>
>
>
> I'll really appreciate if someone can help me with this and suggest me that
> what should I do to get the response message from the 2nd service.
>
>
>
> The corresponding files attached are
>
> CallHandler.java : This is the handler java file
>
> Client.java : This is the client file of the service which I want to invoke
> from within the handler
>
> NewService.rar : this is the zipped file containing the NewService folder (
> This is the service which I want to invoke within the handler)
>
> NewServiceStub.java : This is the automatically generated file of client
> through wsdl2java command.
>
> Build.xml : This is to compile all the above files.
>
> CallHandler.jar : This is the jar file of handler which I placed in
> CATALINA_HOME%/webapps/axis2-/WEB-INF/lib folder
>
>
>
>
>
> Pleae help me with this problem
>
>
>
> Thanks
> Inder Dhillon
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
RE: Axis2: Problem invoking service within another service throughhandler--Please help
Posted by Inder Dhillon <dh...@cs.dal.ca>.
Hello
Thanks for reply. I am attaching the corresponding log files.
Thanks for all your time and help.
Inder
-----Original Message-----
From: Michele Mazzucco [mailto:Michele.Mazzucco@ncl.ac.uk]
Sent: Friday, April 27, 2007 5:01 AM
To: axis-user@ws.apache.org
Subject: Re: Axis2: Problem invoking service within another service
throughhandler--Please help
Inder,
instead of posting the snapshots why don't you post the logs (they are
in $CATALINA_HOME/logs)?
BTW, I see a StackOverflowError which, according to the APIs, is thrown
when a stack overflow occurs because an application recurses too
deeply.
Michele
On Thu, 2007-04-26 at 22:35 -0300, Inder Dhillon wrote:
> Hello
>
>
>
> I have posted this question before also. I would really appreciate any
> kind of help. I am attaching all the source files along with this
> mail.
>
>
>
> I have written one handler (CallHandler) deployed in userphase in
> config file axis2.xml. I tried to invoke one service within this
> handler so that whenever I call any service, this service gets called
> automatically.
>
> But whenever I run any client it goes into infinite loop,
>
> I got following errors when I run any client.
>
>
>
>
>
>
>
>
>
>
>
>
>
> From the above errors I figured out that its not getting the response
> for the 2nd service which I want to call within the handler. As It
> looks for the response and as the following part of error is
> repeating
>
>
>
>
>
>
>
>
>
> I have tried to extract the corresponding soap messages also and from
> that also it seams that its sending the request message to the 2nd
> service which I want to call within the handler but it not getting the
> response message. Please see the attached file named extractmsg.txt
> which contains the extracted soap messages.
>
>
>
> I'll really appreciate if someone can help me with this and suggest me
> that what should I do to get the response message from the 2nd
> service.
>
>
>
> The corresponding files attached are
>
> CallHandler.java : This is the handler java file
>
> Client.java : This is the client file of the service which I want to
> invoke from within the handler
>
> NewService.rar : this is the zipped file containing the NewService
> folder ( This is the service which I want to invoke within the
> handler)
>
> NewServiceStub.java : This is the automatically generated file of
> client through wsdl2java command.
>
> Build.xml : This is to compile all the above files.
>
> CallHandler.jar : This is the jar file of handler which I placed in
> CATALINA_HOME%/webapps/axis2-/WEB-INF/lib folder
>
>
>
>
>
> Pleae help me with this problem
>
>
>
> Thanks
> Inder Dhillon
>
>
> ---------------------------------------------------------------------
> 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
Re: Axis2: Problem invoking service within another service through
handler--Please help
Posted by Michele Mazzucco <Mi...@ncl.ac.uk>.
Inder,
instead of posting the snapshots why don't you post the logs (they are
in $CATALINA_HOME/logs)?
BTW, I see a StackOverflowError which, according to the APIs, is thrown
when a stack overflow occurs because an application recurses too
deeply.
Michele
On Thu, 2007-04-26 at 22:35 -0300, Inder Dhillon wrote:
> Hello
>
>
>
> I have posted this question before also. I would really appreciate any
> kind of help. I am attaching all the source files along with this
> mail.
>
>
>
> I have written one handler (CallHandler) deployed in userphase in
> config file axis2.xml. I tried to invoke one service within this
> handler so that whenever I call any service, this service gets called
> automatically.
>
> But whenever I run any client it goes into infinite loop,
>
> I got following errors when I run any client.
>
>
>
>
>
>
>
>
>
>
>
>
>
> From the above errors I figured out that its not getting the response
> for the 2nd service which I want to call within the handler. As It
> looks for the response and as the following part of error is
> repeating
>
>
>
>
>
>
>
>
>
> I have tried to extract the corresponding soap messages also and from
> that also it seams that its sending the request message to the 2nd
> service which I want to call within the handler but it not getting the
> response message. Please see the attached file named extractmsg.txt
> which contains the extracted soap messages.
>
>
>
> I’ll really appreciate if someone can help me with this and suggest me
> that what should I do to get the response message from the 2nd
> service.
>
>
>
> The corresponding files attached are
>
> CallHandler.java : This is the handler java file
>
> Client.java : This is the client file of the service which I want to
> invoke from within the handler
>
> NewService.rar : this is the zipped file containing the NewService
> folder ( This is the service which I want to invoke within the
> handler)
>
> NewServiceStub.java : This is the automatically generated file of
> client through wsdl2java command.
>
> Build.xml : This is to compile all the above files.
>
> CallHandler.jar : This is the jar file of handler which I placed in
> CATALINA_HOME%/webapps/axis2-/WEB-INF/lib folder
>
>
>
>
>
> Pleae help me with this problem
>
>
>
> Thanks
> Inder Dhillon
>
>
> ---------------------------------------------------------------------
> 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