Uploaded image for project: 'NetarchiveSuite'
  1. NetarchiveSuite
  2. NAS-2248

Autocommit not disabled in HarvestDefinitionDBDAO#updateNextDate

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 4.4
    • 4.2
    • GUI
    • None
    • General

    Description

      When trying to save the nxt date from the harvest details, the following stack trace pops in the log:

      
      org.postgresql.util.PSQLException: Cannot commit when autoCommit is enabled.
      		 at org.postgresql.jdbc2.AbstractJdbc2Connection.commit(AbstractJdbc2Connection.java:813)
      		 at com.mchange.v2.c3p0.impl.NewProxyConnection.commit(NewProxyConnection.java:803) at dk.netarkivet.harvester.datamodel.HarvestDefinitionDBDAO.updateNextdate(HarvestDefinitionDBDAO.java:1525)
      		 at dk.netarkivet.harvester.webinterface.SelectiveHarvestUtil.processRequest(SelectiveHarvestUtil.java:100)
      		 at org.apache.jsp.Definitions_002dedit_002dselective_002dharvest_jsp._jspService(org.apache.jsp.Definitions_002dedit_002dselective_002dharvest_jsp:121)
      		 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:109)
      		 at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      		 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:389)
      		 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:486)
      		 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:380)
      		 at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      		 at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
      		 at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
      		 at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
      		 at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
      		 at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
      		 at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
      		 at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
      		 at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      		 at org.mortbay.jetty.Server.handle(Server.java:322)
      		 at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
      [...]
      

      Attachments

        Activity

          People

            ngiraud Nicolas Giraud (Inactive)
            ngiraud Nicolas Giraud (Inactive)
            Mikis Seth Sørensen Mikis Seth Sørensen (Inactive)
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified