Main Overview Wiki Issues Forum Build Fisheye
Issue Details (XML | Word | Printable)

Key: CMP-946
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Shay Banon
Votes: 0
Watchers: 1

If you were logged in you would be able to see more operations.

Compass Transaction Synchronization throwing error with Spring 4.3.17

Created: 21/May/18 02:07 PM   Updated: 03/Jun/18 12:26 PM
Component/s: Compass::Spring
Affects Version/s: 2.2.0 GA
Fix Version/s: None

Environment: Linux and Windows

 Description  « Hide
Everything works with Spring 4.2.4 with Compass 2.2.0 but recently we have upgraded spring from 4.2.4 to 4.3.17 and facing transaction issue and upon analyzing it looks like spring is closing the transaction thinking that the transaction is owned by spring not by compass.

Following exception is observed in the log

=== 2018-05-16 20:20:46,746 [localhost-startStop-1] ERROR TransactionSynchronizationUtils - TransactionSynchronization.afterCompletion threw exception
org.compass.core.transaction.TransactionException: Either spring trnasction synchronization is not active, or a spring transaction has not been started, you might want to check if transactionManager is set on LocalCompassBean configuration, so compass can start one by itself
at org.compass.spring.transaction.SpringSyncTransactionFactory.lookupTransactionSynchronization(
at org.compass.spring.transaction.SpringSyncTransactionFactory.getTransactionBoundSession(
at org.compass.core.impl.DefaultCompassSession.close(
at org.compass.spring.transaction.SpringSyncTransaction$SpringTransactionSynchronization.afterCompletion(
at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(

Kindly help us in resolving the issue with Spring 4.3.17

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
AJAY KUMAR CHOUDHARY added a comment - 03/Jun/18 12:26 PM
We are in serious trouble as application is moving form spring 4.2.4 to 4.3.17 and looks like compass 2.2.0 is not compatible with Spring 4.3.17 transaction. Currently we are not in a position to move out from compass. We have to find a way out with compass only atleast for the current release and alter we can think of moving to ES or Solr.

Kindly suggest or provide us a patch which is compatible with Spring 4.3.17