org.hibernate.HibernateException: Unable to locate current JTA transaction

JIRA | Yannick Marcon | 3 years ago
  1. 0

    Exception in thread "Index Synchronization Consumer org.obiba.opal.search.IndexSynchronizationManager$SyncConsumer@13dfc42a" org.hibernate.HibernateException: Unable to locate current JTA transaction at org.hibernate.context.internal.JTASessionContext.currentSession(JTASessionContext.java:92) at org.hibernate.internal.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:1014) at org.obiba.magma.datasource.hibernate.HibernateValueTable.getValueTableState(HibernateValueTable.java:238) at org.obiba.magma.datasource.hibernate.HibernateValueTable.getTimestamps(HibernateValueTable.java:148) at org.obiba.magma.support.AbstractValueTableWrapper.getTimestamps(AbstractValueTableWrapper.java:102) at org.obiba.magma.views.View$1.getLastUpdate(View.java:190) at org.obiba.magma.views.View.getVariableEntities(View.java:385) at org.obiba.magma.support.AbstractValueTableWrapper.getVariableEntities(AbstractValueTableWrapper.java:51) at org.obiba.magma.concurrent.ConcurrentValueTableReader.read(ConcurrentValueTableReader.java:63) at org.obiba.opal.search.es.EsValuesIndexManager$Indexer.index(EsValuesIndexManager.java:97) at org.obiba.opal.search.es.EsIndexManager$EsIndexer.run(EsIndexManager.java:191) at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:391) at org.obiba.opal.search.IndexSynchronizationManager$SyncConsumer.consume(IndexSynchronizationManager.java:229) at org.obiba.opal.search.IndexSynchronizationManager$SyncConsumer.run(IndexSynchronizationManager.java:215) at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) at java.lang.Thread.run(Thread.java:745)

    JIRA | 3 years ago | Yannick Marcon
    org.hibernate.HibernateException: Unable to locate current JTA transaction
  2. 0

    Exception in thread "Index Synchronization Consumer org.obiba.opal.search.IndexSynchronizationManager$SyncConsumer@13dfc42a" org.hibernate.HibernateException: Unable to locate current JTA transaction at org.hibernate.context.internal.JTASessionContext.currentSession(JTASessionContext.java:92) at org.hibernate.internal.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:1014) at org.obiba.magma.datasource.hibernate.HibernateValueTable.getValueTableState(HibernateValueTable.java:238) at org.obiba.magma.datasource.hibernate.HibernateValueTable.getTimestamps(HibernateValueTable.java:148) at org.obiba.magma.support.AbstractValueTableWrapper.getTimestamps(AbstractValueTableWrapper.java:102) at org.obiba.magma.views.View$1.getLastUpdate(View.java:190) at org.obiba.magma.views.View.getVariableEntities(View.java:385) at org.obiba.magma.support.AbstractValueTableWrapper.getVariableEntities(AbstractValueTableWrapper.java:51) at org.obiba.magma.concurrent.ConcurrentValueTableReader.read(ConcurrentValueTableReader.java:63) at org.obiba.opal.search.es.EsValuesIndexManager$Indexer.index(EsValuesIndexManager.java:97) at org.obiba.opal.search.es.EsIndexManager$EsIndexer.run(EsIndexManager.java:191) at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) at org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:391) at org.obiba.opal.search.IndexSynchronizationManager$SyncConsumer.consume(IndexSynchronizationManager.java:229) at org.obiba.opal.search.IndexSynchronizationManager$SyncConsumer.run(IndexSynchronizationManager.java:215) at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) at java.lang.Thread.run(Thread.java:745)

    JIRA | 3 years ago | Yannick Marcon
    org.hibernate.HibernateException: Unable to locate current JTA transaction
  3. 0

    * make a project with storage MySQL, "Opal SQL" schema * import some data * make a view on these data * export view (to any format) => JTA transaction error {code} java.lang.RuntimeException: org.hibernate.HibernateException: Unable to locate current JTA transaction at org.obiba.opal.core.service.DataExportServiceImpl.exportTablesToDatasource(DataExportServiceImpl.java:88) at org.obiba.opal.shell.commands.CopyCommand.execute(CopyCommand.java:122) at org.obiba.opal.shell.CommandJob.run(CommandJob.java:153) at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: org.hibernate.HibernateException: Unable to locate current JTA transaction at org.hibernate.context.internal.JTASessionContext.currentSession(JTASessionContext.java:92) at org.hibernate.internal.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:1014) at org.obiba.magma.datasource.hibernate.HibernateValueTable.getValueTableState(HibernateValueTable.java:287) at org.obiba.magma.datasource.hibernate.HibernateValueTable.getTimestamps(HibernateValueTable.java:197) at org.obiba.magma.support.AbstractValueTableWrapper.getTimestamps(AbstractValueTableWrapper.java:114) at org.obiba.magma.views.View$1.getLastUpdate(View.java:191) at org.obiba.magma.views.View.getVariableEntities(View.java:400) at org.obiba.magma.support.AbstractValueTableWrapper.getVariableEntities(AbstractValueTableWrapper.java:48) at org.obiba.magma.support.MultithreadedDatasourceCopier.copy(MultithreadedDatasourceCopier.java:164) at org.obiba.opal.core.service.DataExportServiceImpl$ExportActionTemplate$ExportAction.exportTableToDatasource(DataExportServiceImpl.java:202) at org.obiba.opal.core.service.DataExportServiceImpl$ExportActionTemplate$ExportAction.execute(DataExportServiceImpl.java:171) at org.obiba.opal.core.magma.concurrent.LockingActionTemplate.execute(LockingActionTemplate.java:33) at org.obiba.opal.core.service.DataExportServiceImpl.exportTablesToDatasource(DataExportServiceImpl.java:80) ... 9 more {code}

    JIRA | 1 year ago | Dwain Elson
    java.lang.RuntimeException: org.hibernate.HibernateException: Unable to locate current JTA transaction
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    * make a project with storage MySQL, "Opal SQL" schema * import some data * make a view on these data * export view (to any format) => JTA transaction error {code} java.lang.RuntimeException: org.hibernate.HibernateException: Unable to locate current JTA transaction at org.obiba.opal.core.service.DataExportServiceImpl.exportTablesToDatasource(DataExportServiceImpl.java:88) at org.obiba.opal.shell.commands.CopyCommand.execute(CopyCommand.java:122) at org.obiba.opal.shell.CommandJob.run(CommandJob.java:153) at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120) at org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: org.hibernate.HibernateException: Unable to locate current JTA transaction at org.hibernate.context.internal.JTASessionContext.currentSession(JTASessionContext.java:92) at org.hibernate.internal.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:1014) at org.obiba.magma.datasource.hibernate.HibernateValueTable.getValueTableState(HibernateValueTable.java:287) at org.obiba.magma.datasource.hibernate.HibernateValueTable.getTimestamps(HibernateValueTable.java:197) at org.obiba.magma.support.AbstractValueTableWrapper.getTimestamps(AbstractValueTableWrapper.java:114) at org.obiba.magma.views.View$1.getLastUpdate(View.java:191) at org.obiba.magma.views.View.getVariableEntities(View.java:400) at org.obiba.magma.support.AbstractValueTableWrapper.getVariableEntities(AbstractValueTableWrapper.java:48) at org.obiba.magma.support.MultithreadedDatasourceCopier.copy(MultithreadedDatasourceCopier.java:164) at org.obiba.opal.core.service.DataExportServiceImpl$ExportActionTemplate$ExportAction.exportTableToDatasource(DataExportServiceImpl.java:202) at org.obiba.opal.core.service.DataExportServiceImpl$ExportActionTemplate$ExportAction.execute(DataExportServiceImpl.java:171) at org.obiba.opal.core.magma.concurrent.LockingActionTemplate.execute(LockingActionTemplate.java:33) at org.obiba.opal.core.service.DataExportServiceImpl.exportTablesToDatasource(DataExportServiceImpl.java:80) ... 9 more {code}

    JIRA | 1 year ago | Dwain Elson
    java.lang.RuntimeException: org.hibernate.HibernateException: Unable to locate current JTA transaction

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.hibernate.HibernateException

      Unable to locate current JTA transaction

      at org.hibernate.context.internal.JTASessionContext.currentSession()
    2. Hibernate
      SessionFactoryImpl.getCurrentSession
      1. org.hibernate.context.internal.JTASessionContext.currentSession(JTASessionContext.java:92)
      2. org.hibernate.internal.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.java:1014)
      2 frames
    3. org.obiba.magma
      ConcurrentValueTableReader.read
      1. org.obiba.magma.datasource.hibernate.HibernateValueTable.getValueTableState(HibernateValueTable.java:238)
      2. org.obiba.magma.datasource.hibernate.HibernateValueTable.getTimestamps(HibernateValueTable.java:148)
      3. org.obiba.magma.support.AbstractValueTableWrapper.getTimestamps(AbstractValueTableWrapper.java:102)
      4. org.obiba.magma.views.View$1.getLastUpdate(View.java:190)
      5. org.obiba.magma.views.View.getVariableEntities(View.java:385)
      6. org.obiba.magma.support.AbstractValueTableWrapper.getVariableEntities(AbstractValueTableWrapper.java:51)
      7. org.obiba.magma.concurrent.ConcurrentValueTableReader.read(ConcurrentValueTableReader.java:63)
      7 frames
    4. org.obiba.opal
      EsIndexManager$EsIndexer.run
      1. org.obiba.opal.search.es.EsValuesIndexManager$Indexer.index(EsValuesIndexManager.java:97)
      2. org.obiba.opal.search.es.EsIndexManager$EsIndexer.run(EsIndexManager.java:191)
      2 frames
    5. Shiro
      DelegatingSubject.execute
      1. org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120)
      2. org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108)
      3. org.apache.shiro.subject.support.DelegatingSubject.execute(DelegatingSubject.java:391)
      3 frames
    6. org.obiba.opal
      IndexSynchronizationManager$SyncConsumer.run
      1. org.obiba.opal.search.IndexSynchronizationManager$SyncConsumer.consume(IndexSynchronizationManager.java:229)
      2. org.obiba.opal.search.IndexSynchronizationManager$SyncConsumer.run(IndexSynchronizationManager.java:215)
      2 frames
    7. Shiro
      SubjectRunnable.run
      1. org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120)
      2. org.apache.shiro.subject.support.SubjectRunnable.run(SubjectRunnable.java:108)
      2 frames
    8. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame