Page 1 of 1

Preview fetch through SDK

PostPosted:Wed May 09, 2018 9:18 am
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!

Re: Preview fetch through SDK

PostPosted:Fri May 11, 2018 6:05 pm
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.

Re: Preview fetch through SDK

PostPosted:Tue May 22, 2018 12:18 pm
by greengold
ahh, I see now.
okay, thanks for the info!