Community   SpringSource   Projects    Downloads    Documentation    Forums    Training   Exchange   Blogs

Go Back   Spring Community Forums > Core Spring Projects > AOP (Aspect Oriented Programming)

Reply
 
Thread Tools Display Modes
  #1  
Old Jan 12th, 2007, 04:42 AM
samokk samokk is offline
Member
 
Join Date: Jul 2005
Posts: 51
Default Inconsistent problems using Spring 2 and AspectJ integration

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
Attached Files
File Type: zip stacktrace.txt.zip (49.5 KB, 1 views)
Reply With Quote
  #2  
Old Jan 12th, 2007, 05:03 AM
samokk samokk is offline
Member
 
Join Date: Jul 2005
Posts: 51
Default

For Your information, the problem arises both with Spring 2.0.2 and 2.0.1...
Reply With Quote
  #3  
Old Jan 12th, 2007, 11:17 AM
samokk samokk is offline
Member
 
Join Date: Jul 2005
Posts: 51
Default

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.....
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 08:08 AM.


Contegix provides first-class managed hosting and partial sponsorship of these forums.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.