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

Exception when calling History/Harveststatus-perharvestrun.jsp on a job with creationdate 0000-00-00 00:00:00

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.0.1
    • 4.0
    • GUI, MySQL
    • None
    • ONB

    Description

      java.sql.SQLException: Cannot convert value '0000-00-00 00:00:00' from column 11 to TIMESTAMP when calling History/Harveststatus-perharvestrun.jsp on a job with creationdate 0000-00-00 00:00:00 with mysqlDB.

      SQL error asking for job status list in database
      SQLException trace:
      SQL State:S1009
      Error Code:0
      java.sql.SQLException: Cannot convert value '0000-00-00 00:00:00' from column 11 to TIMESTAMP.
      at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1075)
      at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:989)
      at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:984)
      at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:929)
      at com.mysql.jdbc.ResultSetRow.getTimestampFast(ResultSetRow.java:1339)
      at com.mysql.jdbc.ByteArrayRow.getTimestampFast(ByteArrayRow.java:129)
      at com.mysql.jdbc.ResultSetImpl.getTimestampInternal(ResultSetImpl.java:6754)
      at com.mysql.jdbc.ResultSetImpl.getTimestamp(ResultSetImpl.java:6073)
      at com.mchange.v2.c3p0.impl.NewProxyResultSet.getTimestamp(NewProxyResultSet.java:3420)
      at dk.netarkivet.common.utils.DBUtils.getDateMaybeNull(DBUtils.java:704)
      at dk.netarkivet.harvester.datamodel.JobDBDAO.makeJobStatusInfoListFromResultset(JobDBDAO.java:1037)
      at dk.netarkivet.harvester.datamodel.JobDBDAO.getStatusInfo(JobDBDAO.java:781)
      at dk.netarkivet.harvester.webinterface.HarvestStatus.getjobStatusList(HarvestStatus.java:251)
      at org.apache.jsp.Harveststatus_002dperharvestrun_jsp._jspService(org.apache.jsp.Harveststatus_002dperharvestrun_jsp:173)
      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)
      at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
      at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
      at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
      Caused by: java.sql.SQLException: Value '[B@22ea86e3' can not be represented as java.sql.Timestamp
      at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1075)
      at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:989)
      at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:984)
      at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:929)
      at com.mysql.jdbc.ResultSetRow.getTimestampFast(ResultSetRow.java:1037)
      ... 31 more
      End of SQLException trace

      Attachments

        Issue Links

          Activity

            People

              aponb Andreas P
              aponb Andreas P
              Andreas P Andreas P
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: