com.xpn.xwiki.XWikiException: Error number 3103 in 3: Exception while reading version [42.1] for document id [-2 002 094 545] Wrapped Exception: Error number 2002 in 2: Error parsing xml Wrapped Exception: Error on line 28 of document : An invalid XML character (Unicode: 0x5) was found in the element content of the document. Nested exception: An invalid XML character (Unicode: 0x5) was found in the element content of the document.

XWiki.org JIRA | Ryszard Lach | 5 years ago
  1. 0

    After migration to 3.4 I have serious problem with versioning. Migration has been done via export-import of xar (with history), but the problem occurs also for newer versions of document (created after importing). Whatever version of document I click (https://wiki/xwiki/bin/viewrev/DRiW/testserwer?rev=43.1) I get an exception in catalina.out. If I click 'compare two versions' - I see comparation page as if all differences (i.e. the whole document) were created in the last version (no differences between older versions), with exception similar to the first one. 2012-02-15 14:37:13,871 [https://wiki/xwiki/bin/viewrev/DRiW/testserwer?rev=42.1] WARN c.x.x.w.XWikiAction - Uncaught exception: Error number 3103 in 3: Exception while reading version [42.1] for document id [-2 002 094 545] Wrapped Exception: Error number 2002 in 2: Error parsing xml Wrapped Exception: Error on line 28 of document : An invalid XML character (Unicode: 0x5) was found in the element content of the document. Nested exception: An invalid XML character (Unicode: 0x5) was found in the element content of the document. com.xpn.xwiki.XWikiException: Error number 3103 in 3: Exception while reading version [42.1] for document id [-2 002 094 545] Wrapped Exception: Error number 2002 in 2: Error parsing xml Wrapped Exception: Error on line 28 of document : An invalid XML character (Unicode: 0x5) was found in the element content of the document. Nested exception: An invalid XML character (Unicode: 0x5) was found in the element content of the document. at com.xpn.xwiki.doc.XWikiDocumentArchive.loadDocument(XWikiDocumentArchive.java:342) ~[xwiki-platform-legacy-oldcore-3.4.jar:na] at com.xpn.xwiki.store.XWikiHibernateVersioningStore.loadXWikiDoc(XWikiHibernateVersioningStore.java:213) ~[xwiki-platform-legacy-oldcore-3.4.jar:na] at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1448) ~[xwiki-platform-legacy-oldcore-3.4.jar:na] at com.xpn.xwiki.web.XWikiAction.handleRevision(XWikiAction.java:444) [xwiki-platform-legacy-oldcore-3.4.jar:na] at com.xpn.xwiki.web.ViewrevAction.render(ViewrevAction.java:28) ~[xwiki-platform-legacy-oldcore-3.4.jar:na] at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:231) [xwiki-platform-legacy-oldcore-3.4.jar:na] at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116) [xwiki-platform-legacy-oldcore-3.4.jar:na] at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431) [struts-1.2.9.jar:1.2.9] at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236) [struts-1.2.9.jar:1.2.9] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196) [struts-1.2.9.jar:1.2.9] at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) [struts-1.2.9.jar:1.2.9] at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) [servlet-api-2.5.jar:na] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) [servlet-api-2.5.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) [catalina-6.0.28.jar:6.0.28] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina-6.0.28.jar:6.0.28] at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128) [xwiki-platform-legacy-oldcore-3.4.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina-6.0.28.jar:6.0.28] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina-6.0.28.jar:6.0.28] at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144) [xwiki-platform-wysiwyg-server-3.4.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina-6.0.28.jar:6.0.28] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina-6.0.28.jar:6.0.28] at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68) [xwiki-platform-webdav-server-3.4.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina-6.0.28.jar:6.0.28] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina-6.0.28.jar:6.0.28] at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217) [xwiki-platform-container-servlet-3.4.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina-6.0.28.jar:6.0.28] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina-6.0.28.jar:6.0.28] at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) [xwiki-platform-container-servlet-3.4.jar:na] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) [catalina-6.0.28.jar:6.0.28] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) [catalina-6.0.28.jar:6.0.28] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) [catalina-6.0.28.jar:6.0.28] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) [catalina-6.0.28.jar:6.0.28] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) [catalina-6.0.28.jar:6.0.28] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [catalina-6.0.28.jar:6.0.28] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [catalina-6.0.28.jar:6.0.28] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) [catalina-6.0.28.jar:6.0.28] at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190) [tomcat-coyote-6.0.28.jar:6.0.28] at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291) [tomcat-coyote-6.0.28.jar:6.0.28] at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:774) [tomcat-coyote-6.0.28.jar:6.0.28] at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703) [tomcat-coyote-6.0.28.jar:6.0.28] at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:896) [tomcat-coyote-6.0.28.jar:6.0.28] at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690) [tomcat-coyote-6.0.28.jar:6.0.28] at java.lang.Thread.run(Thread.java:662) [na:1.6.0_26] Caused by: com.xpn.xwiki.XWikiException: Error number 2002 in 2: Error parsing xml Wrapped Exception: Error on line 28 of document : An invalid XML character (Unicode: 0x5) was found in the element content of the document. Nested exception: An invalid XML character (Unicode: 0x5) was found in the element content of the document. at com.xpn.xwiki.doc.XWikiDocument.fromXML(XWikiDocument.java:4104) ~[xwiki-platform-legacy-oldcore-3.4.jar:na] at com.xpn.xwiki.doc.XWikiDocument.fromXML(XWikiDocument.java:4087) ~[xwiki-platform-legacy-oldcore-3.4.jar:na] at com.xpn.xwiki.doc.XWikiDocumentArchive.loadDocument(XWikiDocumentArchive.java:332) ~[xwiki-platform-legacy-oldcore-3.4.jar:na] ... 42 common frames omitted Caused by: org.dom4j.DocumentException: Error on line 28 of document : An invalid XML character (Unicode: 0x5) was found in the element content of the document. Nested exception: An invalid XML character (Unicode: 0x5) was found in the element content of the document. at org.dom4j.io.SAXReader.read(SAXReader.java:482) ~[dom4j-1.6.1.jar:1.6.1] at org.dom4j.io.SAXReader.read(SAXReader.java:365) ~[dom4j-1.6.1.jar:1.6.1] at com.xpn.xwiki.doc.XWikiDocument.fromXML(XWikiDocument.java:4102) ~[xwiki-platform-legacy-oldcore-3.4.jar:na] ... 44 common frames omitted 2012-02-15 14:37:13,924 [https://wiki/xwiki/bin/viewrev/DRiW/testserwer?rev=42.1] WARN o.x.v.i.DefaultVelocityEngine - Deprecated usage of method [com.xpn.xwiki.api.XWiki.parseMessage] in /templates/exceptioninline.vm@1,24

    XWiki.org JIRA | 5 years ago | Ryszard Lach
    com.xpn.xwiki.XWikiException: Error number 3103 in 3: Exception while reading version [42.1] for document id [-2 002 094 545] Wrapped Exception: Error number 2002 in 2: Error parsing xml Wrapped Exception: Error on line 28 of document : An invalid XML character (Unicode: 0x5) was found in the element content of the document. Nested exception: An invalid XML character (Unicode: 0x5) was found in the element content of the document.
  2. 0

    xml-parsing error in liferay 6.1.1

    Stack Overflow | 4 years ago | dmitrievanthony
    com.liferay.portal.kernel.deploy.auto.AutoDeployException: com.liferay.portal.kernel.xml.DocumentException: Error on line 1 of document : The value following "version" in the XML declaration must be a quoted string. Nested exception: The value following "version" in the XML declaration must be a quoted string.
  3. 0

    xml api broken in 1.399?

    Google Groups | 6 years ago | Brian J. Murrell
    hudson.util.IOException2: Error on line 1 of document : Element type "origin" must be followed by either attribute specifications, ">" or "/>". Nested exception: Element type "origin" must be followed by either attribute specifications, ">" or "/>".
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Start Up Errors within 4.3rc1 - Forums | Liferay

    liferay.com | 1 year ago
    org.dom4j.DocumentException: Error on line 558 of document  : The content of element type "liferay-portlet-app" must match "(portlet*,role-mapper*,custom-user-attribute*)". Nested exception: The content of element type "liferay-portlet-app" must match "(portlet*,role-mapper*,custom-user-attribute*)".
  6. 0

    Get data from XML give error "Content is not allowed in prolog"

    pentaho.com | 11 months ago
    org.dom4j.DocumentException: Error on line 1 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog. Error on line 1 of document : Content is not allowed in prolog. Nested exception: Content is not allowed in prolog.

    41 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. org.dom4j.DocumentException

      Error on line 28 of document : An invalid XML character (Unicode: 0x5) was found in the element content of the document. Nested exception: An invalid XML character (Unicode: 0x5) was found in the element content of the document.

      at org.dom4j.io.SAXReader.read()
    2. dom4j
      SAXReader.read
      1. org.dom4j.io.SAXReader.read(SAXReader.java:482)[dom4j-1.6.1.jar:1.6.1]
      2. org.dom4j.io.SAXReader.read(SAXReader.java:365)[dom4j-1.6.1.jar:1.6.1]
      2 frames
    3. com.xpn.xwiki
      XWikiAction.execute
      1. com.xpn.xwiki.doc.XWikiDocument.fromXML(XWikiDocument.java:4102)[xwiki-platform-legacy-oldcore-3.4.jar:na]
      2. com.xpn.xwiki.doc.XWikiDocument.fromXML(XWikiDocument.java:4087)[xwiki-platform-legacy-oldcore-3.4.jar:na]
      3. com.xpn.xwiki.doc.XWikiDocumentArchive.loadDocument(XWikiDocumentArchive.java:332)[xwiki-platform-legacy-oldcore-3.4.jar:na]
      4. com.xpn.xwiki.store.XWikiHibernateVersioningStore.loadXWikiDoc(XWikiHibernateVersioningStore.java:213)[xwiki-platform-legacy-oldcore-3.4.jar:na]
      5. com.xpn.xwiki.XWiki.getDocument(XWiki.java:1448)[xwiki-platform-legacy-oldcore-3.4.jar:na]
      6. com.xpn.xwiki.web.XWikiAction.handleRevision(XWikiAction.java:444)[xwiki-platform-legacy-oldcore-3.4.jar:na]
      7. com.xpn.xwiki.web.ViewrevAction.render(ViewrevAction.java:28)[xwiki-platform-legacy-oldcore-3.4.jar:na]
      8. com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:231)[xwiki-platform-legacy-oldcore-3.4.jar:na]
      9. com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116)[xwiki-platform-legacy-oldcore-3.4.jar:na]
      9 frames
    4. struts
      ActionServlet.doGet
      1. org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)[struts-1.2.9.jar:1.2.9]
      2. org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)[struts-1.2.9.jar:1.2.9]
      3. org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)[struts-1.2.9.jar:1.2.9]
      4. org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)[struts-1.2.9.jar:1.2.9]
      4 frames
    5. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:617)[servlet-api-2.5.jar:na]
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:717)[servlet-api-2.5.jar:na]
      2 frames
    6. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)[catalina-6.0.28.jar:6.0.28]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina-6.0.28.jar:6.0.28]
      2 frames
    7. com.xpn.xwiki
      ActionFilter.doFilter
      1. com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128)[xwiki-platform-legacy-oldcore-3.4.jar:na]
      1 frame
    8. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)[catalina-6.0.28.jar:6.0.28]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina-6.0.28.jar:6.0.28]
      2 frames
    9. org.xwiki.wysiwyg
      ConversionFilter.doFilter
      1. org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144)[xwiki-platform-wysiwyg-server-3.4.jar:na]
      1 frame
    10. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)[catalina-6.0.28.jar:6.0.28]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina-6.0.28.jar:6.0.28]
      2 frames
    11. com.xpn.xwiki
      XWikiDavFilter.doFilter
      1. com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)[xwiki-platform-webdav-server-3.4.jar:na]
      1 frame
    12. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)[catalina-6.0.28.jar:6.0.28]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina-6.0.28.jar:6.0.28]
      2 frames
    13. org.xwiki.container
      SavedRequestRestorerFilter.doFilter
      1. org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217)[xwiki-platform-container-servlet-3.4.jar:na]
      1 frame
    14. Glassfish Core
      ApplicationFilterChain.doFilter
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)[catalina-6.0.28.jar:6.0.28]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina-6.0.28.jar:6.0.28]
      2 frames
    15. org.xwiki.container
      SetCharacterEncodingFilter.doFilter
      1. org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109)[xwiki-platform-container-servlet-3.4.jar:na]
      1 frame
    16. Glassfish Core
      CoyoteAdapter.service
      1. org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)[catalina-6.0.28.jar:6.0.28]
      2. org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)[catalina-6.0.28.jar:6.0.28]
      3. org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)[catalina-6.0.28.jar:6.0.28]
      4. org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)[catalina-6.0.28.jar:6.0.28]
      5. org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)[catalina-6.0.28.jar:6.0.28]
      6. org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)[catalina-6.0.28.jar:6.0.28]
      7. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)[catalina-6.0.28.jar:6.0.28]
      8. org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)[catalina-6.0.28.jar:6.0.28]
      8 frames
    17. Embedded GlassFish Web
      ChannelSocket$SocketConnection.runIt
      1. org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)[tomcat-coyote-6.0.28.jar:6.0.28]
      2. org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)[tomcat-coyote-6.0.28.jar:6.0.28]
      3. org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:774)[tomcat-coyote-6.0.28.jar:6.0.28]
      4. org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)[tomcat-coyote-6.0.28.jar:6.0.28]
      5. org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:896)[tomcat-coyote-6.0.28.jar:6.0.28]
      5 frames
    18. Tomcat Util
      ThreadPool$ControlRunnable.run
      1. org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)[tomcat-coyote-6.0.28.jar:6.0.28]
      1 frame
    19. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:662)[na:1.6.0_26]
      1 frame