06-01-2014 07:49 AM
org.apache.chemistry.opencmis.commons.exceptions.CmisStorageException: Expected 654502 bytes but retrieved 0 bytes!
at org.alfresco.opencmis.AlfrescoCmisServiceImpl.copyToTempFile(AlfrescoCmisServiceImpl.java:2812)
at org.alfresco.opencmis.AlfrescoCmisServiceImpl.checkIn(AlfrescoCmisServiceImpl.java:2029)
if (document.isVersionSeriesCheckedOut()) {
LOG.info("Cancelling checkout of document with id {}.", document.getId());
document.cancelCheckOut();
}
document.delete();
01-16-2017 12:57 PM
I had a similar problem on a clustered Alfresco with 5 nodes. It is due to a cluster caching bug. We had to tether our client to a single instance of Alfresco. Since this is not optimal, we have introduced some retry logic similar to the RetryingTransactionHandler, and we are going to test if we can now remove the tethering.
We tested, and we still need the tethering even though our retry logic retries up to 10 times per transaction with a wait of 1 second in between.
02-06-2018 02:49 PM
Hello All,
We are getting "Expected 250536 bytes but retrieved 0 bytes!" in everyday file upload into Alfresco and If we re-run same process again then we are not getting any exception. We couldn't see a pattern when and why it is happening.
I read above answers in the thread but I am looking for how to re-produce the error and find the solution.
We are using below libraries.
org.alfresco.cmis.client = 1.0
org.apache.chemistry.opencmis = 0.13.0
Please advise.
Thanks,
Sachin
06-18-2018 05:38 PM
Read the kayne zhang answer.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.