AnsweredAssumed Answered

Does Alfresco 1.3 officially support Spring 2.0?

Question asked by tmotley on Oct 25, 2006
Latest reply on Apr 23, 2007 by kevinr
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$TransactionInfo;)V
        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.

Outcomes