EMC DFS 出现com.emc.documentum.fs.rt.AuthenticationException 错误解决方式

来源:互联网 发布:西安移动网络怎么样 编辑:程序博客网 时间:2024/06/04 18:49
com.emc.documentum.fs.rt.AuthenticationException: Authorization failed, please review identities provided in service context "temporary/127.0.0.1-1346138764303-5653582314031878175"    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:66)    at com.emc.documentum.fs.rt.context.impl.UcfClientInvocationHandler.invoke(UcfClientInvocationHandler.java:47)    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.ReturnedContentTransformationHandler.invoke(ReturnedContentTransformationHandler.java:45)    at com.emc.documentum.fs.rt.context.impl.OperationOptionsHandler.invoke(OperationOptionsHandler.java:59)    at com.emc.documentum.fs.rt.context.impl.ContextThreadLocalInvocationHandler.invoke(ContextThreadLocalInvocationHandler.java:51)    at com.emc.documentum.fs.rt.context.impl.ServiceContextInvocationHandler.invoke(ServiceContextInvocationHandler.java:30)    at $Proxy15.execute(Unknown Source)    at com.emc.documentum.fs.doc.test.client.TQueryServiceTest.callQueryService(TQueryServiceTest.java:100)    at com.emc.documentum.fs.doc.test.client.TQueryServiceTest.main(TQueryServiceTest.java:123)


开始run EMC的DFS的一个例子TQueryServiceTest, 发现老是报Authorization failed的错误


private String repository =  "test";/* The username to login to the repository */private String userName =  "username";/* The password for the username */private String password =  "passowrd";/* The address where the DFS services are located */private String host = "http://IP:port/services";

以上的配置信息如果在DFC使用的时候是正常的, 可是到DFS这边就出错。


解决方法:

这里的 username 必须和 Documentum\config\dfc.properties 配置的dfc.globalregistry.username 完全一致

原创粉丝点击