Steps to reproduce: Not clear, but I assume the statistics module needs to be enabled. See https://forum.xwiki.org/t/upgrade-from-15-10-14-to-16-10-4-errors-in-log-tomcat-9/16592 Expected result: No errors are logged. Actual result: The following errors are logged:
The mentioned query is at https://github.com/xwiki/xwiki-platform/blob/67c0e919f2c3d0e4385b2133e7cc0318da598834/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/stats/impl/StatsUtil.java#L591-L592 and is probably corrupted by https://github.com/xwiki/xwiki-platform/blob/d74a1af9d4e69031dc299adadfdcb68cc5cecf93/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/store/hibernate/query/HqlQueryExecutor.java#L235 which thinks that the query isn't complete and incorrectly completes it. This means that this is a regression introduced in XWIKI-22726. |