# Error While Writing Record

**URL:** <https://forum.cloverdx.com/t/error-while-writing-record/123>\
**Category:** CloverDX Platform\
**Created:** [July 16, 2007, 12:00am UTC](https://forum.cloverdx.com/t/error-while-writing-record/123 "2007-07-16T00:00:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![oldforum](https://avatars.discourse-cdn.com/v4/letter/o/13edae/32.png) [@oldforum](https://forum.cloverdx.com/u/oldforum)\
**Post date:** [July 16, 2007, 12:00am UTC](https://forum.cloverdx.com/t/error-while-writing-record/123/1 "2007-07-16T00:00:00Z")

</div>

Hi,  
Exception : java.nio.BufferOverflowException  
What i assume is , This Exception is coming at time of Port.writeRecord method. Sometimes, while processing i m not getting this error and some times i m getting this error for same data file and graph file.

What could be the possible reason for  
different output on different occasions?

---

<div class="post-metadata">

**Author:** ![oldforum](https://avatars.discourse-cdn.com/v4/letter/o/13edae/32.png) [@oldforum](https://forum.cloverdx.com/u/oldforum)\
**Post date:** [July 16, 2007, 8:23am UTC](https://forum.cloverdx.com/t/error-while-writing-record/123/2 "2007-07-16T08:23:44Z")

</div>

I had BufferOverflowException in Merge Component - when its processing many records and also waiting on the previous component to finish processing.

By taking out the Mege component to new phase, I could resolve this issue.

---

<div class="post-metadata">

**Author:** ![oldforum](https://avatars.discourse-cdn.com/v4/letter/o/13edae/32.png) [@oldforum](https://forum.cloverdx.com/u/oldforum)\
**Post date:** [July 16, 2007, 8:23am UTC](https://forum.cloverdx.com/t/error-while-writing-record/123/3 "2007-07-16T08:23:45Z")

</div>

Hi David,

For debugging i changed following lines in Graph/BufferdEdge packBuffer() method.

This:" if (dataBuffer.remaining()==0 || readPosition==position)" was changed with  
“if (readPosition==position)” and it went through fine uptil now.

Ranvir

---

<div class="post-metadata">

**Author:** ![oldforum](https://avatars.discourse-cdn.com/v4/letter/o/13edae/32.png) [@oldforum](https://forum.cloverdx.com/u/oldforum)\
**Post date:** [July 16, 2007, 8:23am UTC](https://forum.cloverdx.com/t/error-while-writing-record/123/4 "2007-07-16T08:23:46Z")

</div>

Hello Ranvir !

In general, this may mean that the data you are processing is quite large (data records) and sometimes does not fit into the internal buffer - set to 8192. Of course, it may mean that there is some internal error, but I would need more details to provide qualified guess.

If you have the source code of Clover, go to org.jetel.data.Defaults and increase MAX\_RECORD\_SIZE and FIELD\_BUFFER\_LENGTH.

I have posted something regarding these compile-time constants to this conference some time ago.

David.

---

<div class="post-metadata">

**Author:** ![oldforum](https://avatars.discourse-cdn.com/v4/letter/o/13edae/32.png) [@oldforum](https://forum.cloverdx.com/u/oldforum)\
**Post date:** [July 16, 2007, 8:23am UTC](https://forum.cloverdx.com/t/error-while-writing-record/123/5 "2007-07-16T08:23:47Z")

</div>

Hello Ranvir !

Could you please describe a bit more the problem & the fix ?

Thanks a lot !

David.

---

<div class="post-metadata">

**Author:** ![oldforum](https://avatars.discourse-cdn.com/v4/letter/o/13edae/32.png) [@oldforum](https://forum.cloverdx.com/u/oldforum)\
**Post date:** [July 16, 2007, 8:23am UTC](https://forum.cloverdx.com/t/error-while-writing-record/123/6 "2007-07-16T08:23:48Z")

</div>

Hello !

Can you possibly send the graph layout to david.pavliscentrum.cz ?

That would help me investigate the problem.

Thanks,

David.
