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

Issues installing on Oracle database with the Distribution Wizard

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Blocker
    • None
    • 4.2-rc-1
    • None
    • None
    • Unknown
    • N/A
    • N/A

    Description

      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
        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
        
      • 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

      Attachments

        1. AppPanelOracle.png
          AppPanelOracle.png
          3 kB
        2. stackErrorOracle.png
          stackErrorOracle.png
          64 kB
        3. oracleLog.txt
          2.87 MB
        4. oracleLogCancelDistributionManager.txt
          4 kB
        5. vmalogs.txt
          3.05 MB

        Issue Links

          Activity

            People

              vmassol Vincent Massol
              sorinello Sorin Burjan
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: