I get the following error during trying to upload a document using cifs. It doesn't happern with all files and it doesn;t relative to file size
I use such code
System.out.println("Content Size 1=" + BigInteger.valueOf(content.length));
ContentStream contentStream = new ContentStreamImpl(filename, BigInteger.valueOf(content.length), mimetype, stream);
System.out.println("Content Size 2=" + contentStream.getBigLength());
// create a major version
List<Ace> addAces = new LinkedList<Ace>();
List<Ace> removeAces = new LinkedList<Ace>();
List<Policy> policies = new LinkedList<Policy>();
Document newDoc = ((Folder) object).createDocument(properties1, contentStream, VersioningState.NONE,
policies, removeAces, addAces, session.getDefaultContext());
org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: Request Entity Too Large
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:452)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.post(AbstractAtomPubService.java:570)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.ObjectServiceImpl.createDocument(ObjectServiceImpl.java:112)
at org.apache.chemistry.opencmis.client.runtime.SessionImpl.createDocument(SessionImpl.java:716)
at org.apache.chemistry.opencmis.client.runtime.FolderImpl.createDocument(FolderImpl.java:88)
at gnomon.gi9.dms.DMServiceImpl.createDocument(DMServiceImpl.java:136)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)