AnsweredAssumed Answered

Upload file from Java application into Alfresco

Question asked by dmmax on Nov 12, 2014
Latest reply on Nov 20, 2014 by jpotts
Hello,

Sorry for my level English.

I want to upload a file from Java application into Alfresco. I using the apache chemistry in eclipse, also I using Alfresco 4.2.f and maven (for including libs).

There are example, which I used: https://github.com/dmmax/CMIS

I don't know what to use folder path and I have a exception:
"Exception in thread "main" org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException: Object not found: /app:company_home/st:sites/cm:site/
   at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:475)
   at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.read(AbstractAtomPubService.java:634)
   at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getObjectInternal(AbstractAtomPubService.java:857)
   at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.getObjectByPath(ObjectServiceImpl.java:634)
   at org.apache.chemistry.opencmis.client.runtime.SessionImpl.getObjectByPath(SessionImpl.java:556)
   at org.apache.chemistry.opencmis.client.runtime.SessionImpl.getObjectByPath(SessionImpl.java:534)
   at example.exmpl.AspectExample.getTestFolder(AspectExample.java:84)
   at example.exmpl.AspectExample.createTestDoc(AspectExample.java:107)
   at example.exmpl.AspectExample.doExample(AspectExample.java:38)
   at example.exmpl.AspectExample.main(AspectExample.java:34)
"

Thanks,
Maxim Dm.

Outcomes