You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Jim Marino (JIRA)" <tu...@ws.apache.org> on 2006/04/25 22:06:03 UTC

[jira] Resolved: (TUSCANY-218) Infinite loop in AbstractJavaComponentInvoker

     [ http://issues.apache.org/jira/browse/TUSCANY-218?page=all ]
     
Jim Marino resolved TUSCANY-218:
--------------------------------

    Resolution: Fixed

This was due to a dumb mistake on my part - failing to check that the targetType was the correct one for each wire builder in WireBuilderSupport, so all wire builders were run on each connect call and the last won. In this case, the JavaTargetWireBuilder was setting an invoker on the web service es since it was the last builder, which caused the infitite loop.

I've verified this with a testcase in core/extensions.  If this does not work for the sample, please let me know and we will need to modify the testcase to properly verify.

> 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