AnsweredAssumed Answered

文書のプレビューでLibreofficeのPDF変換に失敗

Question asked by koichinakata on Dec 9, 2016
Latest reply on May 18, 2017 by koichinakata

Amazon Linux上でAlfresco Community Edition 5.1.0(r127059-b7)を利用しています。

ファイル名に日本語があるファイルをプレビューするとPDF変換に失敗して、プレビュー失敗することがあります。
ファイル名を変更するとプレビューできるようになりますが、このような現象の対処方法を知っている方いらっしゃいますでしょうか?

PDF変換エラー

 

alfresco.logには以下エラーが出ています。

https://community.alfresco.com/thread/201799-libreoffice-type-detection-failed#comment-754708 の対処済みですが、まだ不足しているようで、ファイルパスが読み込めていないような感じです。


2016-12-09 10:12:10,634 ERROR [org.alfresco.repo.web.scripts.RepositoryContainer] [http-apr-8080-exec-22] Server error (11090008)
org.springframework.extensions.webscripts.WebScriptException: 11090004 Wrapped Exception (with status template): 11090007 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 11090006 Content conversion failed:
   reader: ContentAccessor[ contentUrl=store://2016/11/16/10/28/c24418b2-274f-4287-9352-258c22ec4939.bin, mimetype=application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, size=49575, encoding=UTF-8, locale=ja]
   writer: ContentAccessor[ contentUrl=store://2016/12/9/10/12/2e8000fb-4b6a-4143-8090-c7de9e16e30d.bin, mimetype=application/pdf, size=0, encoding=UTF-8, locale=ja_JP]
   options: {use=pdf, contentReaderNodeRef=workspace://SpacesStore/5cf6cb4d-915a-4255-b291-a72d07d0e6bb, sourceContentProperty=null, contentWriterNodeRef=workspace://SpacesStore/41324e58-3444-4c65-931a-f213fe95b97c, targetContentProperty=null, includeEmbedded=null}
   limits: {timeoutMs=120000, maxSourceSizeKBytes=1536}
        at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1138)
        at org.alfresco.repo.web.scripts.content.StreamContent.execute(StreamContent.java:195)
        at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:505)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:457)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:580)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:649)
        at org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:421)
        at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:301)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:382)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:210)
        at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
2016-12-09 10:11:56,272 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-20] Exception from executeScript - redirecting to status template error: Server error (11090004).  Details can be found in the server logs.
java.lang.RuntimeException: Server error (11090004).  Details can be found in the server logs.
        at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:321)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:382)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:210)
        at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.alfresco.repo.content.transform.ProxyContentTransformer.transformInternal(ProxyContentTransformer.java:100)
        at org.alfresco.repo.content.transform.AbstractContentTransformer2.transform(AbstractContentTransformer2.java:250)
        ... 31 more
Caused by: net.sf.jooreports.openoffice.connection.OpenOfficeException: conversion failed; com.sun.star.lang.IllegalArgumentException: Unsupported URL <file:///data/alfresco/tomcat/temp/Alfresco/JCOR%E7%99%BA%E8%A1%8C%E3%83%AC%E3%83%9D%E3%83%BC%E3%83%88%E4%B8%80%E8%A6%A7%EF%BC%882016%E5%B9%B49%E6%9C%88%EF%BC%89.xlsx-OpenOfficeContentTransformer-OpenOfficeContentTransformer-1481245915850/JCOR%E7%99%BA%E8%A1%8C%E3%83%AC%E3%83%9D%E3%83%BC%E3%83%88%E4%B8%80%E8%A6%A7%EF%BC%882016%E5%B9%B49%E6%9C%88%EF%BC%89.xlsx>: "type detection failed"
        at net.sf.jooreports.openoffice.converter.OpenOfficeDocumentConverter.convertInternal(OpenOfficeDocumentConverter.java:117)
        at net.sf.jooreports.openoffice.converter.AbstractOpenOfficeDocumentConverter.convert(AbstractOpenOfficeDocumentConverter.java:88)
        at org.alfresco.repo.content.transform.OpenOfficeContentTransformerWorker.convert(OpenOfficeContentTransformerWorker.java:118)
        at org.alfresco.repo.content.transform.OOoContentTransformerHelper.transform(OOoContentTransformerHelper.java:386)
        ... 41 more
2016-12-09 10:11:56,272 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] [http-apr-8080-exec-20] Exception from executeScript - redirecting to status template error: Server error (11090004).  Details can be found in the server logs.
java.lang.RuntimeException: Server error (11090004).  Details can be found in the server logs.
        at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:321)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:382)
        at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:210)
        at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
        at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)

Outcomes