Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.2 M2
    • Fix Version/s: 1.2 RC1
    • Component/s: Storage
    • Labels:
      None
    • Similar issues:

      Description

      Wrapped Exception: Error number 3103 in 3: Exception while reading document version {1}
      Wrapped Exception: Error number 13027 in 13: Exception while patching
      Wrapped Exception: line::java.lang.NumberFormatException 
      com.xpn.xwiki.XWikiException: Error number 11015 in 11: Exception while exporting
      Wrapped Exception: Error number 3103 in 3: Exception while reading document version {1}
      Wrapped Exception: Error number 13027 in 13: Exception while patching
      Wrapped Exception: line::java.lang.NumberFormatException
      	at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:53)
      	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:148)
      	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 3103 in 3: Exception while reading document version {1}
      Wrapped Exception: Error number 13027 in 13: Exception while patching
      Wrapped Exception: line::java.lang.NumberFormatException
      	at com.xpn.xwiki.doc.XWikiDocumentArchive.loadDocument(XWikiDocumentArchive.java:323)
      	at com.xpn.xwiki.store.XWikiHibernateVersioningStore.loadXWikiDoc(XWikiHibernateVersioningStore.java:162)
      	at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1003)
      	at com.xpn.xwiki.web.XWikiAction.handleRevision(XWikiAction.java:257)
      	at com.xpn.xwiki.web.ExportAction.exportPDFOrRTF(ExportAction.java:69)
      	at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:50)
      	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:148)
      	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 13027 in 13: Exception while patching
      Wrapped Exception: line::java.lang.NumberFormatException
      	at com.xpn.xwiki.doc.rcs.XWikiPatch.patch(XWikiPatch.java:146)
      	at com.xpn.xwiki.doc.XWikiDocumentArchive.loadDocument(XWikiDocumentArchive.java:305)
      	at com.xpn.xwiki.store.XWikiHibernateVersioningStore.loadXWikiDoc(XWikiHibernateVersioningStore.java:162)
      	at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1003)
      	at com.xpn.xwiki.web.XWikiAction.handleRevision(XWikiAction.java:257)
      	at com.xpn.xwiki.web.ExportAction.exportPDFOrRTF(ExportAction.java:69)
      	at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:50)
      	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:148)
      	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:
      
      
      java.lang.NumberFormatException: For input string: " "
      	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
      	at java.lang.Integer.parseInt(Integer.java:447)
      	at java.lang.Integer.parseInt(Integer.java:497)
      	at com.xpn.xwiki.doc.rcs.XWikiPatchUtils.patch(XWikiPatchUtils.java:89)
      	at com.xpn.xwiki.doc.rcs.XWikiPatch.patch(XWikiPatch.java:144)
      	at com.xpn.xwiki.doc.XWikiDocumentArchive.loadDocument(XWikiDocumentArchive.java:305)
      	at com.xpn.xwiki.store.XWikiHibernateVersioningStore.loadXWikiDoc(XWikiHibernateVersioningStore.java:162)
      	at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1003)
      	at com.xpn.xwiki.web.XWikiAction.handleRevision(XWikiAction.java:257)
      	at com.xpn.xwiki.web.ExportAction.exportPDFOrRTF(ExportAction.java:69)
      	at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:50)
      	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:148)
      	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)
      

        Issue Links

          Activity

          Hide
          Vincent Massol added a comment -

          Artem, is XWIKI-1886 related to this issue?

          Show
          Vincent Massol added a comment - Artem, is XWIKI-1886 related to this issue?
          Hide
          Vincent Massol added a comment -

          I think I've found the error. This is a bug in XWikiRCSArchive, line 268:

                  // ensure latest version is full
                  if (result.size() > 0) {
                      ((XWikiRCSNodeInfo) result.iterator().next()).setDiff(false);
                  }
          

          This code should also set the patch object in XWikirCSNodeContent to false.

          Now since users may have already migrated their databases we need a new migrator to match the database data (xwikircs table, field isdiff) with the RCS "state" information (i.e. when state is "full")

          Show
          Vincent Massol added a comment - I think I've found the error. This is a bug in XWikiRCSArchive, line 268: // ensure latest version is full if (result.size() > 0) { ((XWikiRCSNodeInfo) result.iterator().next()).setDiff( false ); } This code should also set the patch object in XWikirCSNodeContent to false. Now since users may have already migrated their databases we need a new migrator to match the database data (xwikircs table, field isdiff) with the RCS "state" information (i.e. when state is "full")
          Hide
          Vincent Massol added a comment -

          Fixed by fixing the R4340XWIKI883Migrator migrator and added a new one (R6079XWIKI1878Migrator) for the users who have already migrated to 1.2M2.

          Show
          Vincent Massol added a comment - Fixed by fixing the R4340XWIKI883Migrator migrator and added a new one (R6079XWIKI1878Migrator) for the users who have already migrated to 1.2M2.
          Hide
          Ricardo Rodriguez added a comment -

          It seems that I am getting the same error after updating to 1.2.6932. New documents "seem" to work fine "for a while". I mean, you can accees revisions and make comparisons without problem during some time, then any URL including ?rev= throws the exception.

          I found R6079XWIKI1878Migrator.java in the core, so I'm guessing it is already included in the current .jar. I had not this problem with 1.2M2.

          Show
          Ricardo Rodriguez added a comment - It seems that I am getting the same error after updating to 1.2.6932. New documents "seem" to work fine "for a while". I mean, you can accees revisions and make comparisons without problem during some time, then any URL including ?rev= throws the exception. I found R6079XWIKI1878Migrator.java in the core, so I'm guessing it is already included in the current .jar. I had not this problem with 1.2M2.
          Hide
          Vincent Massol added a comment -

          Ricardo, could you please create a new issue (and link it to this one)?

          Thanks
          -Vincent

          Show
          Vincent Massol added a comment - Ricardo, could you please create a new issue (and link it to this one)? Thanks -Vincent

            People

            • Assignee:
              Vincent Massol
              Reporter:
              Vincent Massol
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: