简体   繁体   English

org.apache.chemistry.opencmis.commons.exceptions.CmisUnauthorizedException:未经授权

[英]org.apache.chemistry.opencmis.commons.exceptions.CmisUnauthorizedException: Unauthorized

-I am getting Exception with STANDARD_AUTHENTICATION_PROVIDER org.apache.chemistry.opencmis.commons.exceptions.CmisUnauthorizedException: Unauthorized while createSession. -我在STANDARD_AUTHENTICATION_PROVIDER org.apache.chemistry.opencmis.commons.exceptions.CmisUnauthorizedException中遇到异常:createSession时未授权。

-previously it was working fine but suddenly stopped working,Also NTLM is working fine in my case. -以前工作正常,但突然停止工作,在我的情况下,NTLM也工作正常。

-Also when once authenticated with NTLM and if changing to Basic again Session is getting generated but while retrieving folder details are Unauthorized. -同样,一旦通过NTLM进行身份验证,并且再次更改为“基本”,则将生成会话,但在检索文件夹详细信息时未授权。

-CMIS producer is Active at Sharepoint repo end. -CMIS生产者在Sharepoint回购端处于活动状态。

parameter.put(SessionParameter.AUTHENTICATION_PROVIDER_CLASS, CmisBindingFactory.STANDARD_AUTHENTICATION_PROVIDER);

Stacktrace: 堆栈跟踪:

org.apache.chemistry.opencmis.commons.exceptions.CmisUnauthorizedException: Unauthorized
    at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:477)
    at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.read(AbstractAtomPubService.java:645)
    at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getRepositoriesInternal(AbstractAtomPubService.java:808)
    at org.apache.chemistry.opencmis.client.bindings.spi.atompub.RepositoryServiceImpl.getRepositoryInfo(RepositoryServiceImpl.java:69)
    at org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getRepositoryInfo(RepositoryServiceImpl.java:74)
    at org.apache.chemistry.opencmis.client.runtime.SessionImpl.connect(SessionImpl.java:1051)
    at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.createSession(SessionFactoryImpl.java:106)
    at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.createSession(SessionFactoryImpl.java:68)
    at com.dms.externaldriver.cmisdriver.interfaceimpl.DMSClientInterfaceImpl.getSession(DMSClientInterfaceImpl.java:193)
    at com.dms.externaldriver.cmisdriver.interfaceimpl.DMSClientInterfaceImpl.<init>(DMSClientInterfaceImpl.java:148)
    at com.dms.driver.action.DMSExternalAction.getDMSExternalListTreeXML(DMSExternalAction.java:656)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:899)
    at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1544)
    at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)
    at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:98)
    at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethod(XWorkMethodAccessor.java:90)
    at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1620)
    at ognl.ASTMethod.getValueBody(ASTMethod.java:91)
    at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
    at ognl.SimpleNode.getValue(SimpleNode.java:258)
    at ognl.Ognl.getValue(Ognl.java:470)
    at ognl.Ognl.getValue(Ognl.java:434)
    at com.opensymphony.xwork2.ognl.OgnlUtil$3.execute(OgnlUtil.java:401)
    at com.opensymphony.xwork2.ognl.OgnlUtil.compileAndExecuteMethod(OgnlUtil.java:453)
    at com.opensymphony.xwork2.ognl.OgnlUtil.callMethod(OgnlUtil.java:399)
    at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:438)
    at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:293)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:254)
    at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:196)
    at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:249)

Closing this question as it is resolved now. 现在解决此问题,请关闭它。

Re-entered the credential on server end and server was restarted. 重新输入服务器端的凭据,然后重新启动服务器。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException - org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException:意外的文档! 收到:原子条目 - org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Unexpected document! Received: Atom Entry CmisUnauthorizedException:未经授权-使用与Sharepoint 2013接口的Apache Chemistry库时出错 - CmisUnauthorizedException: Unauthorized - error using Apache Chemistry library interfacing to Sharepoint 2013 java.lang.NoClassDefFoundError:org / apache / chemistry / opencmis / client / api / SessionFactory - java.lang.NoClassDefFoundError: org/apache/chemistry/opencmis/client/api/SessionFactory CMIS java.lang.RuntimeException:java.lang.NoClassDefFoundError:org / apache / chemistry / opencmis / client / api / SessionFactory - CMIS java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/apache/chemistry/opencmis/client/api/SessionFactory org.apache.chemistry.opencmis.client.api.CmisObject上的getRenditions()返回null - getRenditions() on org.apache.chemistry.opencmis.client.api.CmisObject returns null 引起原因:java.lang.ClassNotFoundException:org.apache.chemistry.opencmis.server.shared.AbstractCmisHttpServlet - Caused by: java.lang.ClassNotFoundException: org.apache.chemistry.opencmis.server.shared.AbstractCmisHttpServlet 使用Apache Chemistry对OpenCMIS服务器进行本地绑定 - Local binding to an OpenCMIS server using Apache Chemistry Apache Chemistry OpenCMIS服务器不会在JBoss AS 7上部署 - Apache Chemistry OpenCMIS server won't deploy on JBoss AS 7 通过化学OpenCMIS更新户外内容类型 - Update alfresco content type through chemistry OpenCMIS
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM