Error messages not making sense and/or reporting the wrong line number.

27 views
Skip to first unread message

Dan Baughman

unread,
Mar 15, 2017, 4:22:09 PM3/15/17
to Lucee
Has anyone seen exceptions / errors acting really oddly on lucee 4.5?

I've seen situations where attempting to access a member of a struct, say something like "request.some_var" throws a COMPLETELY unrelated error like "some_other_var cannot be cast to a number" and reporting a line that doesn't access that variable at all.

A concrete example:

rq[cur_shift].shiftStartTime = "#timeformat(rq[cur_shift].shiftStart, 'short')#";


Throws an error like "cannot cast [actionable_by] string to a number value", while referencing the above line.

I've seen other really odd behavior sometimes with errors that don't make sense as well - like simply outputing a struct variable reports an error about a completely unrelated variable name not existing.  It honestly feels like some sort of heap corruption or something, I just can't pin it down. 

Anyone else seen anything like this?


Reply all
Reply to author
Forward
0 new messages