[ 
https://issues.apache.org/jira/browse/TAP5-1772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13719058#comment-13719058
 ] 

Howard M. Lewis Ship commented on TAP5-1772:
--------------------------------------------

There's supposed to be checks to prevent these kinds of endless loops.
                
> IOC Circular dependency results in StackOverflowError
> -----------------------------------------------------
>
>                 Key: TAP5-1772
>                 URL: https://issues.apache.org/jira/browse/TAP5-1772
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-ioc
>    Affects Versions: 5.3
>            Reporter: Denis Stepanov
>
> ERROR org.apache.tapestry5.ioc.Registry - java.lang.StackOverflowError
> ERROR org.apache.tapestry5.ioc.Registry - Operations trace:
> ERROR org.apache.tapestry5.ioc.Registry - [ 1] Resolving object of type 
> org.test.ServiceA using MasterObjectProvider
> ERROR org.apache.tapestry5.ioc.Registry - [ 2] Creating non-proxied instance 
> of service ServiceA
> ERROR org.apache.tapestry5.ioc.Registry - [ 3] Creating plan to instantiate 
> org.test.ServiceA via public org.test.ServiceA()
> ERROR org.apache.tapestry5.ioc.Registry - [ 4] Calculating possible injection 
> value for field org.test.ServiceA.serviceB(org.test.ServiceB)
> ERROR org.apache.tapestry5.ioc.Registry - [ 5] Resolving object of type 
> org.test.ServiceB using MasterObjectProvider
> ERROR org.apache.tapestry5.ioc.Registry - [ 6] Creating non-proxied instance 
> of service ServiceB
> ERROR org.apache.tapestry5.ioc.Registry - [ 7] Creating plan to instantiate 
> org.test.ServiceB via public org.test.ServiceB()
> ERROR org.apache.tapestry5.ioc.Registry - [ 8] Calculating possible injection 
> value for field org.test.ServiceB.serviceA (org.test.ServiceA)
> ERROR org.apache.tapestry5.ioc.Registry - [ 9] Resolving object of type 
> org.test.ServiceA using MasterObjectProvider
> ERROR org.apache.tapestry5.ioc.Registry - [10] Creating non-proxied instance 
> of service ServiceA
> goto 3

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to