Oracle Error ORA-32128: setDataBuffer called after fetch has started

Oracle Error Message

ORA-32128: setDataBuffer called after fetch has started

Reason for the Error

Fetch from result set has already started and the setDataBuffer call was made.

Solution

Call the setDataBuffer method before calling the next() method.