Page 1 of 1

'bitIndex' exception

PostPosted: Fri Feb 20, 2015 3:07 am
by maria.kyselova
Hi All,

I started getting a weird exception when I run a command foundset.deleteAllRecords():

"Error during evaluation:Wrapped java.lang.IndexOutOfBoundsException: bitIndex < 0: -1"

This never happened before on the same line.
The foundset has 180 records, everything seems to be legit, however the exception pops up.
Any idea what the issue is?

Re: 'bitIndex' exception

PostPosted: Fri Feb 20, 2015 10:31 am
by ROCLASI
Hi Maria,

Do you have other code triggering when deleting records from this table like in a tableEvent or something ?

Re: 'bitIndex' exception

PostPosted: Mon Feb 23, 2015 6:24 am
by maria.kyselova
ROCLASI wrote:Hi Maria,

Do you have other code triggering when deleting records from this table like in a tableEvent or something ?


Yes, there is an event that fires for onRecordDelete() on that table, but it returns true as it should.
Then there is an event that has no code for afterRecordDelete() and the debugger does go in there.

I cleaned up the table through a direct db query and the problem has gone. Weird, but ok.