[
http://issues.apache.org/jira/browse/TUSCANY-218?page=comments#action_12376224
]
ant elder commented on TUSCANY-218:
-----------------------------------
I don't think this is an eclipse issue and its quite easy to recreate using
what was described in TUSCANY-123 which you've just closed.
Use our helloworldwsclient sample, change the externalservice to use
interface.java and the client loctaeService call to use the externalService and
then run the client.
Here's a patch for the two changes:
Index:
C:/SCA/SVN/RN9/samples/helloworld/helloworldwsclient/src/main/java/org/apache/tuscany/samples/helloworldwsclient/HelloWorldClient.java
===================================================================
---
C:/SCA/SVN/RN9/samples/helloworld/helloworldwsclient/src/main/java/org/apache/tuscany/samples/helloworldwsclient/HelloWorldClient.java
(revision 396794)
+++
C:/SCA/SVN/RN9/samples/helloworld/helloworldwsclient/src/main/java/org/apache/tuscany/samples/helloworldwsclient/HelloWorldClient.java
(working copy)
@@ -39,7 +39,7 @@
ModuleContext moduleContext = CurrentModuleContext.getContext();
// Locate the HelloWorld service component and invoke it
- HelloWorldService helloworldService = (HelloWorldService)
moduleContext.locateService("HelloWorldServiceComponent");
+ HelloWorldService helloworldService = (HelloWorldService)
moduleContext.locateService("HelloWorldService");
String value = helloworldService.getGreetings("World");
Index:
C:/SCA/SVN/RN9/samples/helloworld/helloworldwsclient/src/main/resources/sca.module
===================================================================
---
C:/SCA/SVN/RN9/samples/helloworld/helloworldwsclient/src/main/resources/sca.module
(revision 396794)
+++
C:/SCA/SVN/RN9/samples/helloworld/helloworldwsclient/src/main/resources/sca.module
(working copy)
@@ -27,7 +27,7 @@
</component>
<externalService name="HelloWorldService">
- <interface.wsdl
interface="http://helloworldaxis.samples.tuscany.apache.org#HelloWorldServiceImpl"/>
+ <interface.java
interface="org.apache.tuscany.samples.helloworldwsclient.HelloWorldService"/>
<binding.ws
port="http://helloworldaxis.samples.tuscany.apache.org#helloworld"/>
<!--
<interface.java
interface="org.apache.tuscany.samples.helloworldwsclient.HelloWorldServiceComponent"/>
> Infinite loop in AbstractJavaComponentInvoker
> ---------------------------------------------
>
> Key: TUSCANY-218
> URL: http://issues.apache.org/jira/browse/TUSCANY-218
> Project: Tuscany
> Type: Bug
> Components: Java SCA POJO Container
> Environment: Windows XP
> Reporter: Raymond Feng
> Priority: Blocker
> Attachments: TUSCANY-218.zip
>
> I ran the test case to verify the JIRA issue TUSCANY-123 (Jim mentioned it's
> related to 124). It seems the orginal problem reported TUSCANY-123 is gone
> but now it runs into an infinite loop with the following stacks:
> at $Proxy11.ComplexDocument(Unknown Source)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:615)
> at
> org.apache.tuscany.container.java.invocation.AbstractJavaComponentInvoker.invokeTarget(AbstractJavaComponentInvoker.java:58)
> at
> org.apache.tuscany.container.java.invocation.AbstractJavaComponentInvoker.invoke(AbstractJavaComponentInvoker.java:67)
> at
> org.apache.tuscany.core.wire.impl.InvokerInterceptor.invoke(InvokerInterceptor.java:39)
> at
> org.apache.tuscany.core.wire.jdk.JDKInvocationHandler.invoke(JDKInvocationHandler.java:112)
> at $Proxy11.ComplexDocument(Unknown Source)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:615)
> at
> org.apache.tuscany.container.java.invocation.AbstractJavaComponentInvoker.invokeTarget(AbstractJavaComponentInvoker.java:58)
> at
> org.apache.tuscany.container.java.invocation.AbstractJavaComponentInvoker.invoke(AbstractJavaComponentInvoker.java:67)
> at
> org.apache.tuscany.core.wire.impl.InvokerInterceptor.invoke(InvokerInterceptor.java:39)
> at
> org.apache.tuscany.core.wire.jdk.JDKInvocationHandler.invoke(JDKInvocationHandler.java:112)
> at $Proxy11.ComplexDocument(Unknown Source)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:615)
> at
> org.apache.tuscany.container.java.invocation.AbstractJavaComponentInvoker.invokeTarget(AbstractJavaComponentInvoker.java:58)
> at
> org.apache.tuscany.container.java.invocation.AbstractJavaComponentInvoker.invoke(AbstractJavaComponentInvoker.java:67)
> at
> org.apache.tuscany.core.wire.impl.InvokerInterceptor.invoke(InvokerInterceptor.java:39)
> at
> org.apache.tuscany.core.wire.jdk.JDKInvocationHandler.invoke(JDKInvocationHandler.java:112)
> at $Proxy11.ComplexDocument(Unknown Source)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:615)
> at
> org.apache.tuscany.container.java.invocation.AbstractJavaComponentInvoker.invokeTarget(AbstractJavaComponentInvoker.java:58)null
> at
> org.apache.tuscany.container.java.invocation.AbstractJavaComponentInvoker.invoke(AbstractJavaComponentInvoker.java:67)
> at
> org.apache.tuscany.core.wire.impl.InvokerInterceptor.invoke(InvokerInterceptor.java:39)
> at
> org.apache.tuscany.core.wire.jdk.JDKInvocationHandler.invoke(JDKInvocationHandler.java:112)
> at $Proxy11.ComplexDocument(Unknown Source)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:615)
> at
> org.apache.tuscany.samples.interopdoc.InteropDocClient.invoke(InteropDocClient.java:110)
> at
> org.apache.tuscany.samples.interopdoc.InteropDocClient.main(InteropDocClient.java:80)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira