rebuildAll exception

Hi All,
I tried to use fts add on.
I have an exception when I run rebuildAll procedure.

JMX Method com.haulmont.fts.core.jmx.FtsManager : reindexAll result
java.lang.IllegalStateException: Cannot handle entity from MAIN datastore because active transaction is for marketnewstoreDB
at com.haulmont.cuba.core.sys.persistence.PersistenceImplSupport.getInstanceContainerResourceHolder(PersistenceImplSupport.java:182)
at com.haulmont.cuba.core.sys.PersistenceImpl.registerSynchronizations(PersistenceImpl.java:267)
at com.haulmont.cuba.core.sys.TransactionImpl.(TransactionImpl.java:65)
at com.haulmont.cuba.core.sys.TransactionsImpl.get(TransactionsImpl.java:65)
at com.haulmont.cuba.core.sys.PersistenceImpl.getTransaction(PersistenceImpl.java:149)
at com.haulmont.fts.core.app.FtsSenderBean.enqueue(FtsSenderBean.java:111)
at com.haulmont.fts.core.app.FtsManager.lambda$reindexEntity$2(FtsManager.java:349)
at com.haulmont.fts.core.app.FtsManager.executeReindexInTx(FtsManager.java:479)
at com.haulmont.fts.core.app.FtsManager.reindexEntity(FtsManager.java:342)
at com.haulmont.fts.core.app.FtsManager.reindexAll(FtsManager.java:383)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198)

How can I resolve this problem?

Hi,

What the platform version are you using?

Hi Andrey ,

I’am using version 7.2

Hi.
Thank you for reporting the problem. We have created a GitHub issue.

Regards,
Natalia.

1 Like