java.lang.RuntimeException: org.hibernate.HibernateException: Unable to locate current JTA transaction

JIRA | Dwain Elson | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 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 | 2 years ago | Dwain Elson
    java.lang.RuntimeException: org.hibernate.HibernateException: Unable to locate current JTA transaction
  2. 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 | 2 years ago | Dwain Elson
    java.lang.RuntimeException: org.hibernate.HibernateException: Unable to locate current JTA transaction
  3. 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
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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 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
      MultithreadedDatasourceCopier.copy
      1. org.obiba.magma.datasource.hibernate.HibernateValueTable.getValueTableState(HibernateValueTable.java:287)
      2. org.obiba.magma.datasource.hibernate.HibernateValueTable.getTimestamps(HibernateValueTable.java:197)
      3. org.obiba.magma.support.AbstractValueTableWrapper.getTimestamps(AbstractValueTableWrapper.java:114)
      4. org.obiba.magma.views.View$1.getLastUpdate(View.java:191)
      5. org.obiba.magma.views.View.getVariableEntities(View.java:400)
      6. org.obiba.magma.support.AbstractValueTableWrapper.getVariableEntities(AbstractValueTableWrapper.java:48)
      7. org.obiba.magma.support.MultithreadedDatasourceCopier.copy(MultithreadedDatasourceCopier.java:164)
      7 frames
    4. org.obiba.opal
      CommandJob.run
      1. org.obiba.opal.core.service.DataExportServiceImpl$ExportActionTemplate$ExportAction.exportTableToDatasource(DataExportServiceImpl.java:202)
      2. org.obiba.opal.core.service.DataExportServiceImpl$ExportActionTemplate$ExportAction.execute(DataExportServiceImpl.java:171)
      3. org.obiba.opal.core.magma.concurrent.LockingActionTemplate.execute(LockingActionTemplate.java:33)
      4. org.obiba.opal.core.service.DataExportServiceImpl.exportTablesToDatasource(DataExportServiceImpl.java:80)
      5. org.obiba.opal.shell.commands.CopyCommand.execute(CopyCommand.java:122)
      6. org.obiba.opal.shell.CommandJob.run(CommandJob.java:153)
      6 frames
    5. 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
    6. Java RT
      Thread.run
      1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      5. java.lang.Thread.run(Thread.java:745)
      5 frames