Uploaded image for project: 'MyCoRe'
  1. MCR-902

DB restart leads to hibernate.TransactionException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2015.02, 2015.05.0
    • Fix Version/s: 2015.05.0
    • Component/s: mycore-base
    • Labels:
      None
    • Environment:

      current MIR version using mycore trunk and postgesql

      Description

      I get the following exception if database is restartet while my MIR application is running:

      org.hibernate.TransactionException: Already have an associated managed connection
      	org.hibernate.engine.transaction.internal.jdbc.JdbcTransaction.doBegin(JdbcTransaction.java:65)
      	org.hibernate.engine.transaction.spi.AbstractTransactionImpl.begin(AbstractTransactionImpl.java:162)
      	org.hibernate.internal.SessionImpl.beginTransaction(SessionImpl.java:1435)
      	sun.reflect.GeneratedMethodAccessor99.invoke(Unknown Source)
      	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	java.lang.reflect.Method.invoke(Method.java:606)
      	org.hibernate.context.internal.ThreadLocalSessionContext$TransactionProtectionWrapper.invoke(ThreadLocalSessionContext.java:356)
      	com.sun.proxy.$Proxy5.beginTransaction(Unknown Source)
      	org.mycore.common.MCRSession.beginTransaction(MCRSession.java:409)
      	org.mycore.frontend.servlets.MCRServlet.processRenderingPhase(MCRServlet.java:403)
      	org.mycore.frontend.servlets.MCRServlet.doGetPost(MCRServlet.java:309)
      	org.mycore.frontend.servlets.MCRServlet.doGet(MCRServlet.java:166)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      	org.mycore.frontend.filter.MCRUserAgentFilter.doFilter(MCRUserAgentFilter.java:69)
      	org.mycore.common.xml.MCRURIResolverFilter.doFilter(MCRURIResolverFilter.java:83)
      	org.mycore.frontend.filter.MCRWebAppBaseFilter.doFilter(MCRWebAppBaseFilter.java:46)
      
      

        Attachments

          Activity

            People

            • Assignee:
              yagee Thomas Scheffler
              Reporter:
              mcrkrebs Kathleen Neumann
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: