Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-2034

Parse error (encountered EOF) while migrating the database

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.2.1
    • 1.2
    • Storage
    • None

    Description

      Here's the exception we're getting:

      [#|2008-01-24T13:40:12.850-0800|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=11;_ThreadName=httpWorkerThread-8080-0;_RequestID=a7ad3dbd-6514-4e53-904a-6a497d40db13;|com.xpn.xwiki.XWikiException: Error number 3005 in 3: Migration failed
      Wrapped Exception: Error number 13021 in 13: Exception while constructing document archive
      Wrapped Exception: Parse error at line 1, column 0.  Encountered: <EOF>
      	at com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.startMigrationsForDatabase(AbstractXWikiMigrationManager.java:145)
      	at com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.startMigrations(AbstractXWikiMigrationManager.java:102)
      	at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:721)
      	at com.xpn.xwiki.XWiki.<init>(XWiki.java:672)
      	at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:241)
      	at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:439)
      	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:94)
      	at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
      	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
      	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
      	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      	at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
      	at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:216)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:276)
      	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
      	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
      	at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
      	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
      	at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
      	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
      	at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
      	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
      	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
      	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
      	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
      	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
      	at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
      	at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
      	at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
      	at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
      	at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
      	at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
      	at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
       
       
      Wrapped Exception:
       
      com.xpn.xwiki.XWikiException: Error number 13021 in 13: Exception while constructing document archive
      Wrapped Exception: Parse error at line 1, column 0.  Encountered: <EOF>
      	at com.xpn.xwiki.doc.XWikiDocumentArchive.setArchive(XWikiDocumentArchive.java:203)
      	at com.xpn.xwiki.store.migration.hibernate.R4359XWIKI1459Migrator$1.doInHibernate(R4359XWIKI1459Migrator.java:110)
      	at com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:918)
      	at com.xpn.xwiki.store.XWikiHibernateBaseStore.executeWrite(XWikiHibernateBaseStore.java:960)
      	at com.xpn.xwiki.store.migration.hibernate.R4359XWIKI1459Migrator.migrate(R4359XWIKI1459Migrator.java:85)
      	at com.xpn.xwiki.store.migration.hibernate.R4359XWIKI1459Migrator.migrate(R4359XWIKI1459Migrator.java:75)
      	at com.xpn.xwiki.store.migration.hibernate.AbstractXWikiHibernateMigrator.migrate(AbstractXWikiHibernateMigrator.java:38)
      	at com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.migrate(AbstractXWikiMigrationManager.java:231)
      	at com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.startMigrations(AbstractXWikiMigrationManager.java:214)
      	at com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.startMigrationsForDatabase(AbstractXWikiMigrationManager.java:143)
      	at com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.startMigrations(AbstractXWikiMigrationManager.java:102)
      	at com.xpn.xwiki.XWiki.initXWiki(XWiki.java:721)
      	at com.xpn.xwiki.XWiki.<init>(XWiki.java:672)
      	at com.xpn.xwiki.XWiki.getMainXWiki(XWiki.java:241)
      	at com.xpn.xwiki.XWiki.getXWiki(XWiki.java:439)
      	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:94)
      	at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
      	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
      	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
      	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      	at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
      	at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:216)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:276)
      	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
      	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
      	at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
      	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
      	at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
      	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
      	at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
      	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
      	at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
      	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
      	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
      	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
      	at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
      	at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
      	at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
      	at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
      	at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212|#]
       
      [#|2008-01-24T13:40:12.853-0800|WARNING|sun-appserver-pe9.0|javax.enterprise.system.stream.err|_ThreadID=11;_ThreadName=httpWorkerThread-8080-0;_RequestID=a7ad3dbd-6514-4e53-904a-6a497d40db13;|)
      	at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
      	at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
       
       
      Wrapped Exception:
       
      org.suigeneris.jrcs.rcs.parse.ParseException: Parse error at line 1, column 0.  Encountered: <EOF>
      	at org.suigeneris.jrcs.rcs.parse.ArchiveParser.generateParseException(ArchiveParser.java:694)
      	at org.suigeneris.jrcs.rcs.parse.ArchiveParser.jj_consume_token(ArchiveParser.java:664)
      	at org.suigeneris.jrcs.rcs.parse.ArchiveParser.head(ArchiveParser.java:173)
      	at org.suigeneris.jrcs.rcs.parse.ArchiveParser.admin(ArchiveParser.java:114)
      	at org.suigeneris.jrcs.rcs.parse.ArchiveParser.archive(ArchiveParser.java:86)
      	at org.suigeneris.jrcs.rcs.parse.ArchiveParser.load(ArchiveParser.java:60)
      	at org.suigeneris.jrcs.rcs.Archive.<init>(Archive.java:259)
      	at org.suigeneris.jrcs.rcs.Archive.<init>(Archive.java:273)
      	at com.xpn.xwiki.doc.rcs.XWikiRCSArchive.<init>(XWikiRCSArchive.java:104)
      	at com.xpn.xwiki.doc.XWikiDocumentArchive.setArchive(XWikiDocumentArchive.java:191)
      ...
      

      This is caused by an invalid empty value in the XWD_ARCHIVE field for a given document. Not sure how this can happen but we should not fail and ignore the error. It just means we won't convert that archive in the new table but that's not an issue since the archive is lost anyway (empty value).

      Attachments

        Activity

          People

            vmassol Vincent Massol
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: