Error While Writing Record

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?

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.

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

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.

Hello Ranvir !

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

Thanks a lot !

David.

Hello !

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

That would help me investigate the problem.

Thanks,

David.