Hi All,
I want to read large file data from my KM repository using a Java Applet - we are using RepositoryFramework Web Service to do this:
http://help.sap.com/javadocs/NW04S/current/kmc/WebServiceDoc/WebServiceDocIndex.html
To avoid issues with larger files we use getContentFirstChunk and getContentNextChunk methods respectively. The problem is that the Token returned from getContentFirstChunk is marked as invalid when we attempt to use it in the subsequent method getContentNextChunk call. See error below.
The TokenLifetimeLimit is set to 1800000 - which I believe is more than enough.
Here is the first call in java..
contentChunk = rf_ws.getContentFirstChunk(rid, minChunckSize, 10000);
and the subsequent one with error
contentChunk = rf_ws.getContentNextChunk(contentChunk.getToken(), minChunckSize);
Any help on this problem is greatly appreciated - I have been so far not been able to find any solution on the forums.
Thanks in advance for your help
Error from call to getContentNextChunk using web service
<faultstring>Token not valid anymore!</faultstring><detail><ns1:getContentNextChunk_com.sap.netweaver.bc.rf.ws.exception.OperationFailedException xmlns:ns1='urn:RepositoryFrameworkWSWsd/RepositoryFrameworkWSVi' xmlns:pns='urn:com.sap.netweaver.bc.rf.ws.exception'><pns:callStack>OperationFailedException[MessageText: Token not valid anymore!|ExceptionName: OperationFailedException|CallStack: null] at com.sap.netweaver.bc.rf.ws.content.ContentManager.getContentNextChunk(ContentManager.java:144) at com.sap.netweaver.bc.rf.ws.bean.RepositoryFrameworkBean.getContentNextChunk(RepositoryFrameworkBean.java:6041) at com.sap.netweaver.bc.rf.ws.bean.RepositoryFrameworkLocalLocalObjectImpl0_0.getContentNextChunk(RepositoryFrameworkLocalLocalObjectImpl0_0.java:3904) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.sap.engine.services.webservices.runtime.EJBImplementationContainer.invokeMethod(EJBImplementationContainer.java:126) at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:174) at com.sap.engine.services.webservices.runtime.RuntimeProcessor.process(RuntimeProcessor.java:81) at com.sap.engine.services.webservices.runtime.servlet.ServletDispatcherImpl.doPost(ServletDispatcherImpl.java:90) at SoapServlet.doPost(SoapServlet.java:51) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364) at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1060) at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265) at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95) at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)