jnl001
May 12th, 2009, 02:42 PM
hi all...
i created a class, Item, and added a few attributes (using 'add field'). created new integration test ('new integration test...'). tried running 'mvn test' and ran into error below. The build stated all tests (9 total) ran with no errors or failures. Taking a look at the error, I didn't think the exception was valid, so i'm posting here...
thanks
Returning eagerly cached instance of singleton bean 'entityManagerFactory' that is not fully initialized yet - a consequence of a circular reference
BeanConfigurerSupport failed to create target bean 'entityManagerFactory' while configuring object of type [org.mycompany.sample.application.roo.domain.Item] (probably due to a circular reference). Proceeding without injection.
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'org.mycompany.sample.application.roo.domain
.Item': Injection of persistence fields failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInC reationException: Error creating bean with name 'entityManagerFactory': FactoryBean which is currently in creation returned null from getObject
at org.springframework.orm.jpa.support.PersistenceAnn otationBeanPostProcessor.postProcessAfterInstantia tion(PersistenceAnnotationBeanPostProcessor.java:3 10)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:956)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.autowireBeanProperties( AbstractAutowireCapableBeanFactory.java:333)
at org.springframework.beans.factory.wiring.BeanConfi gurerSupport.configureBean(BeanConfigurerSupport.j ava:140)
at org.springframework.beans.factory.aspectj.Annotati onBeanConfigurerAspect.configureBean(AnnotationBea nConfigurerAspect.aj:59)
at org.springframework.beans.factory.aspectj.Abstract DependencyInjectionAspect.ajc$afterReturning$org_s pringframework_beans_factory_aspectj_AbstractDepen dencyInjectionAspect$2$1ea6722c(AbstractDependency InjectionAspect.aj:89)
at org.mycompany.sample.application.roo.domain.Item.<init>(Item.java:14)
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Construc tor.java:513)
at org.hibernate.engine.UnsavedValueFactory.instantia te(UnsavedValueFactory.java:22)
at org.hibernate.engine.UnsavedValueFactory.getUnsave dIdentifierValue(UnsavedValueFactory.java:44)
at org.hibernate.tuple.PropertyFactory.buildIdentifie rProperty(PropertyFactory.java:44)
at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:124)
at org.hibernate.persister.entity.AbstractEntityPersi ster.<init>(AbstractEntityPersister.java:434)
at org.hibernate.persister.entity.SingleTableEntityPe rsister.<init>(SingleTableEntityPersister.java:109)
at org.hibernate.persister.PersisterFactory.createCla ssPersister(PersisterFactory.java:55)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:226)
at
.......
Static SQL for entity: org.mycompany.sample.application.roo.domain.Item
Version select: select version from item where id =?
Snapshot select: select item_.id, item_.version as version0_, item_.comments as comments0_, item_.name as name0_ from i
tem item_ where item_.id=?
Insert 0: insert into item (version, comments, name, id) values (?, ?, ?, ?)
Update 0: update item set version=?, comments=?, name=? where id=? and version=?
Delete 0: delete from item where id=? and version=?
Identity insert: insert into item (id, version, comments, name) values (null, ?, ?, ?)
Static select for entity org.mycompany.sample.application.roo.domain.Item: select item0_.id as id0_0_, item0_.version as version0_0
_, item0_.comments as comments0_0_, item0_.name as name0_0_ from item item0_ where item0_.id=?
Static select for entity org.mycompany.sample.application.roo.domain.Item: select item0_.id as id0_0_, item0_.version as version0_0
_, item0_.comments as comments0_0_, item0_.name as name0_0_ from item item0_ where item0_.id=?
Static select for entity org.mycompany.sample.application.roo.domain.Item: select item0_.id as id0_0_, item0_.version as version0_0
_, item0_.comments as comments0_0_, item0_.name as name0_0_ from item item0_ where item0_.id=?
Static select for entity org.mycompany.sample.application.roo.domain.Item: select item0_.id as id0_0_, item0_.version as version0_0
_, item0_.comments as comments0_0_, item0_.name as name0_0_ from item item0_ where item0_.id=?
Static select for entity org.mycompany.sample.application.roo.domain.Item: select item0_.id as id0_0_, item0_.version as version0_0
_, item0_.comments as comments0_0_, item0_.name as name0_0_ from item item0_ where item0_.id=?
Static select for action ACTION_MERGE on entity org.mycompany.sample.application.roo.domain.Item: select item0_.id as id0_0_, item0
_.version as version0_0_, item0_.comments as comments0_0_, item0_.name as name0_0_ from item item0_ where item0_.id=?
Static select for action ACTION_REFRESH on entity org.mycompany.sample.application.roo.domain.Item: select item0_.id as id0_0_, ite
m0_.version as version0_0_, item0_.comments as comments0_0_, item0_.name as name0_0_ from item item0_ where item0_.id=?
initializing class SessionFactoryObjectFactory
registered: ff80808121363e660121363e67950000 (unnamed)
Not binding factory to JNDI, no JNDI name configured
instantiated session factory
i created a class, Item, and added a few attributes (using 'add field'). created new integration test ('new integration test...'). tried running 'mvn test' and ran into error below. The build stated all tests (9 total) ran with no errors or failures. Taking a look at the error, I didn't think the exception was valid, so i'm posting here...
thanks
Returning eagerly cached instance of singleton bean 'entityManagerFactory' that is not fully initialized yet - a consequence of a circular reference
BeanConfigurerSupport failed to create target bean 'entityManagerFactory' while configuring object of type [org.mycompany.sample.application.roo.domain.Item] (probably due to a circular reference). Proceeding without injection.
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'org.mycompany.sample.application.roo.domain
.Item': Injection of persistence fields failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInC reationException: Error creating bean with name 'entityManagerFactory': FactoryBean which is currently in creation returned null from getObject
at org.springframework.orm.jpa.support.PersistenceAnn otationBeanPostProcessor.postProcessAfterInstantia tion(PersistenceAnnotationBeanPostProcessor.java:3 10)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:956)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.autowireBeanProperties( AbstractAutowireCapableBeanFactory.java:333)
at org.springframework.beans.factory.wiring.BeanConfi gurerSupport.configureBean(BeanConfigurerSupport.j ava:140)
at org.springframework.beans.factory.aspectj.Annotati onBeanConfigurerAspect.configureBean(AnnotationBea nConfigurerAspect.aj:59)
at org.springframework.beans.factory.aspectj.Abstract DependencyInjectionAspect.ajc$afterReturning$org_s pringframework_beans_factory_aspectj_AbstractDepen dencyInjectionAspect$2$1ea6722c(AbstractDependency InjectionAspect.aj:89)
at org.mycompany.sample.application.roo.domain.Item.<init>(Item.java:14)
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Construc tor.java:513)
at org.hibernate.engine.UnsavedValueFactory.instantia te(UnsavedValueFactory.java:22)
at org.hibernate.engine.UnsavedValueFactory.getUnsave dIdentifierValue(UnsavedValueFactory.java:44)
at org.hibernate.tuple.PropertyFactory.buildIdentifie rProperty(PropertyFactory.java:44)
at org.hibernate.tuple.entity.EntityMetamodel.<init>(EntityMetamodel.java:124)
at org.hibernate.persister.entity.AbstractEntityPersi ster.<init>(AbstractEntityPersister.java:434)
at org.hibernate.persister.entity.SingleTableEntityPe rsister.<init>(SingleTableEntityPersister.java:109)
at org.hibernate.persister.PersisterFactory.createCla ssPersister(PersisterFactory.java:55)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:226)
at
.......
Static SQL for entity: org.mycompany.sample.application.roo.domain.Item
Version select: select version from item where id =?
Snapshot select: select item_.id, item_.version as version0_, item_.comments as comments0_, item_.name as name0_ from i
tem item_ where item_.id=?
Insert 0: insert into item (version, comments, name, id) values (?, ?, ?, ?)
Update 0: update item set version=?, comments=?, name=? where id=? and version=?
Delete 0: delete from item where id=? and version=?
Identity insert: insert into item (id, version, comments, name) values (null, ?, ?, ?)
Static select for entity org.mycompany.sample.application.roo.domain.Item: select item0_.id as id0_0_, item0_.version as version0_0
_, item0_.comments as comments0_0_, item0_.name as name0_0_ from item item0_ where item0_.id=?
Static select for entity org.mycompany.sample.application.roo.domain.Item: select item0_.id as id0_0_, item0_.version as version0_0
_, item0_.comments as comments0_0_, item0_.name as name0_0_ from item item0_ where item0_.id=?
Static select for entity org.mycompany.sample.application.roo.domain.Item: select item0_.id as id0_0_, item0_.version as version0_0
_, item0_.comments as comments0_0_, item0_.name as name0_0_ from item item0_ where item0_.id=?
Static select for entity org.mycompany.sample.application.roo.domain.Item: select item0_.id as id0_0_, item0_.version as version0_0
_, item0_.comments as comments0_0_, item0_.name as name0_0_ from item item0_ where item0_.id=?
Static select for entity org.mycompany.sample.application.roo.domain.Item: select item0_.id as id0_0_, item0_.version as version0_0
_, item0_.comments as comments0_0_, item0_.name as name0_0_ from item item0_ where item0_.id=?
Static select for action ACTION_MERGE on entity org.mycompany.sample.application.roo.domain.Item: select item0_.id as id0_0_, item0
_.version as version0_0_, item0_.comments as comments0_0_, item0_.name as name0_0_ from item item0_ where item0_.id=?
Static select for action ACTION_REFRESH on entity org.mycompany.sample.application.roo.domain.Item: select item0_.id as id0_0_, ite
m0_.version as version0_0_, item0_.comments as comments0_0_, item0_.name as name0_0_ from item item0_ where item0_.id=?
initializing class SessionFactoryObjectFactory
registered: ff80808121363e660121363e67950000 (unnamed)
Not binding factory to JNDI, no JNDI name configured
instantiated session factory