• Preview fetch through SDK

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #45799  by greengold
 
Hi I'm having trouble fetching thumbnail preview via SDK.
This is what I do:
Code: Select all
okmWebSrv.getOkmService().getThumbnail(uuid, ThumbnailType.THUMBNAIL_PROPERTIES);
this is what I have in openkm.log
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)
The SDK call in my code ends up with 'UnknownException' which is not very helpful.

can you, please, tell me everything I need to set in order to use your thumbnail sdk service?

I'm using:
OpenKM SDK: 2.3
OpenKM tomcat bundle 6.3 (I believe)

Thanks!
 #45817  by jllort
 
SDK 2.3 is only for professional version will not working with the community. With community is only available 1.x what has the correspondence with REST web services available at the community. I think we have found the reason for the issue.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.