Announcement Announcement Module
Collapse
No announcement yet.
Circular Reference with Spring3.0.0.RELEASE in Debian Squeeze Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Circular Reference with Spring3.0.0.RELEASE in Debian Squeeze

    Hello guys,

    Here in company we are facing a weird problem in a web application. It uses Spring 3.0.0.RELEASE to dependency injection and transaction management (with Hibernate).

    At deploying the WAR in a new server (Debian Squeeze 64 bits, JRE 1.5, JBoss 4.2.3.GA) occurs an error of Circular Reference in the creation of some Beans.

    The weird thing is that if we use the same WAR file and deploy it to the same JBoss (copied from this server) in our work stations (Windows XP 32 bits) or in another server (Debian Lenny 32 bits), it works! JBoss deploys correctly and it is possible to access the application.

    We believe that the problem is the ambience, mainly Debian Squeeze 64 bits.

    Server 1) Debian Squeeze 64 bits, JRE 1.5 (both 32 and 64 bits), JBoss 4.2.3.GA, 4GB RAM
    Server 2) Debian Lenny 32 bits, JRE 1.5 32 bits, JBoss 4.2.3.GA, 2GB RAM

    The server 1 is virtualized in XenServer 6.0.2 and the server 2 is virtualized in VMWare Server 2.

    Does anybody passed through this kind of problem?

    Code:
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'parecerBO' defined in file [/var/jboss-4.2.3.GA/server/default/tmp/deploy/tmp1059788289477807712SIIAC-exp.war/WEB-INF/classes/br/gov/caixa/siiac/bo/impl/ParecerBO.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'buildTemplateParecerBO' defined in file [/var/jboss-4.2.3.GA/server/default/tmp/deploy/tmp1059788289477807712SIIAC-exp.war/WEB-INF/classes/br/gov/caixa/siiac/bo/impl/BuildTemplateParecerBO.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'definedLanguage' defined in file [/var/jboss-4.2.3.GA/server/default/tmp/deploy/tmp1059788289477807712SIIAC-exp.war/WEB-INF/classes/br/gov/caixa/siiac/util/DefinedLanguage.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'parecerBO': Requested bean is currently in creation: Is there an unresolvable circular reference?
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:309)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByName(AbstractAutowireCapableBeanFactory.java:1085)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1035)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
    	... 100 more
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'buildTemplateParecerBO' defined in file [/var/jboss-4.2.3.GA/server/default/tmp/deploy/tmp1059788289477807712SIIAC-exp.war/WEB-INF/classes/br/gov/caixa/siiac/bo/impl/BuildTemplateParecerBO.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'definedLanguage' defined in file [/var/jboss-4.2.3.GA/server/default/tmp/deploy/tmp1059788289477807712SIIAC-exp.war/WEB-INF/classes/br/gov/caixa/siiac/util/DefinedLanguage.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'parecerBO': Requested bean is currently in creation: Is there an unresolvable circular reference?
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
    	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByName(AbstractAutowireCapableBeanFactory.java:1085)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1035)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
    	... 106 more
    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'definedLanguage' defined in file [/var/jboss-4.2.3.GA/server/default/tmp/deploy/tmp1059788289477807712SIIAC-exp.war/WEB-INF/classes/br/gov/caixa/siiac/util/DefinedLanguage.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'parecerBO': Requested bean is currently in creation: Is there an unresolvable circular reference?
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
    	at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
    	at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByName(AbstractAutowireCapableBeanFactory.java:1085)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1035)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
    	... 114 more
    Caused by: org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'parecerBO': Requested bean is currently in creation: Is there an unresolvable circular reference?
    	at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:251)
    	at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireByName(AbstractAutowireCapableBeanFactory.java:1085)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1035)
    	at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
    	... 122 more
    PS: Stacktrace cut because of the post length limitations of the forum.

    Thank you very much!

    Best Regards,
    Thiago Colebrusco
    Last edited by thiagocolebrusco; Aug 9th, 2012, 06:02 PM.

  • #2
    Did you compile it with JDK 32 bit ? I am wondering whether it might be that If your JDK is 32 bits, it should work on 32 bit environment.

    Comment

    Working...
    X