Page 1 of 1

preview rendering error

PostPosted:Tue Jul 18, 2017 9:13 am
by greengold
Hi, me again.. :wink:
I have noticed that thumbnail rendering on community version gives me error when I click on preview:
Code: Select all
The system has generated an error

Conversion: IO exception executing command: /usr/bin/convert /home/tepo/tomcat/temp/okm5179837448597163680.jpg /home/tepo/tomcat/repository/cache/pdf/ee0efbca-d688-483a-9ad0-1fee7dd67486.pdf
calling 'getThumbnail()' via SDK results in 'UnknowException'...
currently I am on version 6.3.4 build 47204ef and I am uploading just regullar image...

Can you check, please?

Re: preview rendering error

PostPosted:Thu Jul 20, 2017 9:09 pm
by jllort
Please try executing the command from terminal to get a complete message error.

Re: preview rendering error

PostPosted:Tue Aug 01, 2017 9:38 am
by greengold
turned out that I was missing 'convert' program in my system. (weired that it's external dependency)
now I have installed ImageMagick that seems to contain it, but in the UI preview is just still being loaded ('starting conversion') and it gives 'com.openkm.sdk4j.exception.UnknowException' when I request thumbnail via SDK.

Re: preview rendering error

PostPosted:Wed Aug 02, 2017 10:47 am
by jllort
Take a look at catalina.log file for a complete stack trace error. Might be some error while executing command line tool.

Re: preview rendering error

PostPosted:Mon Oct 30, 2017 6:03 pm
by greengold
catalina.log contains no errors for this. convert path is correctly set in OpenKM.cfg.. I don't know

Re: preview rendering error

PostPosted:Wed Nov 01, 2017 3:36 pm
by jllort
I think we have lost the topic of the issue. Seems the problem with generating the thumbnail is right, but now your issue is related with SDK. Please do not merge several topics in the same post, because create confusion to us and future readers. Please add another ticket for the new topic related with SDK.

Re: preview rendering error

PostPosted:Wed Nov 08, 2017 3:29 pm
by greengold
well, I am combining the thumbnail issue from the OKM UI and SDK by of the first post because I think the issues might be related.
Now, you actually agree that community version have some issue regarding this?

Re: preview rendering error

PostPosted:Thu Nov 09, 2017 10:39 am
by jllort
I do not know if the issue with thumbnail is related or not ... but are distinct ( at least of the end user point of view ) and if we continue merging topics we will lost the focus, please add another post for it.

Re: preview rendering error

PostPosted:Tue May 01, 2018 1:26 pm
by greengold
I am back into this, it's still not resolved for me. Can't see previews neither in OKM UI nor getting data through the SDK.

this is what I found in the 'openkm.log' toady:
Code: Select all
2018-05-01 15:16:27,699 [http-bio-0.0.0.0-8080-exec-106] [] WARN  o.apache.cxf.jaxrs.utils.JAXRSUtils - No op
eration matching request path "/OpenKM/services/rest/document/getThumbnail" is found, Relative Path: /getThum
bnail, HTTP Method: GET, ContentType: */*, Accept: image/png,. Please enable FINE/TRACE log level for more de
tails.
2018-05-01 15:16:27,700 [http-bio-0.0.0.0-8080-exec-106] [] WARN  o.a.c.j.i.WebApplicationExceptionMapper - j
avax.ws.rs.ClientErrorException
        at org.apache.cxf.jaxrs.utils.SpecExceptions.toHttpException(SpecExceptions.java:110)
        at org.apache.cxf.jaxrs.utils.ExceptionUtils.toHttpException(ExceptionUtils.java:149)
        at org.apache.cxf.jaxrs.utils.JAXRSUtils.findTargetMethod(JAXRSUtils.java:477)
        at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:216)
        at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:88)
        at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:272)
        at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
        at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:241)
        at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:248)
        at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:222)
        at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:153)
        at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:171)
        at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:286)
        at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:211)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:620)
        at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:262)


I don't feel we're merging different issues in here. it's still the preview fetch issue for me. Please point me out why do you think we are discussing multiple topics in here.

edit: I have set 'log4j.logger.com.openkm=FINE' in log4j.properties file, without the restart through (testers are working on the instance, i'm not allowed to restart now) but here I read it shoul apply without restart.

Thanks!

Re: preview rendering error

PostPosted:Thu May 03, 2018 3:58 pm
by jllort
You are showing me a stack trace what refers to rest URL for getting thumbnail /OpenKM/services/rest/document/getThumbnail, we are not using it from the UI you are calling from another place. Please add another post for it.

Re: preview rendering error

PostPosted:Wed May 09, 2018 9:00 am
by greengold
well, as you wish, I'll start another thread.
but by of the first post I'm talking about SDK and OpenKM UI also.
And I need both.
So we can discuss here OKM UI, if you're okay with that. :wink:

Re: preview rendering error

PostPosted:Fri May 11, 2018 6:04 pm
by jllort
Can you preview PDF files or not?
Can you preview DOC files or not?

Re: preview rendering error

PostPosted:Tue May 22, 2018 12:18 pm
by greengold
I can not preview them in OKM UI

Re: preview rendering error

PostPosted:Wed May 23, 2018 6:55 am
by jllort
You can not preview PDF files in the UI ?