"IOException: write size larger than buffer can fit" is experienced by trying to list completed processes in JBoss BPM Suite 6.0.x
Environment
- Red Hat JBoss Business Process Management Suite (BPM Suite) 6.0.x
Issue
When trying to list completed processes IOException
is experienced in business-central UI:
Unexpected error encountered : java.io.IOException:write size larger than buffer can fit
This is the root cause in server.log
:
Caused by: java.io.IOException: write size larger than buffer can fit
at org.jboss.errai.bus.server.io.buffers.TransmissionBuffer.write(TransmissionBuffer.java:208)
at org.jboss.errai.bus.server.io.buffers.TransmissionBuffer.write(TransmissionBuffer.java:186)
at org.jboss.errai.bus.server.io.BufferHelper.encodeAndWrite(BufferHelper.java:38)
at org.jboss.errai.bus.server.io.BufferDeliveryHandler.deliver(BufferDeliveryHandler.java:54)
at org.jboss.errai.bus.server.MessageQueueImpl.offer(MessageQueueImpl.java:123)
at org.jboss.errai.bus.server.ServerMessageBusImpl.enqueueForDelivery(ServerMessageBusImpl.java:411)
... 45 more
Resolution
Although this is an expected behavior in JBoss BPM Suite 6.0.x, it has been improved in 6.1. For 6.0 version, the best approach would be avoid keeping the database tables from growing infinitely. How to keep the database tables from growing infinitely in jBPM 5? describes how to handle with history log tables, it refers to BRMS 5 but the approach about history log tables should be the same to BPM Suite 6 tables.
Root Cause
The issue was reported in BZ-1133637. This exception raises only with a large result set (it seems like there are more than 82.600 completed process instances in the ProcessInstanceLog
table). According to the TransmissionBuffer
class, this is an expected behavior in BPM Suite 6.0.x.
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.
Comments