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("http://192.168.43.73:8080/alfresco", 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…?

<strong>Exception:</strong>

06-07 05:32:31.670    2225-2237/com.sign.alfdroid.app E/AndroidRuntime﹕ FATAL EXCEPTION: AsyncTask #1
    java.lang.RuntimeException: An error occured while executing doInBackground()
            at android.os.AsyncTask$3.done(AsyncTask.java:299)
     Caused by: org.alfresco.mobile.android.api.exceptions.AlfrescoSessionException: org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException: Not Found
            at org.alfresco.mobile.android.api.session.impl.AbstractAlfrescoSessionImpl.createSession(AbstractAlfrescoSessionImpl.java:460)
            at org.alfresco.mobile.android.api.session.impl.RepositorySessionImpl.authenticate(RepositorySessionImpl.java:93)
            at android.os.AsyncTask$2.call(AsyncTask.java:287)
     Caused by: <strong>org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException: Not Found</strong>
            at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:474)
            at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.read(AbstractAtomPubService.java:621)
            at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getRepositoriesInternal(AbstractAtomPubService.java:787)

Outcomes