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

Office importer errors when starting 4.3 M1 Manager

    XMLWordPrintable

Details

    • High
    • Medium
    • N/A
    • N/A

    Description

      Steps to reproduce:

      • setup a Manager with XEM
      • start it

      I get the following stack

      Starting Jetty on port 8080 ...
      2012-10-24 14:31:41.687:INFO::jetty-7.4.5.v20110725
      2012-10-24 14:31:41.708:INFO::Opened /home/sorinello/Desktop/XWiki/4.3/xwiki-manager-jetty-mysql-4.3-milestone-1/data/logs/2012_10_24.request.log
      2012-10-24 14:31:41.715:INFO::Deployment monitor /home/sorinello/Desktop/XWiki/4.3/xwiki-manager-jetty-mysql-4.3-milestone-1/jetty/contexts at interval 1
      2012-10-24 14:31:41.729:INFO::Deployable added: /home/sorinello/Desktop/XWiki/4.3/xwiki-manager-jetty-mysql-4.3-milestone-1/jetty/contexts/xwiki.xml
      2012-10-24 14:31:45.514:INFO::NO JSP Support for /xwiki, did not find org.apache.jasper.servlet.JspServlet
      2012-10-24 14:31:48,693 [Thread-15] ERROR rterVelocityContextInitializer - Unrecoverable error, office importer will not be available for velocity scripts. 
      org.xwiki.officeimporter.OfficeImporterException: Error while initializing office importer velocity bridge.
      	at org.xwiki.officeimporter.OfficeImporterVelocityBridge.<init>(OfficeImporterVelocityBridge.java:72) ~[xwiki-platform-legacy-office-importer-4.3-milestone-1.jar:na]
      	at org.xwiki.officeimporter.internal.OfficeImporterVelocityContextInitializer.initialize(OfficeImporterVelocityContextInitializer.java:66) ~[xwiki-platform-legacy-office-importer-4.3-milestone-1.jar:na]
      	at org.xwiki.velocity.internal.DefaultVelocityContextFactory.createContext(DefaultVelocityContextFactory.java:107) [xwiki-commons-velocity-4.3-milestone-1.jar:na]
      	at org.xwiki.velocity.internal.VelocityExecutionContextInitializer.initialize(VelocityExecutionContextInitializer.java:63) [xwiki-commons-velocity-4.3-milestone-1.jar:na]
      	at org.xwiki.context.internal.DefaultExecutionContextManager.initialize(DefaultExecutionContextManager.java:141) [xwiki-commons-context-4.3-milestone-1.jar:na]
      	at org.xwiki.job.internal.DefaultJobManager.run(DefaultJobManager.java:140) [xwiki-commons-job-4.3-milestone-1.jar:na]
      	at java.lang.Thread.run(Thread.java:722) [na:1.7.0_07]
      Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.officeimporter.internal.script.OfficeImporterScriptService] identifier by [role = [interface org.xwiki.script.service.ScriptService] hint = [officeimporter]]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:348) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:161) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.officeimporter.OfficeImporterVelocityBridge.<init>(OfficeImporterVelocityBridge.java:70) ~[xwiki-platform-legacy-office-importer-4.3-milestone-1.jar:na]
      	... 6 common frames omitted
      Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.officeimporter.internal.builder.DefaultXHTMLOfficeDocumentBuilder] identifier by [role = [interface org.xwiki.officeimporter.builder.XHTMLOfficeDocumentBuilder] hint = [default]]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:348) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:161) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:312) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:378) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:346) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	... 8 common frames omitted
      Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.officeimporter.internal.cleaner.OpenOfficeHTMLCleaner] identifier by [role = [interface org.xwiki.xml.html.HTMLCleaner] hint = [openoffice]]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:348) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:161) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:312) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:378) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:346) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	... 12 common frames omitted
      Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.xml.internal.html.DefaultHTMLCleaner] identifier by [role = [interface org.xwiki.xml.html.HTMLCleaner] hint = [default]]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:348) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:161) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:312) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:378) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:346) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	... 16 common frames omitted
      Caused by: java.lang.NoSuchMethodError: org.apache.xpath.XPathContext.<init>(Z)V
      	at org.apache.xpath.jaxp.XPathImpl.eval(XPathImpl.java:207) ~[xalan-2.7.1.jar:na]
      	at org.apache.xpath.jaxp.XPathImpl.evaluate(XPathImpl.java:281) ~[xalan-2.7.1.jar:na]
      	at org.xwiki.xml.internal.html.filter.AttributeFilter.filter(AttributeFilter.java:91) ~[xwiki-commons-xml-4.3-milestone-1.jar:na]
      	at org.xwiki.xml.internal.html.DefaultHTMLCleaner.clean(DefaultHTMLCleaner.java:173) ~[xwiki-commons-xml-4.3-milestone-1.jar:na]
      	at org.xwiki.xml.internal.html.DefaultHTMLCleaner.clean(DefaultHTMLCleaner.java:120) ~[xwiki-commons-xml-4.3-milestone-1.jar:na]
      	at org.xwiki.xml.internal.html.DefaultHTMLCleaner.initialize(DefaultHTMLCleaner.java:114) ~[xwiki-commons-xml-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:323) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:378) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:346) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	... 20 common frames omitted
      2012-10-24 14:31:49,795 [main] INFO  istributionInitializerListener - Distribution state: NEW 
      2012-10-24 14:31:49.798:INFO::started o.e.j.w.WebAppContext{/xwiki,file:/home/sorinello/Desktop/XWiki/4.3/xwiki-manager-jetty-mysql-4.3-milestone-1/webapps/xwiki/},/home/sorinello/Desktop/XWiki/4.3/xwiki-manager-jetty-mysql-4.3-milestone-1/jetty/../webapps/xwiki
      2012-10-24 14:31:49,813 [Distribution initialization] ERROR rterVelocityContextInitializer - Unrecoverable error, office importer will not be available for velocity scripts. 
      org.xwiki.officeimporter.OfficeImporterException: Error while initializing office importer velocity bridge.
      	at org.xwiki.officeimporter.OfficeImporterVelocityBridge.<init>(OfficeImporterVelocityBridge.java:72) ~[xwiki-platform-legacy-office-importer-4.3-milestone-1.jar:na]
      	at org.xwiki.officeimporter.internal.OfficeImporterVelocityContextInitializer.initialize(OfficeImporterVelocityContextInitializer.java:66) ~[xwiki-platform-legacy-office-importer-4.3-milestone-1.jar:na]
      	at org.xwiki.velocity.internal.DefaultVelocityContextFactory.createContext(DefaultVelocityContextFactory.java:107) [xwiki-commons-velocity-4.3-milestone-1.jar:na]
      	at org.xwiki.velocity.internal.VelocityExecutionContextInitializer.initialize(VelocityExecutionContextInitializer.java:63) [xwiki-commons-velocity-4.3-milestone-1.jar:na]
      	at org.xwiki.context.internal.DefaultExecutionContextManager.initialize(DefaultExecutionContextManager.java:141) [xwiki-commons-context-4.3-milestone-1.jar:na]
      	at org.xwiki.extension.distribution.internal.DefaultDistributionManager$1.run(DefaultDistributionManager.java:160) [xwiki-platform-extension-distribution-4.3-milestone-1.jar:na]
      	at java.lang.Thread.run(Thread.java:722) [na:1.7.0_07]
      Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.officeimporter.internal.script.OfficeImporterScriptService] identifier by [role = [interface org.xwiki.script.service.ScriptService] hint = [officeimporter]]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:348) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:161) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.officeimporter.OfficeImporterVelocityBridge.<init>(OfficeImporterVelocityBridge.java:70) ~[xwiki-platform-legacy-office-importer-4.3-milestone-1.jar:na]
      	... 6 common frames omitted
      Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.officeimporter.internal.builder.DefaultXHTMLOfficeDocumentBuilder] identifier by [role = [interface org.xwiki.officeimporter.builder.XHTMLOfficeDocumentBuilder] hint = [default]]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:348) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:161) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:312) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:378) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:346) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	... 8 common frames omitted
      Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.officeimporter.internal.cleaner.OpenOfficeHTMLCleaner] identifier by [role = [interface org.xwiki.xml.html.HTMLCleaner] hint = [openoffice]]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:348) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:161) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:312) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:378) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:346) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	... 12 common frames omitted
      Caused by: org.xwiki.component.manager.ComponentLookupException: Failed to lookup component [org.xwiki.xml.internal.html.DefaultHTMLCleaner] identifier by [role = [interface org.xwiki.xml.html.HTMLCleaner] hint = [default]]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:348) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getInstance(EmbeddableComponentManager.java:161) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:312) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:378) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:346) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	... 16 common frames omitted
      Caused by: java.lang.NoSuchMethodError: org.apache.xpath.XPathContext.<init>(Z)V
      	at org.apache.xpath.jaxp.XPathImpl.eval(XPathImpl.java:207) ~[xalan-2.7.1.jar:na]
      	at org.apache.xpath.jaxp.XPathImpl.evaluate(XPathImpl.java:281) ~[xalan-2.7.1.jar:na]
      	at org.xwiki.xml.internal.html.filter.AttributeFilter.filter(AttributeFilter.java:91) ~[xwiki-commons-xml-4.3-milestone-1.jar:na]
      	at org.xwiki.xml.internal.html.DefaultHTMLCleaner.clean(DefaultHTMLCleaner.java:173) ~[xwiki-commons-xml-4.3-milestone-1.jar:na]
      	at org.xwiki.xml.internal.html.DefaultHTMLCleaner.clean(DefaultHTMLCleaner.java:120) ~[xwiki-commons-xml-4.3-milestone-1.jar:na]
      	at org.xwiki.xml.internal.html.DefaultHTMLCleaner.initialize(DefaultHTMLCleaner.java:114) ~[xwiki-commons-xml-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.InitializableLifecycleHandler.handle(InitializableLifecycleHandler.java:39) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.createInstance(EmbeddableComponentManager.java:323) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:378) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	at org.xwiki.component.embed.EmbeddableComponentManager.getComponentInstance(EmbeddableComponentManager.java:346) ~[xwiki-commons-legacy-component-default-4.3-milestone-1.jar:na]
      	... 20 common frames omitted
      2012-10-24 14:31:49.952:INFO::Deployable added: /home/sorinello/Desktop/XWiki/4.3/xwiki-manager-jetty-mysql-4.3-milestone-1/jetty/contexts/root.xml
      2012-10-24 14:31:49.964:INFO::NO JSP Support for /, did not find org.apache.jasper.servlet.JspServlet
      2012-10-24 14:31:49.966:INFO::started o.e.j.w.WebAppContext{/,file:/home/sorinello/Desktop/XWiki/4.3/xwiki-manager-jetty-mysql-4.3-milestone-1/webapps/root/},/home/sorinello/Desktop/XWiki/4.3/xwiki-manager-jetty-mysql-4.3-milestone-1/jetty/../webapps/root
      2012-10-24 14:31:50.017:INFO::Started SelectChannelConnector@0.0.0.0:8080 STARTING
      2012-10-24 14:31:50.017:INFO::----------------------------------
      2012-10-24 14:31:50.019:INFO::Server started, you can now open http://localhost:8080/ in your browser to access your wiki.
      2012-10-24 14:31:50.019:INFO::----------------------------------
      
      

      I tried with a 4.3 M1 Enterprise (jetty+HSQLDB) and I didn't got errors. Seems specific to Manager.

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            sorinello Sorin Burjan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: