Shawn Grigson
06/26/2024, 7:24 PMthis.sessioncluster = true.
lucee.runtime.type.QueryImpl; incompatible types for field recordcount
The error is thrown on the first reference to anything in the session scope.
Anecdotally, this appears to happen when switching between Lucee 5.4 and Lucee 6 servers, after a time the session gets corrupted and won't write back to the server without throwing a sql error. (SQL Server 2019)
Additionally, Application.cfc appears to be cached and only after restarting Lucee entirely do changes to Application.cfc start getting picked up again (this may be a Lucee 6.0.3.1 issue).
On top of that, the reference to session throws an error that breaks out of try/catch. So you can't trap the error and rotate the session or anything like that. It throws a hard error that can't be captured with a try/catch.
The only solution? Clearing your cookies.bdw429s
06/26/2024, 7:25 PMbdw429s
06/26/2024, 7:25 PMShawn Grigson
06/26/2024, 7:26 PMShawn Grigson
06/26/2024, 7:26 PMbdw429s
06/26/2024, 7:27 PMbdw429s
06/26/2024, 7:27 PMint to an AtomicInteger in Lucee 6
https://github.com/lucee/Lucee/blob/6.1/core/src/main/java/lucee/runtime/type/QueryImpl.java#L137C10-L137C24Shawn Grigson
06/26/2024, 7:27 PMbdw429s
06/26/2024, 7:27 PMShawn Grigson
06/26/2024, 7:27 PMbdw429s
06/26/2024, 7:28 PMbdw429s
06/26/2024, 7:28 PMShawn Grigson
06/26/2024, 7:28 PMShawn Grigson
06/26/2024, 7:30 PMShawn Grigson
06/26/2024, 7:30 PMbdw429s
06/26/2024, 7:31 PMbdw429s
06/26/2024, 7:31 PMShawn Grigson
06/26/2024, 7:31 PMShawn Grigson
06/26/2024, 7:31 PMShawn Grigson
06/26/2024, 7:32 PMbdw429s
06/26/2024, 7:33 PMShawn Grigson
06/26/2024, 7:34 PMShawn Grigson
06/26/2024, 7:34 PMShawn Grigson
06/26/2024, 7:39 PMbdw429s
06/26/2024, 7:45 PMbdw429s
06/26/2024, 7:45 PMbdw429s
06/26/2024, 7:46 PMShawn Grigson
06/26/2024, 7:47 PMbdw429s
06/26/2024, 7:47 PMShawn Grigson
06/26/2024, 7:49 PMShawn Grigson
06/26/2024, 7:50 PMShawn Grigson
06/26/2024, 7:50 PM