cancel
Showing results for 
Search instead for 
Did you mean: 

Android SDK tutorial. Exception

vdmitriy
Champ in-the-making
Champ in-the-making
Hello! I am newbie in Alfresco. I read this article http://docs.alfresco.com/mobile_sdk/android/tasks/create-sdk-app.html and try to make the first android app. Unfortunately, i have this exception:
05-12 05:03:10.150: E/ConnectToRepo(1590): Failed to connect: org.alfresco.mobile.android.api.exceptions.AlfrescoSessionException:
org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException: Not Found

The problem is not related to internet access to Alfresco (I have some experience with android development 😃 Permission is correct, Mobile device has internet connection). I try to compile application with another chemistry-opencmis-android-client.
My device and programs:
Eclipse Mars
Alfresco Community - 5.1.0 (r115432-b1)
Windows 8.1
JDK 1.7
Virtual android 4.4
Redmi 3 with Cyanogenmod 12.1 (Android 5.1)
Please help. Sorry for my bad English!
========Added======================
My url string:
String url = "http://env-1224977.jelastic.regruhosting.ru/alfresco";

When I change to:
String url = "http://env-1224977.jelastic.regruhosting.ru/alfresco/cmisatom";

I get:
05-12 13:46:38.676: E/ConnectToRepo(31106): Failed to connect: org.alfresco.mobile.android.api.exceptions.AlfrescoSessionException:
org.apache.chemistry.opencmis.commons.exceptions.CmisNotSupportedException: Method Not Allowed

Code in MainActivity.java is CTRL+V CTRL+C from tutorial.
1 REPLY 1

vdmitriy
Champ in-the-making
Champ in-the-making
Promblem has solved.  I compiled sdk from source and it Word!