我正在使用带有JDK 1.5的Alfresco 5。以下是我正在使用的罐子
我已经配置了所有参数,并且在获取存储库时收到了以下错误 - (repositories = factory.getRepositories(parameter)
)
org.apache.jasper.JasperException: org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Unexpected document! Received: HTML document
at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:491)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:419)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.csdcsystems.amanda.common.CsdcServletFilter.doFilter(CsdcServletFilter.java:157)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Unexpected document! Received: HTML document
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.parse(AbstractAtomPubService.java:584)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getRepositoriesInternal(AbstractAtomPubService.java:765)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:62)
at org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:85)
at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:109)
at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:96)
at com.csdcsystems.amanda.edms.EDMSAdaptor_Alfresco.initialize(EDMSAdaptor_Alfresco.java:127)
at com.csdcsystems.amanda.edms.EDMSAdaptorFactory.getAdaptor(EDMSAdaptorFactory.java:38)
at org.apache.jsp.english.FolderDocumentDetail_005fSend_jsp._jspService(FolderDocumentDetail_005fSend_jsp.java:125)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
... 18 more
请确认我使用的罐子是否正确。如果需要添加任何内容,请与我们联系。
谢谢, Thanga
答案 0 :(得分:1)
Alfresco(企业和社区)支持版本5.0的JDK 7 U60 X64和版本5.0.1的JDK 7 U67 X64,JDK 8 U25 X64,您可以在Alfresco supported platforms document版本5.0.x中找到在JDK部分。
请注意,JDK表示Oracle JDK。
关于您获得的例外情况,似乎错误的响应类型会返回到您的通话中。如上所述,here可能是CMIS实施版本的问题。 Alfresco 5.0使用CMIS 1.1实现。
我建议你看看这个Alfresco CMIS wiki以获取更多信息,特别是像Apache Chemistry这样的CMIS工具包,以便下载更新的版本。