Hi. I am developing swing application that works with CMS via DFS 6.0 SP1. When I am running it as standalone application it works fine, but when I try to make the same when I start app as web start application I am getting some strange error and what is more strange I am getting it only after second attempt to make the same things.
- I am checking out some files in CMS (just lock it without content downloading, because I have local copies already)
- I am changing local copies and try to upload them with DFS IVersionControlService.checkin(). I am using UCF as content transferring (because of some restriction of application on server side)
1170 [AWT-EventQueue-0] DEBUG com.emc.documentum.fs.rt.context.impl.UcfSessionManager - getCurrentHttpSession: exception
10.07.2009 15:01:29 WARNING: runtime invoked but not connected, exiting
com.emc.documentum.fs.rt.ServiceInvocationRuntimeException: Service invocation did not return a HTTP session id cookie (JSESSIONID)
at com.emc.documentum.fs.rt.context.impl.HttpSessionRetriever.retrieveHttpSessionId(HttpSessionRetriever.java:75)
at com.emc.documentum.fs.rt.context.impl.HttpSessionRetriever.getHttpSessionId(HttpSessionRetriever.java:33)
at com.emc.documentum.fs.rt.context.impl.HttpSessionInvocationHandler.invoke(HttpSessionInvocationHandler.java:54)
at com.emc.documentum.fs.rt.context.impl.OperationOptionsHandler.invoke(OperationOptionsHandler.java:48)
at com.emc.documentum.fs.rt.context.impl.ContextThreadLocalInvocationHandler.invoke(ContextThreadLocalInvocationHandler.java:36)
at com.emc.documentum.fs.rt.context.impl.ReturnedContentTransformationHandler.invoke(ReturnedContentTransformationHandler.java:34)
at com.emc.documentum.fs.rt.context.impl.ServiceContextInvocationHandler.invoke(ServiceContextInvocationHandler.java:30)
I was reading some post from this forum and did not find any useful comments about this problem. It looks like that I should set ActivityInfo for ContentTransferProfile.
Actually I do not understand the problem at all. Why application is working fine when it is standalone and became broken when I start it under WEB start.
Some snippets from my code
1. Check out
ObjectIdentitySet ids = new ObjectIdentitySet();
.....
IVersionControlService service = getFactory().getService(IVersionControlService.class);
service.checkout(ids, null);
2. Check in
DataPackage pkg = new DataPackage(.....);
OperationOptions options = new OperationOptions();
ContentTransferProfile transferProfile = options.getContentTransferProfile();
transferProfile.setTransferMode(ContentTransferMode.UCF);
options.getContentProfile().setFormatFilter(FormatFilter.ANY);
options.getPropertyProfile().setFilterMode(PropertyFilterMode.ALL);
pkg = getFactory().getService(IVersionControlService.class).
checkin(pkg, VersionStrategy.NEXT_MINOR, false, null, options);
Any ideas what is wrong I am doing?
Thanks,
Victor