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

"Content is not allowed in prolog" error while migrating a database to 1.2

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.2.2, 1.3 M2
    • 1.2.1, 1.3 M1
    • Storage
    • None

    Description

      This is the error we get:

      2008-02-06 00:01:19,166 [http://localhost:8081/xwiki/bin/login/XWiki/XWikiLogin] [http-8081-1] INFO  bernate.R4359XWIKI1459Migrator  - Updating document [Blog.115]... 
      2008-02-06 00:01:19,167 [http://localhost:8081/xwiki/bin/login/XWiki/XWikiLogin] [http-8081-1] WARN  rcs.XWikiRCSArchive             - Error in revision [1.2]: [Error number 2002 in 2: Error parsing xml
      Wrapped Exception: Error on line 1 of document  : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog.]. Ignoring non-fatal error. 
      2008-02-06 00:01:19,192 [http://localhost:8081/xwiki/bin/login/XWiki/XWikiLogin] [http-8081-1] INFO  .AbstractXWikiMigrationManager  - Failed to migrate database [ludo]... 
      com.xpn.xwiki.XWikiException: Error number 3005 in 3: Migration failed
      Wrapped Exception: Error number 13021 in 13: Exception while constructing archive for JRCS string [head	1.2;
      access;
      symbols;
      locks; strict;
      comment	@# @;
      
      
      1.2
      date	2005.11.29.10.47.28;	author tomcat;	state Exp;
      branches;
      next	1.1;
      
      1.1
      date	2005.11.29.10.47.24;	author tomcat;	state Exp;
      branches;
      next	;
      
      
      desc
      @@
      
      
      1.2
      log
      @@
      text
      @d12 2
      a13 2
      <date>1133257648092</date>
      <version>1.3</version>
      @
      
      
      1.1
      log
      @Blog.115
      @
      text
      @d12 2
      a13 2
      <date>1133257644457</date>
      <version>1.1</version>
      d92 156
      @
      ] for document [-598,107,671]
      Wrapped Exception: Index: 246, Size: 5
      	at com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.startMigrationsForDatabase(AbstractXWikiMigrationManager.java:179)
      	at com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.startMigrations(AbstractXWikiMigrationManager.java:124)
      	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:690)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
      	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
      	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      	at java.lang.Thread.run(Thread.java:619)
      
      
      Wrapped Exception:
      
      
      com.xpn.xwiki.XWikiException: Error number 13021 in 13: Exception while constructing archive for JRCS string [head	1.2;
      access;
      symbols;
      locks; strict;
      comment	@# @;
      
      
      1.2
      date	2005.11.29.10.47.28;	author tomcat;	state Exp;
      branches;
      next	1.1;
      
      1.1
      date	2005.11.29.10.47.24;	author tomcat;	state Exp;
      branches;
      next	;
      
      
      desc
      @@
      
      
      1.2
      log
      @@
      text
      @d12 2
      a13 2
      <date>1133257648092</date>
      <version>1.3</version>
      @
      
      
      1.1
      log
      @Blog.115
      @
      text
      @d12 2
      a13 2
      <date>1133257644457</date>
      <version>1.1</version>
      d92 156
      @
      ] for document [-598,107,671]
      Wrapped Exception: Index: 246, Size: 5
      	at com.xpn.xwiki.doc.XWikiDocumentArchive.setArchive(XWikiDocumentArchive.java:226)
      	at com.xpn.xwiki.store.migration.hibernate.R4359XWIKI1459Migrator$1.doInHibernate(R4359XWIKI1459Migrator.java:112)
      	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:78)
      	at com.xpn.xwiki.store.migration.hibernate.AbstractXWikiHibernateMigrator.migrate(AbstractXWikiHibernateMigrator.java:39)
      	at com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.startMigrations(AbstractXWikiMigrationManager.java:266)
      	at com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.startMigrationsForDatabase(AbstractXWikiMigrationManager.java:177)
      	at com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.startMigrations(AbstractXWikiMigrationManager.java:124)
      	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:690)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
      	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
      	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      	at java.lang.Thread.run(Thread.java:619)
      
      
      Wrapped Exception:
      
      
      org.suigeneris.jrcs.diff.PatchFailedException: Index: 246, Size: 5
      	at org.suigeneris.jrcs.diff.delta.Delta.patch(Delta.java:147)
      	at org.suigeneris.jrcs.diff.Revision.applyTo(Revision.java:144)
      	at org.suigeneris.jrcs.rcs.impl.Node.patch(Node.java:599)
      	at org.suigeneris.jrcs.rcs.impl.Path.patch(Path.java:178)
      	at org.suigeneris.jrcs.rcs.Archive.getRevision(Archive.java:1208)
      	at org.suigeneris.jrcs.rcs.Archive.getRevision(Archive.java:1168)
      	at org.suigeneris.jrcs.rcs.Archive.getRevision(Archive.java:1143)
      	at com.xpn.xwiki.doc.rcs.XWikiRCSArchive.getRevisionAsString(XWikiRCSArchive.java:283)
      	at com.xpn.xwiki.doc.rcs.XWikiRCSArchive.getNodes(XWikiRCSArchive.java:240)
      	at com.xpn.xwiki.doc.XWikiDocumentArchive.setArchive(XWikiDocumentArchive.java:216)
      	at com.xpn.xwiki.store.migration.hibernate.R4359XWIKI1459Migrator$1.doInHibernate(R4359XWIKI1459Migrator.java:112)
      	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:78)
      	at com.xpn.xwiki.store.migration.hibernate.AbstractXWikiHibernateMigrator.migrate(AbstractXWikiHibernateMigrator.java:39)
      	at com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.startMigrations(AbstractXWikiMigrationManager.java:266)
      	at com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.startMigrationsForDatabase(AbstractXWikiMigrationManager.java:177)
      	at com.xpn.xwiki.store.migration.AbstractXWikiMigrationManager.startMigrations(AbstractXWikiMigrationManager.java:124)
      	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:690)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:117)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
      	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
      	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      	at java.lang.Thread.run(Thread.java:619)
      

      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: