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

Can't import attached ".docx" document

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Solved By
    • Affects Version/s: 11.10.4, 12.6.2, 12.7.1
    • Fix Version/s: 12.8-rc-1
    • Component/s: Office
    • Labels:
      None
    • Environment:
      Windows 10 XWiki 12.6.2 local instance and XWiki SAS Intranet Staging (XWiki 11.10.4) with LibreOffice 6.2.4 (staging) and 6.3.6.2 (local), Chrome 85
      XWiki 12.6.2, 12.7.1 and 11.10.5 with LO 6.4.6.2
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      Preconditions: LibreOffice Server must be configured and started.

      1. Create a new page and select "Page From Office" from Type box
      2. Browse for an Office document .docx
      3. Click Import
      4. Click on the result link

      Expected results: The document imported is properly displayed inside a Wiki page.

      Actual results: "Error while converting document [004-[FREE]-French-Sanskrit-Tables-NoHeader-250Pages-DOCX.docx] into html." appears and this error in the XWiki console:

      2020-09-15 17:09:22,751 [qtp668849042-128 - http://localhost:8080/xwiki/bin/view/XWiki/OfficeImporterResults] ERROR .s.OfficeImporterScriptService - Error while converting document [004-[FREE]-French-Sanskrit-Tables-NoHeader-250Pages-DOCX.docx] into html.
      org.xwiki.officeimporter.OfficeImporterException: Error while converting document [004-[FREE]-French-Sanskrit-Tables-NoHeader-250Pages-DOCX.docx] into html.
              at org.xwiki.officeimporter.internal.builder.DefaultXHTMLOfficeDocumentBuilder.build(DefaultXHTMLOfficeDocumentBuilder.java:101)
              at org.xwiki.officeimporter.internal.builder.DefaultXDOMOfficeDocumentBuilder.build(DefaultXDOMOfficeDocumentBuilder.java:85)
              at org.xwiki.officeimporter.script.OfficeImporterScriptService.officeToXDOM(OfficeImporterScriptService.java:223)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
              at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:565)
              at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:548)
              at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:219)
              at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:369)
              at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:701)
              at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:72)
              at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:240)
              at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:144)
              at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:172)
              at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:144)
              at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:423)
              at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:191)
              at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:423)
              at org.apache.velocity.Template.merge(Template.java:358)
              at org.apache.velocity.Template.merge(Template.java:262)
              at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:284)
              at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:316)
              at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:131)
              at org.xwiki.rendering.internal.macro.velocity.VelocityMacro.evaluateString(VelocityMacro.java:52)
              at org.xwiki.rendering.macro.script.AbstractScriptMacro.evaluateBlock(AbstractScriptMacro.java:286)
              at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:182)
              at org.xwiki.rendering.macro.script.AbstractScriptMacro.execute(AbstractScriptMacro.java:58)
              at org.xwiki.rendering.internal.transformation.macro.MacroTransformation.transform(MacroTransformation.java:297)
              at org.xwiki.rendering.internal.transformation.DefaultRenderingContext.transformInContext(DefaultRenderingContext.java:183)
              at org.xwiki.rendering.internal.transformation.DefaultTransformationManager.performTransformations(DefaultTransformationManager.java:101)
              at org.xwiki.display.internal.DocumentContentAsyncExecutor.executeInCurrentExecutionContext(DocumentContentAsyncExecutor.java:348)
              at org.xwiki.display.internal.DocumentContentAsyncExecutor.execute(DocumentContentAsyncExecutor.java:221)
              at org.xwiki.display.internal.DocumentContentAsyncRenderer.execute(DocumentContentAsyncRenderer.java:107)
              at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:157)
              at org.xwiki.rendering.async.internal.block.AbstractBlockAsyncRenderer.render(AbstractBlockAsyncRenderer.java:54)
              at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:273)
              at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)
              at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.execute(DefaultBlockAsyncRendererExecutor.java:125)
              at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:67)
              at org.xwiki.display.internal.DocumentContentDisplayer.display(DocumentContentDisplayer.java:43)
              at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:96)
              at org.xwiki.display.internal.DefaultDocumentDisplayer.display(DefaultDocumentDisplayer.java:39)
              at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:123)
              at org.xwiki.sheet.internal.SheetDocumentDisplayer.display(SheetDocumentDisplayer.java:52)
              at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:68)
              at org.xwiki.display.internal.ConfiguredDocumentDisplayer.display(ConfiguredDocumentDisplayer.java:42)
              at com.xpn.xwiki.doc.XWikiDocument.display(XWikiDocument.java:1215)
              at com.xpn.xwiki.doc.XWikiDocument.getRenderedContent(XWikiDocument.java:1356)
              at com.xpn.xwiki.doc.XWikiDocument.displayDocument(XWikiDocument.java:1305)
              at com.xpn.xwiki.doc.XWikiDocument.displayDocument(XWikiDocument.java:1272)
              at com.xpn.xwiki.api.Document.displayDocument(Document.java:786)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
              at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:565)
              at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:548)
              at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:219)
              at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:369)
              at org.apache.velocity.runtime.parser.node.ASTReference.value(ASTReference.java:701)
              at org.apache.velocity.runtime.parser.node.ASTExpression.value(ASTExpression.java:72)
              at org.apache.velocity.runtime.parser.node.ASTSetDirective.render(ASTSetDirective.java:240)
              at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:144)
              at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:423)
              at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:191)
              at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:144)
              at org.xwiki.velocity.internal.directive.TryCatchDirective.render(TryCatchDirective.java:86)
              at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:301)
              at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:423)
              at org.apache.velocity.Template.merge(Template.java:358)
              at org.apache.velocity.Template.merge(Template.java:262)
              at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:284)
              at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:316)
              at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)
              at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:217)
              at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:180)
              at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:137)
              at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:53)
              at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:267)
              at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)
              at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:267)
              at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)
              at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)
              at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:772)
              at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:745)
              at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:725)
              at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:711)
              at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:78)
              at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2505)
              at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:2483)
              at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:983)
              at sun.reflect.GeneratedMethodAccessor181.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
              at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:565)
              at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:548)
              at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:219)
              at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:369)
              at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:490)
              at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:144)
              at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:215)
              at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:328)
              at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:258)
              at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:301)
              at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:423)
              at org.apache.velocity.Template.merge(Template.java:358)
              at org.apache.velocity.Template.merge(Template.java:262)
              at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:284)
              at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:316)
              at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)
              at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:217)
              at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:180)
              at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:137)
              at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:53)
              at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:267)
              at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)
              at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:267)
              at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)
              at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)
              at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:772)
              at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:745)
              at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:725)
              at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:711)
              at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:78)
              at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2505)
              at com.xpn.xwiki.XWiki.parseTemplate(XWiki.java:2483)
              at com.xpn.xwiki.api.XWiki.parseTemplate(XWiki.java:983)
              at sun.reflect.GeneratedMethodAccessor181.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
              at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.doInvoke(UberspectImpl.java:565)
              at org.apache.velocity.util.introspection.UberspectImpl$VelMethodImpl.invoke(UberspectImpl.java:548)
              at org.apache.velocity.runtime.parser.node.ASTMethod.execute(ASTMethod.java:219)
              at org.apache.velocity.runtime.parser.node.ASTReference.execute(ASTReference.java:369)
              at org.apache.velocity.runtime.parser.node.ASTReference.render(ASTReference.java:490)
              at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:144)
              at org.apache.velocity.runtime.directive.VelocimacroProxy.render(VelocimacroProxy.java:215)
              at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:328)
              at org.apache.velocity.runtime.directive.RuntimeMacro.render(RuntimeMacro.java:258)
              at org.apache.velocity.runtime.parser.node.ASTDirective.render(ASTDirective.java:301)
              at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:144)
              at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:172)
              at org.apache.velocity.runtime.parser.node.ASTBlock.render(ASTBlock.java:144)
              at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:423)
              at org.apache.velocity.runtime.parser.node.ASTIfStatement.render(ASTIfStatement.java:191)
              at org.apache.velocity.runtime.parser.node.SimpleNode.render(SimpleNode.java:423)
              at org.apache.velocity.Template.merge(Template.java:358)
              at org.apache.velocity.Template.merge(Template.java:262)
              at org.xwiki.velocity.internal.DefaultVelocityEngine.evaluate(DefaultVelocityEngine.java:284)
              at com.xpn.xwiki.render.DefaultVelocityManager.evaluate(DefaultVelocityManager.java:316)
              at com.xpn.xwiki.internal.template.VelocityTemplateEvaluator.evaluateContent(VelocityTemplateEvaluator.java:95)
              at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.evaluateContent(TemplateAsyncRenderer.java:217)
              at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.renderVelocity(TemplateAsyncRenderer.java:180)
              at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:137)
              at com.xpn.xwiki.internal.template.TemplateAsyncRenderer.render(TemplateAsyncRenderer.java:53)
              at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.lambda$syncRender$0(DefaultAsyncRendererExecutor.java:267)
              at com.xpn.xwiki.internal.security.authorization.DefaultAuthorExecutor.call(DefaultAuthorExecutor.java:98)
              at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.syncRender(DefaultAsyncRendererExecutor.java:267)
              at org.xwiki.rendering.async.internal.DefaultAsyncRendererExecutor.render(DefaultAsyncRendererExecutor.java:250)
              at org.xwiki.rendering.async.internal.block.DefaultBlockAsyncRendererExecutor.render(DefaultBlockAsyncRendererExecutor.java:154)
              at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:772)
              at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:745)
              at com.xpn.xwiki.internal.template.InternalTemplateManager.renderFromSkin(InternalTemplateManager.java:725)
              at com.xpn.xwiki.internal.template.InternalTemplateManager.render(InternalTemplateManager.java:711)
              at com.xpn.xwiki.internal.template.DefaultTemplateManager.render(DefaultTemplateManager.java:78)
              at com.xpn.xwiki.XWiki.evaluateTemplate(XWiki.java:2505)
              at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java:179)
              at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:576)
              at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:250)
              at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:425)
              at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:228)
              at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
              at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
              at org.eclipse.jetty.servlet.ServletHolder$NotAsyncServlet.service(ServletHolder.java:1411)
              at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:763)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1631)
              at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:122)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618)
              at org.xwiki.wysiwyg.filter.ConversionFilter.doFilter(ConversionFilter.java:109)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618)
              at org.xwiki.container.servlet.filters.internal.SetHTTPHeaderFilter.doFilter(SetHTTPHeaderFilter.java:63)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618)
              at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:208)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618)
              at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:111)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618)
              at org.xwiki.resource.servlet.RoutingFilter.doFilter(RoutingFilter.java:132)
              at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1610)
              at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:549)
              at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
              at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:602)
              at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
              at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
              at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1610)
              at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
              at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1369)
              at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
              at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:489)
              at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1580)
              at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
              at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1284)
              at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
              at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:221)
              at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
              at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
              at org.eclipse.jetty.server.Server.handle(Server.java:501)
              at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383)
              at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:556)
              at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)
              at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273)
              at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
              at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
              at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)
              at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
              at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
              at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
              at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
              at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375)
              at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806)
              at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)
              at java.lang.Thread.run(Unknown Source)
      Caused by: org.xwiki.officeimporter.converter.OfficeConverterException: Error while performing conversion.
              at org.xwiki.officeimporter.internal.converter.DefaultOfficeConverter.convert(DefaultOfficeConverter.java:118)
              at org.xwiki.officeimporter.internal.builder.DefaultXHTMLOfficeDocumentBuilder.build(DefaultXHTMLOfficeDocumentBuilder.java:98)
              ... 224 common frames omitted
      Caused by: org.jodconverter.office.OfficeException: Task did not complete within timeout: LocalConversionTask{source=SourceDocumentSpecsFromFile{file=004-[FREE]-French-Sanskrit-Tables-NoHeader-250Pages-DOCX.docx, format=docx}, loadProperties=null, target=TargetDocumentSpecsFromFile{file=004-[FREE]-French-Sanskrit-Tables-NoHeader-250Pages-DOCX.html, format=html}, storeProperties=null}
              at org.jodconverter.office.AbstractOfficeManagerPoolEntry.execute(AbstractOfficeManagerPoolEntry.java:90)
              at org.jodconverter.office.AbstractOfficeManagerPool.execute(AbstractOfficeManagerPool.java:84)
              at org.jodconverter.office.LocalOfficeManager.execute(LocalOfficeManager.java:38)
              at org.jodconverter.LocalConverter$LocalConversionJob.doExecute(LocalConverter.java:188)
              at org.jodconverter.job.AbstractConversionJob.execute(AbstractConversionJob.java:57)
              at org.xwiki.officeimporter.internal.converter.DefaultOfficeConverter.convert(DefaultOfficeConverter.java:102)
              ... 225 common frames omitted
      Caused by: java.util.concurrent.TimeoutException: null
              at java.util.concurrent.FutureTask.get(Unknown Source)
              at org.jodconverter.office.AbstractOfficeManagerPoolEntry.execute(AbstractOfficeManagerPoolEntry.java:83)
              ... 230 common frames omitted
      2020-09-15 17:09:23,903 [Thread-35] ERROR o.j.o.VerboseProcess           - 1 warning generated.
      2020-09-15 17:09:23,910 [MessageDispatcher] WARN  .OfficeProcessManagerPoolEntry - Connection lost unexpectedly; attempting restart
      2020-09-15 17:09:23,912 [OfficeManagerPoolEntry-3] ERROR o.j.t.LocalConversionTask      - Local conversion failed.
      org.jodconverter.office.OfficeException: Could not apply filter org.jodconverter.filter.RefreshFilter.
              at org.jodconverter.filter.AbstractFilterChain.doFilter(AbstractFilterChain.java:111)
              at org.jodconverter.filter.DefaultFilterChain.doFilter(DefaultFilterChain.java:87)
              at org.jodconverter.filter.text.LinkedImagesEmbedderFilter.doFilter(LinkedImagesEmbedderFilter.java:68)
              at org.jodconverter.filter.AbstractFilterChain.doFilter(AbstractFilterChain.java:107)
              at org.jodconverter.filter.AbstractFilterChain.doFilter(AbstractFilterChain.java:90)
              at org.jodconverter.filter.DefaultFilterChain.doFilter(DefaultFilterChain.java:89)
              at org.jodconverter.task.LocalConversionTask.modifyDocument(LocalConversionTask.java:163)
              at org.jodconverter.task.LocalConversionTask.execute(LocalConversionTask.java:116)
              at org.jodconverter.office.OfficeProcessManagerPoolEntry.doExecute(OfficeProcessManagerPoolEntry.java:145)
              at org.jodconverter.office.AbstractOfficeManagerPoolEntry.lambda$execute$0(AbstractOfficeManagerPoolEntry.java:75)
              at java.util.concurrent.FutureTask.run(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
              at java.lang.Thread.run(Unknown Source)
      Caused by: com.sun.star.lang.DisposedException: null
              at com.sun.star.lib.uno.environments.remote.JobQueue.removeJob(JobQueue.java:210)
              at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:330)
              at com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:303)
              at com.sun.star.lib.uno.environments.remote.JavaThreadPool.enter(JavaThreadPool.java:87)
              at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:636)
              at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.request(ProxyFactory.java:146)
              at com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.invoke(ProxyFactory.java:128)
              at com.sun.proxy.$Proxy148.refresh(Unknown Source)
              at java.util.Optional.ifPresent(Unknown Source)
              at org.jodconverter.filter.RefreshFilter.doFilter(RefreshFilter.java:81)
              at org.jodconverter.filter.AbstractFilterChain.doFilter(AbstractFilterChain.java:107)
              ... 13 common frames omitted
      Caused by: java.io.IOException: com.sun.star.io.IOException: java.net.SocketException: Connection reset
              at com.sun.star.lib.uno.bridges.java_remote.XConnectionInputStream_Adapter.read(XConnectionInputStream_Adapter.java:55)
              at java.io.DataInputStream.readInt(Unknown Source)
              at com.sun.star.lib.uno.protocols.urp.urp.readBlock(urp.java:355)
              at com.sun.star.lib.uno.protocols.urp.urp.readMessage(urp.java:92)
              at com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge$MessageDispatcher.run(java_remote_bridge.java:105)
      

      Note: Last tested on XWiki Version: 10.11.8 with Libre Office: 6.2.4.2 64-bit and it was working.

        Attachments

        1. 004-[FREE]-French-Sanskrit-Tables-NoHeader-250Pages-DOCX.docx
          506 kB
        2. 11.10.5.jpg
          11.10.5.jpg
          69 kB
        3. 12.6.2 docx.jpg
          12.6.2 docx.jpg
          114 kB
        4. 12.6.2 Second Try.jpg
          12.6.2 Second Try.jpg
          99 kB
        5. 12.7.1.jpg
          12.7.1.jpg
          56 kB
        6. AfterChange 12.6.2.jpg
          AfterChange 12.6.2.jpg
          51 kB
        7. Java.jpg
          Java.jpg
          18 kB
        8. LibreOffice.jpg
          LibreOffice.jpg
          55 kB
        9. Office Importer - XWiki - Google Chrome 2020-09-16 10-16-48.7z
          3.26 MB
        10. Staging docx.jpg
          Staging docx.jpg
          178 kB

          Issue Links

            Activity

              People

              Assignee:
              surli Simon Urli
              Reporter:
              ganechitoaei Gabriela Anechitoaei
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response: