In my project I have to migrate file to alfresco.
I have finished to create the application(java) and try it on my local using alfresco 4.0.0(4003) and it works well.
But when I try to run it on server it fails.
Exception in thread "main" org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: Length Required
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:487)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.post(AbstractAtomPubService.java:629)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.createFolder(ObjectServiceImpl.java:158)
at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createFolder(SessionImpl.java:814)
at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createFolder(FolderImpl.java:136)
at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createFolder(FolderImpl.java:479)
at org.bappenas.cmis.alfresco.openCmisAlfresco.connect(openCmisAlfresco.java:394)
at org.bappenas.cmis.alfresco.openCmisAlfresco.main(openCmisAlfresco.java:71)
The server used alfresco 4.0.0(3979).
Any ideas?