org.hibernate.HibernateException:

Hibernate JIRA | Harsha Pherwani | 1 decade ago
  1. 0

    HI I am geting the following errror when executing a select hql in 3.1 version (see below). However I don't get this error when I use the 3.1beta3 version (hibernate-3.1beta3.tar.gz). The scenario is I am undating a table and then reading from the table. I have used transaction while updating the table and have committed properly. We need to use the 3.1 version because we are using the 'WITH' clause in query for left outer joins which is not supported in the versions below 3.1. org.hibernate.HibernateException: at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:117) at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:105) at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1561) at org.hibernate.loader.Loader.doQuery(Loader.java:661) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:223) at org.hibernate.loader.Loader.doList(Loader.java:2147) at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2026) at org.hibernate.loader.Loader.list(Loader.java:2021) at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:94) at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1455) at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:298) at org.hibernate.impl.CriteriaImpl$Subcriteria.list(CriteriaImpl.java:143) at com.icrossing.icfeedsR3.model.scheduler.SchedulerModel.getExportConnectionForClient(SchedulerModel.java:116) at com.icrossing.icfeedsR3.operation.ClientServicesOperation.loadClientServices(ClientServicesOperation.java:93) at com.icrossing.icfeedsR3.operation.ClientServicesOperation.perform(ClientServicesOperation.java:60) at com.icrossing.framework.web.operation.OpCodeProcessor.processOperation(Unknown Source) at com.icrossing.framework.web.servlet.ControllerServlet.processRequest(Unknown Source) at com.icrossing.framework.web.servlet.ControllerServlet.doPost(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.icrossing.icfeedsR3.filters.SessionFilter.doFilter(SessionFilter.java:48) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595)

    Hibernate JIRA | 1 decade ago | Harsha Pherwani
    org.hibernate.HibernateException:
  2. 0

    HI I am geting the following errror when executing a select hql in 3.1 version (see below). However I don't get this error when I use the 3.1beta3 version (hibernate-3.1beta3.tar.gz). The scenario is I am undating a table and then reading from the table. I have used transaction while updating the table and have committed properly. We need to use the 3.1 version because we are using the 'WITH' clause in query for left outer joins which is not supported in the versions below 3.1. org.hibernate.HibernateException: at org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:117) at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:105) at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1561) at org.hibernate.loader.Loader.doQuery(Loader.java:661) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:223) at org.hibernate.loader.Loader.doList(Loader.java:2147) at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2026) at org.hibernate.loader.Loader.list(Loader.java:2021) at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:94) at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1455) at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:298) at org.hibernate.impl.CriteriaImpl$Subcriteria.list(CriteriaImpl.java:143) at com.icrossing.icfeedsR3.model.scheduler.SchedulerModel.getExportConnectionForClient(SchedulerModel.java:116) at com.icrossing.icfeedsR3.operation.ClientServicesOperation.loadClientServices(ClientServicesOperation.java:93) at com.icrossing.icfeedsR3.operation.ClientServicesOperation.perform(ClientServicesOperation.java:60) at com.icrossing.framework.web.operation.OpCodeProcessor.processOperation(Unknown Source) at com.icrossing.framework.web.servlet.ControllerServlet.processRequest(Unknown Source) at com.icrossing.framework.web.servlet.ControllerServlet.doPost(Unknown Source) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.icrossing.icfeedsR3.filters.SessionFilter.doFilter(SessionFilter.java:48) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Thread.java:595)

    Hibernate JIRA | 1 decade ago | Harsha Pherwani
    org.hibernate.HibernateException:
  3. 0

    Exception when using custom session factory implementation

    Stack Overflow | 1 year ago | Guntu
    org.hibernate.HibernateException: No Session found for current thread
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    MSSQL User Defined Data Types in Hibernate (missing column exception)

    Stack Overflow | 4 months ago | Immortaly007
    javax.persistence.PersistenceException: [PersistenceUnit: main-db-MSSql] Unable to build EntityManagerFactory
  6. 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

    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

      at org.hibernate.jdbc.ConnectionManager.getConnection()
    2. Hibernate
      CriteriaLoader.list
      1. org.hibernate.jdbc.ConnectionManager.getConnection(ConnectionManager.java:117)
      2. org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:105)
      3. org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1561)
      4. org.hibernate.loader.Loader.doQuery(Loader.java:661)
      5. org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:223)
      6. org.hibernate.loader.Loader.doList(Loader.java:2147)
      7. org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2026)
      8. org.hibernate.loader.Loader.list(Loader.java:2021)
      9. org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:94)
      9 frames
    3. Hibernate
      CriteriaImpl$Subcriteria.list
      1. org.hibernate.impl.SessionImpl.list(SessionImpl.java:1455)
      2. org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:298)
      3. org.hibernate.impl.CriteriaImpl$Subcriteria.list(CriteriaImpl.java:143)
      3 frames
    4. com.icrossing.icfeedsR3
      ClientServicesOperation.perform
      1. com.icrossing.icfeedsR3.model.scheduler.SchedulerModel.getExportConnectionForClient(SchedulerModel.java:116)
      2. com.icrossing.icfeedsR3.operation.ClientServicesOperation.loadClientServices(ClientServicesOperation.java:93)
      3. com.icrossing.icfeedsR3.operation.ClientServicesOperation.perform(ClientServicesOperation.java:60)
      3 frames
    5. com.icrossing.framework
      ControllerServlet.doPost
      1. com.icrossing.framework.web.operation.OpCodeProcessor.processOperation(Unknown Source)
      2. com.icrossing.framework.web.servlet.ControllerServlet.processRequest(Unknown Source)
      3. com.icrossing.framework.web.servlet.ControllerServlet.doPost(Unknown Source)
      3 frames
    6. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      2 frames
    7. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      2 frames
    8. com.icrossing.icfeedsR3
      SessionFilter.doFilter
      1. com.icrossing.icfeedsR3.filters.SessionFilter.doFilter(SessionFilter.java:48)
      1 frame
    9. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      8. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      8 frames
    10. Grizzly HTTP
      LeaderFollowerWorkerThread.runIt
      1. org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
      2. org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
      3. org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      4. org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
      4 frames
    11. Tomcat Util
      ThreadPool$ControlRunnable.run
      1. org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
      1 frame
    12. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:595)
      1 frame