com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading document [xwiki:XWiki.WysiwygEditorConfig] Wrapped Exception: Error number 3235 in 3: Exception while searching attachments for documents xwiki:XWiki.WysiwygEditorConfig Wrapped Exception: Exception occurred inside setter of com.xpn.xwiki.doc.XWikiAttachment.author

XWiki.org JIRA | Sorin Burjan | 5 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Steps to reproduce: * user 4.2 RC1. Put the JAR and modify the configuration to use an Oracle database * make sure the data/extension and data/jobs dirs aren't present * start xwiki - the distribution wizard will kick in * click on Install and the Apply * you will see several error messages (in red, each with a stacktrace) * example of a stacktrace below {code} Failed to parse document [XWiki/WysiwygEditorConfig.xml] class org.xml.sax.SAXException: Failed to save document at org.xwiki.extension.xar.internal.handler.packager.xml.DocumentImporterHandler.saveDocument(DocumentImporterHandler.java:275) at org.xwiki.extension.xar.internal.handler.packager.xml.DocumentImporterHandler.endHandlerElement(DocumentImporterHandler.java:378) at org.xwiki.extension.xar.internal.handler.packager.xml.AbstractHandler.endElement(AbstractHandler.java:163) at org.xwiki.extension.xar.internal.handler.packager.xml.AbstractHandler.endElement(AbstractHandler.java:155) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.xwiki.extension.xar.internal.handler.packager.DefaultPackager.parseDocument(DefaultPackager.java:327) at org.xwiki.extension.xar.internal.handler.packager.DefaultPackager.importXARToWiki(DefaultPackager.java:165) at org.xwiki.extension.xar.internal.handler.packager.DefaultPackager.importXARToWiki(DefaultPackager.java:135) at org.xwiki.extension.xar.internal.handler.packager.DefaultPackager.importXAR(DefaultPackager.java:126) at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.install(XarExtensionHandler.java:202) at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.install(XarExtensionHandler.java:137) at org.xwiki.extension.handler.internal.DefaultExtensionHandlerManager.install(DefaultExtensionHandlerManager.java:80) at org.xwiki.extension.job.internal.AbstractExtensionJob.installExtension(AbstractExtensionJob.java:149) at org.xwiki.extension.job.internal.AbstractExtensionJob.applyAction(AbstractExtensionJob.java:106) at org.xwiki.extension.job.internal.InstallJob.start(InstallJob.java:135) at org.xwiki.job.AbstractJob.start(AbstractJob.java:134) at org.xwiki.job.internal.DefaultJobManager.run(DefaultJobManager.java:156) at java.lang.Thread.run(Thread.java:679) Caused by: class com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading document [xwiki:XWiki.WysiwygEditorConfig] Wrapped Exception: Error number 3235 in 3: Exception while searching attachments for documents xwiki:XWiki.WysiwygEditorConfig Wrapped Exception: Exception occurred inside setter of com.xpn.xwiki.doc.XWikiAttachment.author at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:856) at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:290) at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1404) at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1447) at org.xwiki.extension.xar.internal.handler.packager.xml.DocumentImporterHandler.getDatabaseDocument(DocumentImporterHandler.java:284) at org.xwiki.extension.xar.internal.handler.packager.xml.DocumentImporterHandler.saveDocument(DocumentImporterHandler.java:202) at org.xwiki.extension.xar.internal.handler.packager.xml.DocumentImporterHandler.endHandlerElement(DocumentImporterHandler.java:378) at org.xwiki.extension.xar.internal.handler.packager.xml.AbstractHandler.endElement(AbstractHandler.java:163) at org.xwiki.extension.xar.internal.handler.packager.xml.AbstractHandler.endElement(AbstractHandler.java:155) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.xwiki.extension.xar.internal.handler.packager.DefaultPackager.parseDocument(DefaultPackager.java:327) at org.xwiki.extension.xar.internal.handler.packager.DefaultPackager.importXARToWiki(DefaultPackager.java:165) at org.xwiki.extension.xar.internal.handler.packager.DefaultPackager.importXARToWiki(DefaultPackager.java:135) at org.xwiki.extension.xar.internal.handler.packager.DefaultPackager.importXAR(DefaultPackager.java:126) at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.install(XarExtensionHandler.java:202) at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.install(XarExtensionHandler.java:137) at org.xwiki.extension.handler.internal.DefaultExtensionHandlerManager.install(DefaultExtensionHandlerManager.java:80) at org.xwiki.extension.job.internal.AbstractExtensionJob.installExtension(AbstractExtensionJob.java:149) at org.xwiki.extension.job.internal.AbstractExtensionJob.applyAction(AbstractExtensionJob.java:106) at org.xwiki.extension.job.internal.InstallJob.start(InstallJob.java:135) at org.xwiki.job.AbstractJob.start(AbstractJob.java:134) at org.xwiki.job.internal.DefaultJobManager.run(DefaultJobManager.java:156) at java.lang.Thread.run(Thread.java:679) Caused by: class com.xpn.xwiki.XWikiException: Error number 3235 in 3: Exception while searching attachments for documents xwiki:XWiki.WysiwygEditorConfig Wrapped Exception: Exception occurred inside setter of com.xpn.xwiki.doc.XWikiAttachment.author at com.xpn.xwiki.store.XWikiHibernateStore.loadAttachmentList(XWikiHibernateStore.java:1458) at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:756) at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:290) at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1404) at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1447) at org.xwiki.extension.xar.internal.handler.packager.xml.DocumentImporterHandler.getDatabaseDocument(DocumentImporterHandler.java:284) at org.xwiki.extension.xar.internal.handler.packager.xml.DocumentImporterHandler.saveDocument(DocumentImporterHandler.java:202) at org.xwiki.extension.xar.internal.handler.packager.xml.DocumentImporterHandler.endHandlerElement(DocumentImporterHandler.java:378) at org.xwiki.extension.xar.internal.handler.packager.xml.AbstractHandler.endElement(AbstractHandler.java:163) at org.xwiki.extension.xar.internal.handler.packager.xml.AbstractHandler.endElement(AbstractHandler.java:155) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.xwiki.extension.xar.internal.handler.packager.DefaultPackager.parseDocument(DefaultPackager.java:327) at org.xwiki.extension.xar.internal.handler.packager.DefaultPackager.importXARToWiki(DefaultPackager.java:165) at org.xwiki.extension.xar.internal.handler.packager.DefaultPackager.importXARToWiki(DefaultPackager.java:135) at org.xwiki.extension.xar.internal.handler.packager.DefaultPackager.importXAR(DefaultPackager.java:126) at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.install(XarExtensionHandler.java:202) at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.install(XarExtensionHandler.java:137) at org.xwiki.extension.handler.internal.DefaultExtensionHandlerManager.install(DefaultExtensionHandlerManager.java:80) at org.xwiki.extension.job.internal.AbstractExtensionJob.installExtension(AbstractExtensionJob.java:149) at org.xwiki.extension.job.internal.AbstractExtensionJob.applyAction(AbstractExtensionJob.java:106) at org.xwiki.extension.job.internal.InstallJob.start(InstallJob.java:135) at org.xwiki.job.AbstractJob.start(AbstractJob.java:134) at org.xwiki.job.internal.DefaultJobManager.run(DefaultJobManager.java:156) at java.lang.Thread.run(Thread.java:679) Caused by: class org.hibernate.PropertyAccessException: Exception occurred inside setter of com.xpn.xwiki.doc.XWikiAttachment.author at org.hibernate.property.BasicPropertyAccessor$BasicSetter.set(BasicPropertyAccessor.java:89) at org.hibernate.tuple.entity.AbstractEntityTuplizer.setPropertyValues(AbstractEntityTuplizer.java:583) at org.hibernate.tuple.entity.PojoEntityTuplizer.setPropertyValues(PojoEntityTuplizer.java:229) at org.hibernate.persister.entity.AbstractEntityPersister.setPropertyValues(AbstractEntityPersister.java:3847) at org.hibernate.engine.TwoPhaseLoad.initializeEntity(TwoPhaseLoad.java:152) at org.hibernate.loader.Loader.initializeEntitiesAndCollections(Loader.java:982) at org.hibernate.loader.Loader.doQuery(Loader.java:857) at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:274) at org.hibernate.loader.Loader.doList(Loader.java:2542) at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2276) at org.hibernate.loader.Loader.list(Loader.java:2271) at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:459) at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:365) at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:196) at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1268) at org.hibernate.impl.QueryImpl.list(QueryImpl.java:102) at com.xpn.xwiki.store.XWikiHibernateStore.loadAttachmentList(XWikiHibernateStore.java:1446) at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:756) at com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:290) at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1404) at com.xpn.xwiki.XWiki.getDocument(XWiki.java:1447) at org.xwiki.extension.xar.internal.handler.packager.xml.DocumentImporterHandler.getDatabaseDocument(DocumentImporterHandler.java:284) at org.xwiki.extension.xar.internal.handler.packager.xml.DocumentImporterHandler.saveDocument(DocumentImporterHandler.java:202) at org.xwiki.extension.xar.internal.handler.packager.xml.DocumentImporterHandler.endHandlerElement(DocumentImporterHandler.java:378) at org.xwiki.extension.xar.internal.handler.packager.xml.AbstractHandler.endElement(AbstractHandler.java:163) at org.xwiki.extension.xar.internal.handler.packager.xml.AbstractHandler.endElement(AbstractHandler.java:155) at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) at org.xwiki.extension.xar.internal.handler.packager.DefaultPackager.parseDocument(DefaultPackager.java:327) at org.xwiki.extension.xar.internal.handler.packager.DefaultPackager.importXARToWiki(DefaultPackager.java:165) at org.xwiki.extension.xar.internal.handler.packager.DefaultPackager.importXARToWiki(DefaultPackager.java:135) at org.xwiki.extension.xar.internal.handler.packager.DefaultPackager.importXAR(DefaultPackager.java:126) at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.install(XarExtensionHandler.java:202) at org.xwiki.extension.xar.internal.handler.XarExtensionHandler.install(XarExtensionHandler.java:137) at org.xwiki.extension.handler.internal.DefaultExtensionHandlerManager.install(DefaultExtensionHandlerManager.java:80) at org.xwiki.extension.job.internal.AbstractExtensionJob.installExtension(AbstractExtensionJob.java:149) at org.xwiki.extension.job.internal.AbstractExtensionJob.applyAction(AbstractExtensionJob.java:106) at org.xwiki.extension.job.internal.InstallJob.start(InstallJob.java:135) at org.xwiki.job.AbstractJob.start(AbstractJob.java:134) at org.xwiki.job.internal.DefaultJobManager.run(DefaultJobManager.java:156) at java.lang.Thread.run(Thread.java:679) Caused by: $throwable.class: null {code} * documents I get conflicts are: ** Panels.PanelsWizard.xml ** Panels.SyntaxHelp.xml ** XWiki.WatchListMessage.xml ** Stats.Style.xml ** XWiki.SearchAdmin.xml ** XWiki.SearchSuggestConfig.xml ** Blog.Categories.xml ** XWiki.OfficeImporterAdmin.xml ** AnnotationCode.AnnotaionConfig.xml ** AnnotationCode.Style.xml ** Invitation.WebHome.xml ** XWiki.AddeExtensions.xml ** and MORE Steps to reproduce II * start the wiki, but CANCEL the distribution wizard * import manually the 4.2 ui-all XAR using the old way. * you won't see errors, but the outcome is the same (empty Applications Panel) It seems that the Distribution Wizard revealed maybe some issues we had but didn't see them because old import doesn't display these information. So this is not caused by the Distribution Manager. I am sure this breaks a lot of stuff, but the most visible thing is the Application panel which is empty. Images attached, full server stacktrace attached

    XWiki.org JIRA | 5 years ago | Sorin Burjan
    com.xpn.xwiki.XWikiException: Error number 3202 in 3: Exception while reading document [xwiki:XWiki.WysiwygEditorConfig] Wrapped Exception: Error number 3235 in 3: Exception while searching attachments for documents xwiki:XWiki.WysiwygEditorConfig Wrapped Exception: Exception occurred inside setter of com.xpn.xwiki.doc.XWikiAttachment.author

    Root Cause Analysis

    1. com.xpn.xwiki.XWikiException

      Error number 3202 in 3: Exception while reading document [xwiki:XWiki.WysiwygEditorConfig] Wrapped Exception: Error number 3235 in 3: Exception while searching attachments for documents xwiki:XWiki.WysiwygEditorConfig Wrapped Exception: Exception occurred inside setter of com.xpn.xwiki.doc.XWikiAttachment.author

      at com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc()
    2. com.xpn.xwiki
      XWiki.getDocument
      1. com.xpn.xwiki.store.XWikiHibernateStore.loadXWikiDoc(XWikiHibernateStore.java:856)
      2. com.xpn.xwiki.store.XWikiCacheStore.loadXWikiDoc(XWikiCacheStore.java:290)
      3. com.xpn.xwiki.XWiki.getDocument(XWiki.java:1404)
      4. com.xpn.xwiki.XWiki.getDocument(XWiki.java:1447)
      4 frames
    3. org.xwiki.extension
      AbstractHandler.endElement
      1. org.xwiki.extension.xar.internal.handler.packager.xml.DocumentImporterHandler.getDatabaseDocument(DocumentImporterHandler.java:284)
      2. org.xwiki.extension.xar.internal.handler.packager.xml.DocumentImporterHandler.saveDocument(DocumentImporterHandler.java:202)
      3. org.xwiki.extension.xar.internal.handler.packager.xml.DocumentImporterHandler.endHandlerElement(DocumentImporterHandler.java:378)
      4. org.xwiki.extension.xar.internal.handler.packager.xml.AbstractHandler.endElement(AbstractHandler.java:163)
      5. org.xwiki.extension.xar.internal.handler.packager.xml.AbstractHandler.endElement(AbstractHandler.java:155)
      5 frames
    4. Xerces2-j
      SAXParserImpl$JAXPSAXParser.parse
      1. org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
      2. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
      3. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
      4. org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
      5. org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      6. org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
      7. org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
      8. org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
      9. org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
      9 frames
    5. org.xwiki.extension
      InstallJob.start
      1. org.xwiki.extension.xar.internal.handler.packager.DefaultPackager.parseDocument(DefaultPackager.java:327)
      2. org.xwiki.extension.xar.internal.handler.packager.DefaultPackager.importXARToWiki(DefaultPackager.java:165)
      3. org.xwiki.extension.xar.internal.handler.packager.DefaultPackager.importXARToWiki(DefaultPackager.java:135)
      4. org.xwiki.extension.xar.internal.handler.packager.DefaultPackager.importXAR(DefaultPackager.java:126)
      5. org.xwiki.extension.xar.internal.handler.XarExtensionHandler.install(XarExtensionHandler.java:202)
      6. org.xwiki.extension.xar.internal.handler.XarExtensionHandler.install(XarExtensionHandler.java:137)
      7. org.xwiki.extension.handler.internal.DefaultExtensionHandlerManager.install(DefaultExtensionHandlerManager.java:80)
      8. org.xwiki.extension.job.internal.AbstractExtensionJob.installExtension(AbstractExtensionJob.java:149)
      9. org.xwiki.extension.job.internal.AbstractExtensionJob.applyAction(AbstractExtensionJob.java:106)
      10. org.xwiki.extension.job.internal.InstallJob.start(InstallJob.java:135)
      10 frames
    6. org.xwiki.job
      DefaultJobManager.run
      1. org.xwiki.job.AbstractJob.start(AbstractJob.java:134)
      2. org.xwiki.job.internal.DefaultJobManager.run(DefaultJobManager.java:156)
      2 frames
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:679)
      1 frame