sample code: line 1.Session session = getSession(); line 2.List<CmisObject> objList = new ArrayList<CmisObject>(); line 3.ItemIterable<QueryResult> results = session.query("select * from sc:doc", false); line 4.for (QueryResult qResult : results) {
When the program execute at line 4, then will return follow exception.
SLF4J: The requested version 1.5.11 by your slf4j binding is not compatible with [1.6] SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further details. Exception in thread "main" org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: 02180316 at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:452) at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.post(AbstractAtomPubService.java:570) at org.apache.chemistry.opencmis.client.bindings.spi.atompub.DiscoveryServiceImpl.query(DiscoveryServiceImpl.java:142) at org.apache.chemistry.opencmis.client.runtime.SessionImpl$3.fetchPage(SessionImpl.java:567) at org.apache.chemistry.opencmis.client.runtime.util.AbstractIterator.getCurrentPage(AbstractIterator.java:132) at org.apache.chemistry.opencmis.client.runtime.util.CollectionIterator.hasNext(CollectionIterator.java:48) at com.someco.cmis.examples.SomeCoCMISDataQueries.getQueryResults(SomeCoCMISDataQueries.java:106) at com.someco.cmis.examples.SomeCoCMISDataQueries.doExamples(SomeCoCMISDataQueries.java:47) at com.someco.cmis.examples.SomeCoCMISDataQueries.main(SomeCoCMISDataQueries.java:35)
I cannot re-create this problem with the information you've provided. It runs fine for me. Can you give me the specific version of Alfresco and application server you are running against?