CMIS error while connecting to Filenet

Tuesday, July 8, 2014

Facing an issue while using the CMIS service to upload files. Filenet is the Content management system in use here. All files below 20KB are getting uploaded to Filenet but everything above 20KB fails and we get the following error

Exception in thread "main" org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Cannot access "": Error writing request body to server at org.apache.chemistry.opencmis.client.bindings.spi.http.DefaultHttpInvoker.invoke( at org.apache.chemistry.opencmis.client.bindings.spi.http.DefaultHttpInvoker.invokePOST( at at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.createDocument( at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createDocument( at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument( at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument( at com.botw.filenet.cmis.Test.createDocument( at com.botw.filenet.cmis.Test.main(

The code I am using is running fine against an Alfresco repository, I am able to upload files upto 70MB in size. What could be missing here?