SourceForge.net Logo
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
Reporter: AJAY KUMAR CHOUDHARY
Votes: 0
Watchers: 1
Operations

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

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(SpringSyncTransactionFactory.java:105)
at org.compass.spring.transaction.SpringSyncTransactionFactory.getTransactionBoundSession(SpringSyncTransactionFactory.java:82)
at org.compass.core.impl.DefaultCompassSession.close(DefaultCompassSession.java:756)
at org.compass.spring.transaction.SpringSyncTransaction$SpringTransactionSynchronization.afterCompletion(SpringSyncTransaction.java:264)
at org.springframework.transaction.support.TransactionSynchronizationUtils.invokeAfterCompletion(TransactionSynchronizationUtils.java:168)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.invokeAfterCompletion(AbstractPlatformTransactionManager.java:1002)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerAfterCompletion(AbstractPlatformTransactionManager.java:977)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:806)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:730)
at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:504)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:292)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)

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