Oracle Message ORA-25237 - navigation option used out of sequence

ERRORnavigation option used out of sequence
CAUSEThe NEXT_MESSAGE or NEXT_TRANSACTION option was specified after dequeuing all the messages.
ACTIONReset the dequeuing position using the FIRST_MESSAGE naviagtion option and then specify the NEXT_MESSAGE or NEXT_TRANSACTION option.