Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1133637 - "IOException: write size larger than buffer can fit" is experienced by trying to list completed processes in BPM Suite 6.0.2
"IOException: write size larger than buffer can fit" is experienced by trying...
Status: VERIFIED
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Business Central (Show other bugs)
6.0.2
Unspecified Unspecified
high Severity high
: ER3
: 6.1.0
Assigned To: Marco Rietveld
Lukáš Petrovický
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-25 12:34 EDT by Amana
Modified: 2018-03-31 18:09 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
error_message.png (229.93 KB, image/png)
2014-08-25 12:34 EDT, Amana
no flags Details

  None (edit)
Description Amana 2014-08-25 12:34:35 EDT
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 12:55:13 EDT
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 12:59:37 EST
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 11:41:28 EST
How can I reproduce and generate 82.600 completed processes instances in testing environment?
Comment 6 Pavel Kralik 2015-01-13 12:13:46 EST
BPMS 6.1.0.ER3. Verified with 90,000 process instances.
Comment 7 PnT Account Manager 2017-12-07 18:35:55 EST
Employee 'msalatin@redhat.com' has left the company.

Note You need to log in before you can comment on or make changes to this bug.