|
#1
|
|||
|
|||
|
Hi,
I am using Spring 2 and AspectJ in order to dependency-inject POJOs that are persisted using Hibernate Entity Manager (using Spring 2 JPA support). So basically, the POJOs that need to be instantiated by spring are @Configurable, and everything seems to work perfectly both in J2SE JUnit tests and inside a Webapp, (I am using the compile-time weaver plugin for maven2). However, on some computers, (apparently windows Boxes, but also ubuntu linux), The application doesn't want to start (using the same JDK 5 that works on the other boxes), and reports the following problem : Error creating bean with name 'entityManagerFactory': FactoryBean which is currently in creation returned null from getObject the stacktrace is attached.Note that ContactInformation is a @Configurable class, that needs a reference to accountDao to be instantiated. (I repeat that the exact same code works fine on some other computers). It is like if there were a cyclic dependency introduced by AspectJ..... Thanks for your help, Sami Dalouche |
|
#2
|
|||
|
|||
|
For Your information, the problem arises both with Spring 2.0.2 and 2.0.1...
|
|
#3
|
|||
|
|||
|
Hmm..
Actually, this seems to be kind of the same issue as http://forum.springframework.org/showthread.php?t=21146 If someone has some additional comments to make on this issue..... |
![]() |
| Thread Tools | |
| Display Modes | |
|
|