AnsweredAssumed Answered

CmisObjectNotFoundException: Not Found

Question asked by mcasanket on Jun 7, 2014
Latest reply on Jun 25, 2014 by mcasanket
Hi All,

I have developed one app using <strong>alfresco android sdk 1.3.1.</strong>

This app was running fine but suddenly it started throwing exception like <strong>CmisObjectNotFoundException: Not Found…</strong>

Sometimes it starts working automatically when I am in different LAN connection.

The alfresco is installed on local machine…
I am using Android studio and emulator for development.. however I am not able to connect through mobile too….
I am connecting to the alfresco using IP address as below…
<strong>this.session = RepositorySession.connect("", username, password);</strong>
However the below line works fine..
<strong>String urlStr = url +"service/api/login?u=" +username +"&pw=" +password;</strong>

One more question I am having is, why I am not able to connect alfresco using localhost instead of IP address…?


06-07 05:32:31.670    2225-2237/ E/AndroidRuntime﹕ FATAL EXCEPTION: AsyncTask #1
    java.lang.RuntimeException: An error occured while executing doInBackground()
            at android.os.AsyncTask$3.done(
     Caused by: org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException: Not Found
            at android.os.AsyncTask$
     Caused by: <strong>org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException: Not Found</strong>
            at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(
            at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getRepositoriesInternal(