Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1133637

Summary: "IOException: write size larger than buffer can fit" is experienced by trying to list completed processes in BPM Suite 6.0.2
Product: [Retired] JBoss BPMS Platform 6 Reporter: Amana <ajuricic>
Component: Business CentralAssignee: Marco Rietveld <mrietvel>
Status: CLOSED EOL QA Contact: Lukáš Petrovický <lpetrovi>
Severity: high Docs Contact:
Priority: high    
Version: 6.0.2CC: kverlaen, mbaluch
Target Milestone: ER3   
Target Release: 6.1.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-27 20:07:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
error_message.png none

Description Amana 2014-08-25 16:34:35 UTC
Created attachment 930598 [details]
error_message.png

Description of problem:

By trying to list completed processes (with a large numbers of result sets), a message is displayed in business-central UI (see error_message.png):

	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

It only happens with a large result set (it seems like there is more than 82.600 completed process instances in the ProcessInstanceLog table).

Looking at TransmissionBuffer class, it should be the expected behaviour and the best approach should be avoid keeping the database tables from growing infinitely. However, this error message could a bit more user-friendly.

Version-Release number of selected component (if applicable):

BPM Suite 6

How reproducible:

By trying to list completed processes (with a large numbers of result sets - more than 82.600 )


Actual results:

Unexpected error encountered : java.io.IOException:write size larger than buffer can fit

Expected results:

The message could be a bit more user-friendly.


Additional info:

Comment 2 Mauricio Salatino 2014-09-17 16:55:13 UTC
Is there any easy way to reproduce this error? I mean how did you generate 82.600 completed processes instances? I need a way to reproduce this in gwt hosted mode (with H2), so I can reproduce the issue.

Comment 3 Mauricio Salatino 2014-11-19 17:59:37 UTC
Can you please retry with the latest product build? Based on the 6.2.x branch?
I couldn't reproduce this issue.

Comment 4 Pavel Kralik 2015-01-12 16:41:28 UTC
How can I reproduce and generate 82.600 completed processes instances in testing environment?

Comment 6 Pavel Kralik 2015-01-13 17:13:46 UTC
BPMS 6.1.0.ER3. Verified with 90,000 process instances.

Comment 7 PnT Account Manager 2017-12-07 23:35:55 UTC
Employee 'msalatin' has left the company.