cancel
Showing results for 
Search instead for 
Did you mean: 

Does Alfresco 1.3 officially support Spring 2.0?

tmotley
Champ in-the-making
Champ in-the-making
I ask this because I have encountered the following problem when migrating my code base to Spring 2.0. I dropped the new Spring 2.0 classes in to my classpath and got the following error on restart of my container:

java.lang.NoSuchMethodError: org.alfresco.util.transaction.SpringAwareUserTransaction.doF
inally(Lorg/springframework/transaction/interceptor/TransactionAspectSupport$TransactionInfoSmiley WinkV
        at org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransactio
n.java:409)
        at org.alfresco.repo.transaction.TransactionUtil.executeInTransaction(TransactionUtil.java:1
78)
        … 44 more


I checked the source code and see that Spring removed the doFinally() method from org.sprgfrmwk.transaction.interceptor.TransactionAspectSupport in 2.0 (it was there in 1.2.8).

They dont advertise this change in their API docs, just wondered if anyone else was aware of this?  The app ctx cannot start with this bug in place. I appreciate that Alfresco 1.3 might not be tested against Spring 2.0 yet.

thanks,

Tom M.
5 REPLIES 5

davidc
Star Contributor
Star Contributor
As you've found out, we have yet to even try Spring 2.0.

This is still the case with Alfresco v1.4.

I hope we can gain Spring 2.0 compatibility in our next release.

tmotley
Champ in-the-making
Champ in-the-making
Ok, thanks David for the clarification.

marcus
Champ in-the-making
Champ in-the-making
Bumping this to see if anyone's worked around this problem at all? I'm in the process of trying to get a grails app running on top of alfresco, however I've hit this error too.

marcus
Champ in-the-making
Champ in-the-making
For anyone playing along at home, it looks like doFinally has been replaced with "cleanupTransactionInfo"…

kevinr
Star Contributor
Star Contributor
Alfresco 2.1 (the code in HEAD SVN at the moment) supports Spring 2.0.2. So can either wait for this release or take the latest code…

Thanks,

Kevin