Hello,
I am having some trouble with a Documentum CMS integration(via DFS) when running on a Mac.
I'm using the DFS SDK from the Documentum Developer Edition 6.5 SP2 together with that server.
If I use the version control service to request the current object with content for an identity which indicates an XML document, like this:
ContentTransferProfile contentTransferProfile = new ContentTransferProfile();
contentTransferProfile.setTransferMode(ContentTransferMode.UCF);
serviceContext.setProfile(contentTransferProfile);// Content Profile
ContentProfile contentProfile = new ContentProfile();
contentProfile.setFormatFilter(FormatFilter.ANY);
// Content Transfer Profile
ContentTransferProfile contentTransferProfile = new ContentTransferProfile();
contentTransferProfile.setTransferMode(ContentTransferMode.UCF);
// Operation options
OperationOptions operationOptions = new OperationOptions();
operationOptions.setContentProfile(contentProfile);
operationOptions.setContentTransferProfile(contentTransferProfile);IVersionControlService vcService =
ServiceFactory.getInstance().getRemoteService(
IVersionControlService.class, serviceContext, CORE_SERVICES, host);
vcService.getCurrent(objectIdentitySet, operationOptions);
I get this stack trace:
com.emc.documentum.fs.services.core.CoreServiceException: com.emc.documentum.fs.services.core.impl.execution.proto.dfc.DfcOperationException: E_CANNOT_PROCESS
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.emc.documentum.fs.rt.context.impl.compat.ClientReflectionServiceInvokerCompat60.getExceptionInstance(ClientReflectionServiceInvokerCompat60.java:176)
at com.emc.documentum.fs.rt.context.impl.compat.ClientReflectionServiceInvokerCompat60.invoke(ClientReflectionServiceInvokerCompat60.java:78)
at com.emc.documentum.fs.rt.context.impl.SoapClientInvocationHandler.invoke(SoapClientInvocationHandler.java:64)
at com.emc.documentum.fs.rt.context.impl.UcfClientInvocationHandler.handleUCF(UcfClientInvocationHandler.java:58)
at com.emc.documentum.fs.rt.context.impl.UcfClientInvocationHandler.invoke(UcfClientInvocationHandler.java:43)
at com.emc.documentum.fs.rt.context.impl.MtomCompatHandler60SP1.invoke(MtomCompatHandler60SP1.java:55)
at com.emc.documentum.fs.rt.context.impl.HttpSessionInvocationHandler.invoke(HttpSessionInvocationHandler.java:65)
at com.emc.documentum.fs.rt.context.impl.OperationOptionsHandler.invoke(OperationOptionsHandler.java:48)
at com.emc.documentum.fs.rt.context.impl.ReturnedContentTransformationHandler.invoke(ReturnedContentTransformationHandler.java:44)
at com.emc.documentum.fs.rt.context.impl.ContextThreadLocalInvocationHandler.invoke(ContextThreadLocalInvocationHandler.java:46)
at com.emc.documentum.fs.rt.context.impl.ServiceContextInvocationHandler.invoke(ServiceContextInvocationHandler.java:30)
at $Proxy14.getCurrent(Unknown Source)
at ro.sync.db.nxd.documentum.DocumentumServiceProvider.invokeVersionControlServiceGetCurrent(DocumentumServiceProvider.java:1262)
... 9 more
Caused by: java.lang.Exception: E_CANNOT_PROCESS
... 26 more
Caused by: com.emc.documentum.fs.services.core.CoreServiceException: Failed to load content for object [personalNoDTD.xml] [id =09de75d1800031b9] PROPERTIES [] (format->xml, pageNumber->0, pageModifier->)
... 26 more
Caused by: com.emc.documentum.fs.services.core.CoreServiceException: Export of UCF Content failed.
... 26 more
Caused by: java.lang.RuntimeException: Ucf processing failed.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.emc.documentum.fs.rt.context.impl.compat.ClientReflectionServiceInvokerCompat60.getExceptionInstance(ClientReflectionServiceInvokerCompat60.java:181)
... 21 more
Caused by: java.lang.Exception: An unknown error has occurred. Additional information: null - java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.emc.documentum.fs.rt.context.impl.compat.ClientReflectionServiceInvokerCompat60.getExceptionInstance(ClientReflectionServiceInvokerCompat60.java:144)
at com.emc.documentum.fs.rt.context.impl.compat.ClientReflectionServiceInvokerCompat60.invoke(ClientReflectionServiceInvokerCompat60.java:77)
... 20 more
And the ucf.client0.log has this stack trace:
Sep 8, 2009 1:02:08 PM com.documentum.ucf.client.logging.impl.UCFLogger error
SEVERE: An exception occured in request handler
java.lang.reflect.InvocationTargetException
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:597)
at com.documentum.ucf.client.transport.requesthandlers.impl.PutFileHandler.process(PutFileHandler.java:125)
at com.documentum.ucf.client.transport.impl.RequestProcessor.handleRequest(RequestProcessor.java:89)
at com.documentum.ucf.client.transport.impl.ClientSession.run(ClientSession.java:281)
Caused by: com.documentum.util.mac.MacFileFormatException: Error Adding Resource.
at com.documentum.util.mac.NativeMac.convertFromAppleDouble(NativeMac.java:257)
at com.documentum.util.mac.NativeMac.convertFromAppleDoublePair(NativeMac.java:106)
... 7
The resource is brought to the 'Documentum/Viewed' folder so the problem seems to occur after the transfer.
This works properly if the object I try to obtain the content for is not of XML type(tried CSS, TXT). Everything works as expected on other types of machines(Windows/linux).
The way I see it the UCF client seems to have issues here with XML documents, but that's precisely why I need UCF, for XML documents.
Is there any way to avoid this and still use UCF?
Regards,
Adrian Buza
-------------------
Oxygen XML Editor