CmisConnectionException - from Session getting objectByPath

cancel
Showing results for 
Search instead for 
Did you mean: 
SG
Member II

CmisConnectionException - from Session getting objectByPath

I am successfully getting session and repository info. But any call to session such as the ones below throw CmisConnectionException.

session.getRootFolder();

session.getObjectByPath("/Sites/mysite/documentLibrary")

 

I write code as:

 

parameter.put(SessionParameter.USER, "admin");
parameter.put(SessionParameter.PASSWORD, "admin");
			
parameter.put(SessionParameter.ATOMPUB_URL, "https://myhost/alfresco/api/-default-/cmis/versions/1.1/atom");
parameter.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());
parameter.put(SessionParameter.OBJECT_FACTORY_CLASS, "org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl");

I print out repository info as:

Id=-default-

CmisVersionSupported= 1.1

ProductName=Alfresco Enterprise

 

I can successfully download the URL of "https://myhost/alfresco/api/-default-/cmis/versions/1.1/atom"

 

I tried the above setting in CMIS-Workbench also, and I get the same CmisConnectionException: Parsing exception.

 

I get the exception as the following.

 

 

 

 

org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Parsing exception!
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.parse(AbstractAtomPubService.java:596)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getObjectInternal(AbstractAtomPubService.java:843)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.getObjectByPath(ObjectServiceImpl.java:628)
at org.apache.chemistry.opencmis.client.runtime.SessionImpl.getObjectByPath(SessionImpl.java:554)
at org.apache.chemistry.opencmis.client.runtime.SessionImpl.getObjectByPath(SessionImpl.java:532)

MORE EXCEPTIONS

Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
at [row,col {unknown-source}]: [1,0]
at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:677)
at com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2139)
at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2045)
at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1134)
at org.apache.chemistry.opencmis.commons.impl.XMLUtils.next(XMLUtils.java:228)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.parse(AtomPubParser.java:133)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.parse(AbstractAtomPubService.java:594)
... 14 more

1 Reply
EddieMay
Alfresco Employee

Re: CmisConnectionException - from Session getting objectByPath

Hi @SG,

Is the Alfresco licence valid?

Thanks, 

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!