I got that "There has been an problem contacting the CMIS server, please see the logs." error
and could debug that if the system variable "cmis_repositories" is not set, this happens. But no idea where the variable is supposed to be set initially.
So I executed in a php block
$name='debug';
$value=array(
'default' => array (
'label' => 'alfi2',
'user' => 'admin',
'password' => 'xxx',
'url' => 'http://192.168.0.22:8080/alfresco/service/cmis',
'repository_id' => 'b9ad3892-3a44-4fce-ae8a-1b125febfdf4',
'cmis_folderPath' => '/Sites/ebooks/documentLibrary/test',
'transport' => 'cmis_headerswing',
'headerswing_headers' => array (
// headers copied from $_SERVER[] to CMIS repository curl call
'HTTP_HOST' => 'FRONTENT_HOST',
'HTTP_HOST' => 'FRONTENT_HOST_AGAIN',
'HTTP_USER' => 'FRONTENT_USER',
'PHP_AUTH_USER' => 'FRONTENT_USER',
'PHP_AUTH_DIGEST' => 'FRONTEND_AUTH'
)
),
variable_set($name,$value);
Comments
Comment #1
IanNorton commentedComment #2
IanNorton commentedI've not used the repository switcher or headerswing module that I presume this error is from, but do intend to get it up to speed, could you post the details of the error from the log please?
Comment #3
windsurfitaly commentedHi
i've the same error:
There has been an problem contacting the CMIS server, please see the logs.
my conf in settings.php is:
------------------------------------
$conf['cmis_repositories'] = array(
'default' => array(
'user' => 'drupal',
'password' => 'drupal',
'url' => 'http://gestd.ins.it:8080/alfresco/s/cmis'
)
);
$conf['cmis_sync_map'] = array(
'page' => array(
'enabled' => TRUE,
'cmis_folderPath' => '/drupal'
)
);
--------------------------------------
i've installed all cmis modules pakages for D7.19
but no have any response from this link I've written in a menu:
"browser alfresco" --> http://alfresco:8089/cmis/browser
the log says me:
--------------------------------------
TIPO cmis_browser
DATA Venerdì, 12 Aprile, 2013 - 12:25
UTENTE Romano Leonardo
POSIZIONE http://alfresco:8089/cmis/browser
REFERRER http://alfresco:8089/
MESSAGGIO HTTP call to [http://gestd.ins.it:8080/alfresco/s/cmis/s/workspace:SpacesStore/arg/p?p... returned [404]. Response: Web Script Status 404 - Not Found Web Script Status 404 - Not Found The Web Script /alfresco/s/cmis/s/workspace:SpacesStore/arg/p has responded with a status of 404 - Not Found. 404 Description: Requested resource is not available. Message:Cannot find object for ObjectPathReference[storeRef=workspace://SpacesStore,path=/Company Home/sites/alfresco/documentLibrary] Server:Enterprise v3.3.0 (64) schema 4,010 Time:Apr 12, 2013 12:24:55 PM Diagnostics:Inspect Web Script (org/alfresco/cmis/item.get)
RILEVANZA errore
NOME HOST 127.0.0.1
OPERAZIONI
--------------------------------------
my CMIS module configuration settings for
CMIS Browser 7.x-1.2 is:
--------------------------------------
Set Root location for CMIS Broswer
Root Directory:
/
Root folder for CMIS nodes
On alfresco enterprice installation i've created
--------------------------------------
whay i can do for see my alfresco documents on drupal interface?
thank you everyone can hepl me
Comment #4
Yuri commentedI confirm that this bug still appears. cmis/browser throws the error:
"There has been an problem contacting the CMIS server, please see the logs"
Repository Configuration in settings.php:
log message:
HTTP call to [http://cmis.alfresco.com/cmisatom/371554cd-ac06-40ba-98b8-e6b60275cca7/children?id=workspace%3A%2F%2FSpacesStore%2F87b2f129-3ad0-4a46-a6ea-05ecbfb54aa1?] returned [404]. Response: Apache Chemistry OpenCMIS - objectNotFound errorHTTP Status 404 - objectNotFoundFolder not found: workspace://SpacesStore/87b2f129-3ad0-4a46-a6ea-05ecbfb54aa1? org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException: Folder not found: workspace://SpacesStore/87b2f129-3ad0-4a46-a6ea-05ecbfb54aa1? at org.alfresco.opencmis.CMISNodeInfoImpl.checkIfUseful(CMISNodeInfoImpl.java:721) at org.alfresco.opencmis.CMISNodeInfoImpl.checkIfFolder(CMISNodeInfoImpl.java:731) at org.alfresco.opencmis.AlfrescoCmisService.getOrCreateFolderInfo(AlfrescoCmisService.java:333) at org.alfresco.opencmis.AlfrescoCmisService.getChildren(AlfrescoCmisService.java:600) at org.apache.chemistry.opencmis.server.support.CmisServiceWrapper.getChildren(CmisServiceWrapper.java:566) at org.apache.chemistry.opencmis.server.impl.atompub.NavigationService.getChildren(NavigationService.java:91) at sun.reflect.GeneratedMethodAccessor588.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.chemistry.opencmis.server.shared.Dispatcher.dispatch(Dispatcher.java:83) at org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet.dispatch(CmisAtomPubServlet.java:218) at org.apache.chemistry.opencmis.server.impl.atompub.CmisAtomPubServlet.service(CmisAtomPubServlet.java:167) 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 org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:58) 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.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470) 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.ajp.AjpAprProcessor.process(AjpAprProcessor.java:427) at org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(AjpAprProtocol.java:384) at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1584) at java.lang.Thread.run(Thread.java:662)Comment #5
IanNorton commentedHi Yuri,
What's page are you accessing to get the Java error message? Is it at the cm is/browser root?
Comment #6
Yuri commentedYes, I'm just accessing mydrupalsite.com/cmis/browser, which only shows "There has been an problem contacting the CMIS server, please see the logs." The long error message is from the drupal log.
As far as I understood from the documentation, my repository configuration is correct, i use Alfresco 4, which uses :8080/alfresco/cmisatom
Comment #7
Yuri commentedOk, I actually solved my issue, which actually did have to do with the configuration: I now changed the URL to
:8080/alfresco/service/cmis instead of :8080/alfresco/cmisatom, and now the connection is established correctly.
Which is strange since Alfresco indicates that the Alfresco 4 version should use the alfresco/cmisatom URL to connect. Took me quite some time to find this out.
Comment #8
IanNorton commentedHi Yuri,
I missed the endpoint that you were using in the first post - support for the Alfresco 4 endpoint should be here very shortly, but the old one works fine for now.
Comment #9
IanNorton commented@groovehunter
Apologies for the delay, I'd need more information on the error given here, is there anything in the system logs? Could you let me know if you were able to resolve this issue?
Comment #10
Chilcano commentedHi Ian!
I have same error that @groovehunter when running CRON.
The cmis:document and cmis:folder were synced but with this error (run CRON):
In Drupal log console shows:
My detailed message error is:
HTTP call to [http://localhost:8080/alfresco/service/cmis/s/workspace:SpacesStore/i/af19bdaf-55dd-4bd5-86e5-237d0f9e5c1d/children] returned [400]. Response: Web Script Status 400 - Bad Request Web Script Status 400 - Bad Request The Web Script /alfresco/service/cmis/s/workspace:SpacesStore/i/af19bdaf-55dd-4bd5-86e5-237d0f9e5c1d/children has responded with a status of 400 - Bad Request. 400 Description: Request sent by the client was syntactically incorrect. Message:07300060 is not an object ID Exception:org.alfresco.cmis.CMISInvalidArgumentException - is not an object ID org.alfresco.cmis.mapping.CMISServicesImpl.getObject(CMISServicesImpl.java:1454) org.alfresco.cmis.mapping.CMISServicesImpl.getReadableObject(CMISServicesImpl.java:1472) org.alfresco.repo.cmis.reference.ObjectIdReference.getNodeRef(ObjectIdReference.java:59) org.alfresco.repo.cmis.rest.CMISScript.getNode(CMISScript.java:362) sun.reflect.GeneratedMethodAccessor999.invoke(Unknown Source) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:601) org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155) org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243) org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66) org.mozilla.javascript.gen.c25._c2(file:/C:/Alfresco42c/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/children.post.atom.js:54) org.mozilla.javascript.gen.c25.call(file:/C:/Alfresco42c/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/children.post.atom.js) org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97) org.mozilla.javascript.gen.c25._c0(file:/C:/Alfresco42c/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/children.post.atom.js:568) org.mozilla.javascript.gen.c25.call(file:/C:/Alfresco42c/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/children.post.atom.js) org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393) org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834) org.mozilla.javascript.gen.c25.call(file:/C:/Alfresco42c/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/children.post.atom.js) org.mozilla.javascript.gen.c25.exec(file:/C:/Alfresco42c/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/cmis/children.post.atom.js) org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:492) org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:198) org.alfresco.repo.processor.ScriptServiceImpl.execute(ScriptServiceImpl.java:212) org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:174) org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:102) org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1305) org.alfresco.repo.cmis.rest.CMISWebScript.executeScript(CMISWebScript.java:46) org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86) org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:433) org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:433) org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:495) org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:533) org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:349) org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:377) org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209) org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:118) javax.servlet.http.HttpServlet.service(HttpServlet.java:722) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407) org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002) org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585) org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1813) java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) java.lang.Thread.run(Thread.java:722) Exception:org.springframework.extensions.webscripts.WebScriptException - 07300060 is not an object ID org.alfresco.repo.cmis.reference.ObjectIdReference.getNodeRef(ObjectIdReference.java:63) Server:Community v4.2.0 (4576) schema 6.022 Time:30-ago-2013 16:56:35 Diagnostics:Inspect Web Script (org/alfresco/cmis/children.post)And my CMIS config is:
Any help ?
Regards.
Roger