axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sanka Samaranayke <ssa...@gmail.com>
Subject Re: calling a service from another service?
Date Thu, 25 Jan 2007 09:43:36 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thirumalachar, Shree Rangan wrote:
> <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal,
> div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt;
>  font-family:"Times New Roman";} a:link, span.MsoHyperlink
> {color:blue; text-decoration:underline;} a:visited,
> span.MsoHyperlinkFollowed {color:purple;
> text-decoration:underline;} span.EmailStyle17
> {mso-style-type:personal-compose; font-family:Arial;
> color:windowtext;} @page Section1 {size:8.5in 11.0in; margin:1.0in
> 1.25in 1.0in 1.25in;} div.Section1 {page:Section1;} -->
>
> Hi All,
>
>
>
> I am trying to call a service from another service and I am using
> ALSB for the messaging.
>
> Here is what I do:
>
> 1: My client makes a call to a service through ALSB (Client->Client
>  Proxy->Service)
>
> 2: The service then makes a call to another service through ALSB
> (Service->Client Proxy->Service)
>
>
>
> When the Service makes a call to another Service I get the
> following exception:
>
>
>
> [java] org.apache.axis2.AxisFault: BEA-380000: Internal Server
> Error
>
> [java]     at
> org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:194)
>
>
> [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:747)
>
>
> [java]     at
> org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:201)
>
>
>
> [java]     at
> org.apache.tools.ant.taskdefs.Java.execute(Java.java:104)
>
> [java]     at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>
>
> [java]     at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown
> Source)
>
> [java]     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
>
> [java]     at java.lang.reflect.Method.invoke(Method.java:585)
>
> [java]     at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
>
>
> [java]     at org.apache.tools.ant.Task.perform(Task.java:348)
>
> [java]     at org.apache.tools.ant.Target.execute(Target.java:357)
>
> [java]     at
> org.apache.tools.ant.Target.performTasks(Target.java:385)
>
> [java]     at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
>
>
> [java]     at
> org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
>
>
> [java]     at
> org.apache.tools.ant.Project.executeTargets(Project.java:1181)
>
> [java]     at
> org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
>
> [java]     at
> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
>
>
> [java]     at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>
>
> [java]     at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown
> Source)
>
> [java]     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
>
> [java]     at java.lang.reflect.Method.invoke(Method.java:585)
>
> [java]     at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
>
>
> [java]     at org.apache.tools.ant.Task.perform(Task.java:348)
>
> [java]     at org.apache.tools.ant.Target.execute(Target.java:357)
>
> [java]     at
> org.apache.tools.ant.Target.performTasks(Target.java:385)
>
> [java]     at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
>
>
> [java]     at
> org.apache.tools.ant.Project.executeTarget(Project.java:1298)
>
>
>
> [java]     at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>
>
> [java]     at
> org.apache.tools.ant.Project.executeTargets(Project.java:1181)
>
> [java]     at org.apache.tools.ant.Main.runBuild(Main.java:698)
>
> [java]     at org.apache.tools.ant.Main.startAnt(Main.java:199)
>
> [java]     at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
>
> [java]     at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
>
> [java] Caused by: org.apache.axis2.AxisFault: BEA-380000: Internal
> Server Error
>
> [java]     at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:308)
>
>
> [java]     at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:579)
>
>
> [java]     at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)
>
>
> [java]     at
> org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:95)
>
>
> [java]     at sample.pojo.rpcclient.JaguarClient.main(Unknown
> Source)
>
> [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
> [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
>
> [java]     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
>
> [java]     at java.lang.reflect.Method.invoke(Method.java:585)
>
> [java]     at
> org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
>
>
> [java]     at
> org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
>
>
> [java]     ... 32 more
>
> [java] --- Nested Exception ---
>
> [java] org.apache.axis2.AxisFault: BEA-380000: Internal Server
> Error
>
> [java]     at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:308)
>
>
> [java]     at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:579)
>
>
> [java]     at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)
>
>
> [java]     at
> org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:95)
>
>
> [java]     at sample.pojo.rpcclient.JaguarClient.main(Unknown
> Source)
>
> [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>
> [java]     at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>
>
> [java]     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
>
> [java]     at java.lang.reflect.Method.invoke(Method.java:585)
>
> [java]     at
> org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:217)
>
>
> [java]     at
> org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:152)
>
>
> [java]     at org.apache.tools.ant.taskdefs.Java.run(Java.java:747)
>
>
> [java]     at
> org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:201)
>
>
>
> [java]     at
> org.apache.tools.ant.taskdefs.Java.execute(Java.java:104)
>
> [java]     at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>
>
> [java]     at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown
> Source)
>
> [java]     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
>
> [java]     at java.lang.reflect.Method.invoke(Method.java:585)
>
> [java]     at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
>
>
> [java]     at org.apache.tools.ant.Task.perform(Task.java:348)
>
> [java]     at org.apache.tools.ant.Target.execute(Target.java:357)
>
> [java]     at
> org.apache.tools.ant.Target.performTasks(Target.java:385)
>
> [java]     at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
>
>
> [java]     at
> org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
>
>
> [java]     at
> org.apache.tools.ant.Project.executeTargets(Project.java:1181)
>
> [java]     at
> org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
>
> [java]     at
> org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:105)
>
>
> [java]     at
> org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
>
>
> [java]     at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown
> Source)
>
> [java]     at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
>
> [java]     at java.lang.reflect.Method.invoke(Method.java:585)
>
> [java]     at
> org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
>
>
> [java]     at org.apache.tools.ant.Task.perform(Task.java:348)
>
> [java]     at org.apache.tools.ant.Target.execute(Target.java:357)
>
> [java]     at
> org.apache.tools.ant.Target.performTasks(Target.java:385)
>
> [java]     at
> org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
>
>
> [java]     at
> org.apache.tools.ant.Project.executeTarget(Project.java:1298)
>
>
>
> [java]     at
> org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
>
>
> [java]     at
> org.apache.tools.ant.Project.executeTargets(Project.java:1181)
>
> [java]     at org.apache.tools.ant.Main.runBuild(Main.java:698)
>
> [java]     at org.apache.tools.ant.Main.startAnt(Main.java:199)
>
> [java]     at
> org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
>
> [java]     at
> org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
>
>
>
>
>
> Just wanted to know if axis2 allows me to call a service from
> another service?
>

Yes, nothing is preventing you from using a ServiceClient
within a service.

Best,
Sanka

>
>
> Thanks in advance.
>
>
>
> Regards,
>
> Rangan
>
>
>
> This email may contain material that is confidential, privileged
> and/or attorney work product for the sole use of the intended
> recipient. Any review, reliance or distribution by others or
> forwarding without express permission is strictly prohibited. If
> you are not the intended recipient, please contact the sender and
> delete all copies.


- --
Sanka Samaranayake
WSO2 Inc.

http://sankas.blogspot.com/
http://www.wso2.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (GNU/Linux)

iD8DBQFFuHvI/Hd0ETKdgNIRAoQ/AJwKXQadIZnUhb6YfeXW9CpzW/QP8ACePPZS
0BinupXS5zYGR6RTJwLgGFI=
=dPYm
-----END PGP SIGNATURE-----


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


Mime
View raw message