You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Srini K (JIRA)" <ji...@apache.org> on 2011/04/09 08:26:05 UTC

[jira] [Created] (CXF-3447) Error creating bean with name 'cxf': Requested bean is currently in creation: Is there an unresolvable circular reference?

Error creating bean with name 'cxf': Requested bean is currently in creation: Is there an unresolvable circular reference? 
---------------------------------------------------------------------------------------------------------------------------

                 Key: CXF-3447
                 URL: https://issues.apache.org/jira/browse/CXF-3447
             Project: CXF
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.3.3
            Reporter: Srini K


Frameworks being used: cxf with jax-rs 2.3.3, and spring 3.0.2
App Server: Tomcat 6.0

Issue occurs when using Spring AOP with AspectJ pointcuts

2011-04-09 00:31:31,673 [qtp12141980-21] ERROR DefaultListableBeanFactory  - Destroy method on bean with name '(inner bean)#1' threw an exception
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.resource.ResourceManager' defined in class path resource [META-INF/cxf/cxf.xml]: Cannot resolve reference to bean 'cxf' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'cxf': Requested bean is currently in creation: Is there an unresolvable circular reference?

===

able to resolve this by reversing the expressions (in the local build) in the following statement of BusExtensionPostProcessor::postProcessBeforeInitialization

[before the change]
null != getBus() && bean instanceof BusExtension

[after the change]
bean instanceof BusExtension && null != getBus()


--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (CXF-3447) Error creating bean with name 'cxf': Requested bean is currently in creation: Is there an unresolvable circular reference?

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-3447?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-3447.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.3.4
                   2.4
         Assignee: Daniel Kulp


Jsut flipping them like that caused a bunch of test failures for us, but I was able to come up with a slighly better fix for this. 

> Error creating bean with name 'cxf': Requested bean is currently in creation: Is there an unresolvable circular reference? 
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-3447
>                 URL: https://issues.apache.org/jira/browse/CXF-3447
>             Project: CXF
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 2.3.3
>            Reporter: Srini K
>            Assignee: Daniel Kulp
>             Fix For: 2.4, 2.3.4
>
>
> Frameworks being used: cxf with jax-rs 2.3.3, and spring 3.0.2
> App Server: Tomcat 6.0
> Issue occurs when using Spring AOP with AspectJ pointcuts
> 2011-04-09 00:31:31,673 [qtp12141980-21] ERROR DefaultListableBeanFactory  - Destroy method on bean with name '(inner bean)#1' threw an exception
> org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cxf.resource.ResourceManager' defined in class path resource [META-INF/cxf/cxf.xml]: Cannot resolve reference to bean 'cxf' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'cxf': Requested bean is currently in creation: Is there an unresolvable circular reference?
> ===
> able to resolve this by reversing the expressions (in the local build) in the following statement of BusExtensionPostProcessor::postProcessBeforeInitialization
> [before the change]
> null != getBus() && bean instanceof BusExtension
> [after the change]
> bean instanceof BusExtension && null != getBus()

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira