cancel
Showing results for 
Search instead for 
Did you mean: 

Android App and custom aspect

wimc
Champ in-the-making
Champ in-the-making
I am trying to extend the Android App to be able to upload content, have the server add an aspect, and then edit the meta data for this content on the device/app.

Using 4.2 HEAD from about August on my dev server if that's relevant.

I created new aspect in the app using the EXIF aspect as example.  Wanting to get the new aspect's details to display on the details page of each item.  I could not get this to work, and currently it is just ignoring my aspect.  Anyone have pointes on how to accomplish this?

Additionally, whenever I try to load a folder with content that contains my custom aspect (designed using FDK), I get this in LogCat:
 org.alfresco.mobile.android.api.exceptions.AlfrescoServiceException: org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Parsing exception!    at org.alfresco.mobile.android.api.exceptions.impl.ExceptionHelper.convertException(ExceptionHelper.java:114)    at org.alfresco.mobile.android.api.services.impl.AlfrescoService.convertException(AlfrescoService.java:302)    at org.alfresco.mobile.android.api.services.impl.AbstractDocumentFolderServiceImpl.getChildren(AbstractDocumentFolderServiceImpl.java:179)    at org.alfresco.mobile.android.api.asynchronous.NodeChildrenLoader.loadInBackground(NodeChildrenLoader.java:141)    at org.alfresco.mobile.android.api.asynchronous.NodeChildrenLoader.loadInBackground(NodeChildrenLoader.java:1)    at android.content.AsyncTaskLoader.onLoadInBackground(AsyncTaskLoader.java:301)    at android.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:68)    at android.content.AsyncTaskLoader$LoadTask.doInBackground(AsyncTaskLoader.java:56)    at android.os.AsyncTask$2.call(AsyncTask.java:287)    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)    at java.util.concurrent.FutureTask.run(FutureTask.java:137)    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)    at java.lang.Thread.run(Thread.java:856) Caused by: org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Parsing exception!    at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.parse(AbstractAtomPubService.java:579)    at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getTypeDefinitionInternal(AbstractAtomPubService.java:873)    at org.apache.chemistry.opencmis.client.bindings.spi.atompub.RepositoryServiceImpl.getTypeDefinition(RepositoryServiceImpl.java:93)    at org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getTypeDefinition(RepositoryServiceImpl.java:137)    at org.apache.chemistry.opencmis.client.runtime.SessionImpl.getTypeDefinition(SessionImpl.java:525)    at org.alfresco.cmis.client.impl.AlfrescoUtils.getAspectTypes(AlfrescoUtils.java:91)    at org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl.convertProperties(AlfrescoObjectFactoryImpl.java:250)    at org.apache.chemistry.opencmis.client.runtime.AbstractCmisObject.initialize(AbstractCmisObject.java:132)    at org.alfresco.cmis.client.impl.AlfrescoDocumentImpl.initialize(AlfrescoDocumentImpl.java:49)    at org.apache.chemistry.opencmis.client.runtime.DocumentImpl.<init>(DocumentImpl.java:59)    at org.alfresco.cmis.client.impl.AlfrescoDocumentImpl.<init>(AlfrescoDocumentImpl.java:43)    at org.alfresco.cmis.client.impl.AlfrescoObjectFactoryImpl.convertObject(AlfrescoObjectFactoryImpl.java:326)    at org.alfresco.mobile.android.api.services.impl.AbstractDocumentFolderServiceImpl.getChildren(AbstractDocumentFolderServiceImpl.java:159)    … 11 more Caused by: org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException: Too many extensions!    at org.apache.chemistry.opencmis.commons.impl.XMLWalker.handleExtension(XMLWalker.java:95)    at org.apache.chemistry.opencmis.commons.impl.XMLWalker.walk(XMLWalker.java:55)    at org.apache.chemistry.opencmis.commons.impl.XMLConverter$10.read(XMLConverter.java:1748)    at org.apache.chemistry.opencmis.commons.impl.XMLConverter$10.read(XMLConverter.java:1623)    at org.apache.chemistry.opencmis.commons.impl.XMLWalker.walk(XMLWalker.java:53)    at org.apache.chemistry.opencmis.commons.impl.XMLConverter.convertTypeDefinition(XMLConverter.java:1109)    at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.parseElement(AtomPubParser.java:334)    at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.parseEntry(AtomPubParser.java:281)    at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AtomPubParser.parse(AtomPubParser.java:111)    at org.apache.chemistry.opencmis.client.bi‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍


Is the app not interpreting my aspect properly?

Thanks
1 REPLY 1

jm_pascal
Star Contributor
Star Contributor
Hello,

Could you provide the Extension Model you implement (XML file) and the CMIS response when you try to list files inside a folder which contains the extension.

Thanks.