Error reporting has been occurring in my wiki, please help me to solve it

My wiki version is 11.10.4 and I use tomcat to run it.,The error reporting information is as follows:
(PS: all the errors I see are related to the user)

2020-05-19 00:00:00,056 [DefaultQuartzScheduler_Worker-8] ERROR ultPeriodicMimeMessageIterator - Failed to generate an email for the user [xwiki:XWiki.chuntingz].
org.xwiki.notifications.NotificationException: Fail to get the list of notifications.
at org.xwiki.notifications.sources.internal.DefaultParametrizedNotificationManager.getEvents(DefaultParametrizedNotificationManager.java:148)
at org.xwiki.notifications.sources.internal.DefaultParametrizedNotificationManager.getEvents(DefaultParametrizedNotificationManager.java:107)
at org.xwiki.notifications.sources.internal.DefaultNotificationManager.getEvents(DefaultNotificationManager.java:140)
at org.xwiki.notifications.sources.internal.DefaultNotificationManager.getEvents(DefaultNotificationManager.java:119)
at org.xwiki.notifications.notifiers.internal.email.DefaultPeriodicMimeMessageIterator.retrieveCompositeEventList(DefaultPeriodicMimeMessageIterator.java:65)
at org.xwiki.notifications.notifiers.internal.email.AbstractMimeMessageIterator.computeNext(AbstractMimeMessageIterator.java:166)
at org.xwiki.notifications.notifiers.internal.email.AbstractMimeMessageIterator.initialize(AbstractMimeMessageIterator.java:141)
at org.xwiki.notifications.notifiers.internal.email.DefaultPeriodicMimeMessageIterator.initialize(DefaultPeriodicMimeMessageIterator.java:59)
at org.xwiki.notifications.notifiers.internal.email.NotificationEmailSender.sendEmails(NotificationEmailSender.java:84)
at org.xwiki.notifications.notifiers.internal.email.NotificationEmailJob.executeJob(NotificationEmailJob.java:70)
at com.xpn.xwiki.plugin.scheduler.AbstractJob.execute(AbstractJob.java:76)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: org.xwiki.query.QueryException: Exception while executing query. Query statement = [select event from LegacyEvent event where ((event.date >= :date_2f769387e821edd11f0e609143c26da27cad2e3f2a65f24c949f4726fa1b6717) AND ((((((event.type = :value_fa8847b0c33183273f5945508b31c3208a9e4ece58ca47233a05628d8dba3799) AND (event.date >= :date_80272ccd5f46e2ffe6af1cde287a9b167324d97aa7d68758bfcdebddaead79fd)) OR ((event.type = :value_2937013f2181810606b2a799b05bda2849f3e369a20982a4138f0e0a55984ce4) AND (event.date >= :date_80272ccd5f46e2ffe6af1cde287a9b167324d97aa7d68758bfcdebddaead79fd))) OR ((event.type = :value_22a0dd4eeff7a342d41f1e47997d2005653be9238d8699d720aa21528501bc29) AND (event.date >= :date_80272ccd5f46e2ffe6af1cde287a9b167324d97aa7d68758bfcdebddaead79fd))) OR ((event.type = :value_6197595503f01ee2a34e403fe08d2e1d9d0c14cf1cdfc2b74739895dc9a15a04) AND (event.date >= :date_80272ccd5f46e2ffe6af1cde287a9b167324d97aa7d68758bfcdebddaead79fd))) AND (((event.user <> :value_cc42f2c5837886c484267cc4182efb42ce6818ce257792dad5fdb74dbe7af1a5) AND ( NOT ((event.type = :value_2937013f2181810606b2a799b05bda2849f3e369a20982a4138f0e0a55984ce4) AND ( NOT (event.version LIKE concat(’%’, :value_f7f4791af8c2fe5825591201df09b72c2463d705c04f2f8e5ccf54f16ebaa424) ESCAPE ‘!’))))) AND (event.user <> :value_837cdf2d0cb38e2ab56443df274f9651c15f3787e8557a41c6c1bfd788d0fe40)))) AND (event.hidden <> true) ORDER BY event.date DESC]
at com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.execute(HqlQueryExecutor.java:182)
at org.xwiki.query.internal.DefaultQueryExecutorManager.execute(DefaultQueryExecutorManager.java:72)
at org.xwiki.query.internal.DefaultQuery.execute(DefaultQuery.java:306)
at org.xwiki.eventstream.store.internal.LegacyEventLoader.searchEvents(LegacyEventLoader.java:111)
at org.xwiki.eventstream.store.internal.LegacyEventStream.searchEvents(LegacyEventStream.java:75)
at org.xwiki.notifications.sources.internal.DefaultParametrizedNotificationManager.getEvents(DefaultParametrizedNotificationManager.java:129)
… 12 common frames omitted
Caused by: com.xpn.xwiki.XWikiException: Error number 0 in 3: Exception while hibernate execute
at com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:826)
at com.xpn.xwiki.store.XWikiHibernateBaseStore.executeRead(XWikiHibernateBaseStore.java:889)
at com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.execute(HqlQueryExecutor.java:170)
… 17 common frames omitted
Caused by: java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: LegacyEvent is not mapped [select event from LegacyEvent event where ((event.date >= :date_2f769387e821edd11f0e609143c26da27cad2e3f2a65f24c949f4726fa1b6717) AND ((((((event.type = :value_fa8847b0c33183273f5945508b31c3208a9e4ece58ca47233a05628d8dba3799) AND (event.date >= :date_80272ccd5f46e2ffe6af1cde287a9b167324d97aa7d68758bfcdebddaead79fd)) OR ((event.type = :value_2937013f2181810606b2a799b05bda2849f3e369a20982a4138f0e0a55984ce4) AND (event.date >= :date_80272ccd5f46e2ffe6af1cde287a9b167324d97aa7d68758bfcdebddaead79fd))) OR ((event.type = :value_22a0dd4eeff7a342d41f1e47997d2005653be9238d8699d720aa21528501bc29) AND (event.date >= :date_80272ccd5f46e2ffe6af1cde287a9b167324d97aa7d68758bfcdebddaead79fd))) OR ((event.type = :value_6197595503f01ee2a34e403fe08d2e1d9d0c14cf1cdfc2b74739895dc9a15a04) AND (event.date >= :date_80272ccd5f46e2ffe6af1cde287a9b167324d97aa7d68758bfcdebddaead79fd))) AND (((event.user <> :value_cc42f2c5837886c484267cc4182efb42ce6818ce257792dad5fdb74dbe7af1a5) AND ( NOT ((event.type = :value_2937013f2181810606b2a799b05bda2849f3e369a20982a4138f0e0a55984ce4) AND ( NOT (event.version LIKE concat(’%’, :value_f7f4791af8c2fe5825591201df09b72c2463d705c04f2f8e5ccf54f16ebaa424) ESCAPE ‘!’))))) AND (event.user <> :value_837cdf2d0cb38e2ab56443df274f9651c15f3787e8557a41c6c1bfd788d0fe40)))) AND (event.hidden <> true) ORDER BY event.date DESC]
at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:138)
at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:181)
at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:188)
at org.hibernate.internal.AbstractSharedSessionContract.createQuery(AbstractSharedSessionContract.java:718)
at org.hibernate.engine.spi.SessionDelegatorBaseImpl.createQuery(SessionDelegatorBaseImpl.java:576)
at com.xpn.xwiki.internal.store.hibernate.legacy.LegacySessionImplementor.createQuery(LegacySessionImplementor.java:119)
at com.xpn.xwiki.internal.store.hibernate.legacy.LegacySessionImplementor.createQuery(LegacySessionImplementor.java:47)
at com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.createHibernateQuery(HqlQueryExecutor.java:207)
at com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.lambda$execute$0(HqlQueryExecutor.java:171)
at com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:820)
… 19 common frames omitted
Caused by: org.hibernate.hql.internal.ast.QuerySyntaxException: LegacyEvent is not mapped [select event from LegacyEvent event where ((event.date >= :date_2f769387e821edd11f0e609143c26da27cad2e3f2a65f24c949f4726fa1b6717) AND ((((((event.type = :value_fa8847b0c33183273f5945508b31c3208a9e4ece58ca47233a05628d8dba3799) AND (event.date >= :date_80272ccd5f46e2ffe6af1cde287a9b167324d97aa7d68758bfcdebddaead79fd)) OR ((event.type = :value_2937013f2181810606b2a799b05bda2849f3e369a20982a4138f0e0a55984ce4) AND (event.date >= :date_80272ccd5f46e2ffe6af1cde287a9b167324d97aa7d68758bfcdebddaead79fd))) OR ((event.type = :value_22a0dd4eeff7a342d41f1e47997d2005653be9238d8699d720aa21528501bc29) AND (event.date >= :date_80272ccd5f46e2ffe6af1cde287a9b167324d97aa7d68758bfcdebddaead79fd))) OR ((event.type = :value_6197595503f01ee2a34e403fe08d2e1d9d0c14cf1cdfc2b74739895dc9a15a04) AND (event.date >= :date_80272ccd5f46e2ffe6af1cde287a9b167324d97aa7d68758bfcdebddaead79fd))) AND (((event.user <> :value_cc42f2c5837886c484267cc4182efb42ce6818ce257792dad5fdb74dbe7af1a5) AND ( NOT ((event.type = :value_2937013f2181810606b2a799b05bda2849f3e369a20982a4138f0e0a55984ce4) AND ( NOT (event.version LIKE concat(’%’, :value_f7f4791af8c2fe5825591201df09b72c2463d705c04f2f8e5ccf54f16ebaa424) ESCAPE ‘!’))))) AND (event.user <> :value_837cdf2d0cb38e2ab56443df274f9651c15f3787e8557a41c6c1bfd788d0fe40)))) AND (event.hidden <> true) ORDER BY event.date DESC]
at org.hibernate.hql.internal.ast.QuerySyntaxException.generateQueryException(QuerySyntaxException.java:79)
at org.hibernate.QueryException.wrapWithQueryString(QueryException.java:103)
at org.hibernate.hql.internal.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:220)
at org.hibernate.hql.internal.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:144)
at org.hibernate.engine.query.spi.HQLQueryPlan.(HQLQueryPlan.java:113)
at org.hibernate.engine.query.spi.HQLQueryPlan.(HQLQueryPlan.java:73)
at org.hibernate.engine.query.spi.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:155)
at org.hibernate.internal.AbstractSharedSessionContract.getQueryPlan(AbstractSharedSessionContract.java:600)
at org.hibernate.internal.AbstractSharedSessionContract.createQuery(AbstractSharedSessionContract.java:709)
… 25 common frames omitted
Caused by: org.hibernate.hql.internal.ast.QuerySyntaxException: LegacyEvent is not mapped
at org.hibernate.hql.internal.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:169)
at org.hibernate.hql.internal.ast.tree.FromElementFactory.addFromElement(FromElementFactory.java:91)
at org.hibernate.hql.internal.ast.tree.FromClause.addFromElement(FromClause.java:79)
at org.hibernate.hql.internal.ast.HqlSqlWalker.createFromElement(HqlSqlWalker.java:331)
at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:3695)
at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalker.java:3584)
at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.java:720)
at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:576)
at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:313)
at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:261)
at org.hibernate.hql.internal.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:272)
at org.hibernate.hql.internal.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:192)
… 31 common frames omitted
2020-05-19 00:00:00,097 [DefaultQuartzScheduler_Worker-8] ERROR ultPeriodicMimeMessageIterator - Failed to generate an email for the user [xwiki:XWiki.gew].
org.xwiki.notifications.NotificationException: Fail to get the list of notifications.
at org.xwiki.notifications.sources.internal.DefaultParametrizedNotificationManager.getEvents(DefaultParametrizedNotificationManager.java:148)
at org.xwiki.notifications.sources.internal.DefaultParametrizedNotificationManager.getEvents(DefaultParametrizedNotificationManager.java:107)
at org.xwiki.notifications.sources.internal.DefaultNotificationManager.getEvents(DefaultNotificationManager.java:140)
at org.xwiki.notifications.sources.internal.DefaultNotificationManager.getEvents(DefaultNotificationManager.java:119)
at org.xwiki.notifications.notifiers.internal.email.DefaultPeriodicMimeMessageIterator.retrieveCompositeEventList(DefaultPeriodicMimeMessageIterator.java:65)
at org.xwiki.notifications.notifiers.internal.email.AbstractMimeMessageIterator.computeNext(AbstractMimeMessageIterator.java:166)
at org.xwiki.notifications.notifiers.internal.email.AbstractMimeMessageIterator.initialize(AbstractMimeMessageIterator.java:141)
at org.xwiki.notifications.notifiers.internal.email.DefaultPeriodicMimeMessageIterator.initialize(DefaultPeriodicMimeMessageIterator.java:59)
at org.xwiki.notifications.notifiers.internal.email.NotificationEmailSender.sendEmails(NotificationEmailSender.java:84)
at org.xwiki.notifications.notifiers.internal.email.NotificationEmailJob.executeJob(NotificationEmailJob.java:70)
at com.xpn.xwiki.plugin.scheduler.AbstractJob.execute(AbstractJob.java:76)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: org.xwiki.query.QueryException: Exception while executing query. Query statement = [select event from LegacyEvent event where ((event.date >= :date_2f769387e821edd11f0e609143c26da27cad2e3f2a65f24c949f4726fa1b6717) AND ((((((event.type = :value_fa8847b0c33183273f5945508b31c3208a9e4ece58ca47233a05628d8dba3799) AND (event.date >= :date_6df48cdb96be6e890842198ffa14128a574e144c74d74168081a56094e8f5ce7)) OR ((event.type = :value_2937013f2181810606b2a799b05bda2849f3e369a20982a4138f0e0a55984ce4) AND (event.date >= :date_6df48cdb96be6e890842198ffa14128a574e144c74d74168081a56094e8f5ce7))) OR ((event.type = :value_22a0dd4eeff7a342d41f1e47997d2005653be9238d8699d720aa21528501bc29) AND (event.date >= :date_6df48cdb96be6e890842198ffa14128a574e144c74d74168081a56094e8f5ce7))) OR ((event.type = :value_6197595503f01ee2a34e403fe08d2e1d9d0c14cf1cdfc2b74739895dc9a15a04) AND (event.date >= :date_6df48cdb96be6e890842198ffa14128a574e144c74d74168081a56094e8f5ce7))) AND (((event.user <> :value_cc42f2c5837886c484267cc4182efb42ce6818ce257792dad5fdb74dbe7af1a5) AND ( NOT ((event.type = :value_2937013f2181810606b2a799b05bda2849f3e369a20982a4138f0e0a55984ce4) AND ( NOT (event.version LIKE concat(’%’, :value_f7f4791af8c2fe5825591201df09b72c2463d705c04f2f8e5ccf54f16ebaa424) ESCAPE ‘!’))))) AND (event.user <> :value_dc2c4078e5c2417ceec3c2fa76beedf0d9f79d0817083ce88c31d4b827f5837d)))) AND (event.hidden <> true) ORDER BY event.date DESC]
at com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.execute(HqlQueryExecutor.java:182)
at org.xwiki.query.internal.DefaultQueryExecutorManager.execute(DefaultQueryExecutorManager.java:72)
at org.xwiki.query.internal.DefaultQuery.execute(DefaultQuery.java:306)
at org.xwiki.eventstream.store.internal.LegacyEventLoader.searchEvents(LegacyEventLoader.java:111)
at org.xwiki.eventstream.store.internal.LegacyEventStream.searchEvents(LegacyEventStream.java:75)
at org.xwiki.notifications.sources.internal.DefaultParametrizedNotificationManager.getEvents(DefaultParametrizedNotificationManager.java:129)
… 12 common frames omitted
Caused by: com.xpn.xwiki.XWikiException: Error number 0 in 3: Exception while hibernate execute
at com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:826)
at com.xpn.xwiki.store.XWikiHibernateBaseStore.executeRead(XWikiHibernateBaseStore.java:889)
at com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.execute(HqlQueryExecutor.java:170)
… 17 common frames omitted
Caused by: java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: LegacyEvent is not mapped [select event from LegacyEvent event where ((event.date >= :date_2f769387e821edd11f0e609143c26da27cad2e3f2a65f24c949f4726fa1b6717) AND ((((((event.type = :value_fa8847b0c33183273f5945508b31c3208a9e4ece58ca47233a05628d8dba3799) AND (event.date >= :date_6df48cdb96be6e890842198ffa14128a574e144c74d74168081a56094e8f5ce7)) OR ((event.type = :value_2937013f2181810606b2a799b05bda2849f3e369a20982a4138f0e0a55984ce4) AND (event.date >= :date_6df48cdb96be6e890842198ffa14128a574e144c74d74168081a56094e8f5ce7))) OR ((event.type = :value_22a0dd4eeff7a342d41f1e47997d2005653be9238d8699d720aa21528501bc29) AND (event.date >= :date_6df48cdb96be6e890842198ffa14128a574e144c74d74168081a56094e8f5ce7))) OR ((event.type = :value_6197595503f01ee2a34e403fe08d2e1d9d0c14cf1cdfc2b74739895dc9a15a04) AND (event.date >= :date_6df48cdb96be6e890842198ffa14128a574e144c74d74168081a56094e8f5ce7))) AND (((event.user <> :value_cc42f2c5837886c484267cc4182efb42ce6818ce257792dad5fdb74dbe7af1a5) AND ( NOT ((event.type = :value_2937013f2181810606b2a799b05bda2849f3e369a20982a4138f0e0a55984ce4) AND ( NOT (event.version LIKE concat(’%’, :value_f7f4791af8c2fe5825591201df09b72c2463d705c04f2f8e5ccf54f16ebaa424) ESCAPE ‘!’))))) AND (event.user <> :value_dc2c4078e5c2417ceec3c2fa76beedf0d9f79d0817083ce88c31d4b827f5837d)))) AND (event.hidden <> true) ORDER BY event.date DESC]
at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:138)
at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:181)
at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:188)
at org.hibernate.internal.AbstractSharedSessionContract.createQuery(AbstractSharedSessionContract.java:718)
at org.hibernate.engine.spi.SessionDelegatorBaseImpl.createQuery(SessionDelegatorBaseImpl.java:576)
at com.xpn.xwiki.internal.store.hibernate.legacy.LegacySessionImplementor.createQuery(LegacySessionImplementor.java:119)
at com.xpn.xwiki.internal.store.hibernate.legacy.LegacySessionImplementor.createQuery(LegacySessionImplementor.java:47)
at com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.createHibernateQuery(HqlQueryExecutor.java:207)
at com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.lambda$execute$0(HqlQueryExecutor.java:171)
at com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:820)
… 19 common frames omitted
Caused by: org.hibernate.hql.internal.ast.QuerySyntaxException: LegacyEvent is not mapped [select event from LegacyEvent event where ((event.date >= :date_2f769387e821edd11f0e609143c26da27cad2e3f2a65f24c949f4726fa1b6717) AND ((((((event.type = :value_fa8847b0c33183273f5945508b31c3208a9e4ece58ca47233a05628d8dba3799) AND (event.date >= :date_6df48cdb96be6e890842198ffa14128a574e144c74d74168081a56094e8f5ce7)) OR ((event.type = :value_2937013f2181810606b2a799b05bda2849f3e369a20982a4138f0e0a55984ce4) AND (event.date >= :date_6df48cdb96be6e890842198ffa14128a574e144c74d74168081a56094e8f5ce7))) OR ((event.type = :value_22a0dd4eeff7a342d41f1e47997d2005653be9238d8699d720aa21528501bc29) AND (event.date >= :date_6df48cdb96be6e890842198ffa14128a574e144c74d74168081a56094e8f5ce7))) OR ((event.type = :value_6197595503f01ee2a34e403fe08d2e1d9d0c14cf1cdfc2b74739895dc9a15a04) AND (event.date >= :date_6df48cdb96be6e890842198ffa14128a574e144c74d74168081a56094e8f5ce7))) AND (((event.user <> :value_cc42f2c5837886c484267cc4182efb42ce6818ce257792dad5fdb74dbe7af1a5) AND ( NOT ((event.type = :value_2937013f2181810606b2a799b05bda2849f3e369a20982a4138f0e0a55984ce4) AND ( NOT (event.version LIKE concat(’%’, :value_f7f4791af8c2fe5825591201df09b72c2463d705c04f2f8e5ccf54f16ebaa424) ESCAPE ‘!’))))) AND (event.user <> :value_dc2c4078e5c2417ceec3c2fa76beedf0d9f79d0817083ce88c31d4b827f5837d)))) AND (event.hidden <> true) ORDER BY event.date DESC]
at org.hibernate.hql.internal.ast.QuerySyntaxException.generateQueryException(QuerySyntaxException.java:79)
at org.hibernate.QueryException.wrapWithQueryString(QueryException.java:103)
at org.hibernate.hql.internal.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:220)
at org.hibernate.hql.internal.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:144)
at org.hibernate.engine.query.spi.HQLQueryPlan.(HQLQueryPlan.java:113)
at org.hibernate.engine.query.spi.HQLQueryPlan.(HQLQueryPlan.java:73)
at org.hibernate.engine.query.spi.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:155)
at org.hibernate.internal.AbstractSharedSessionContract.getQueryPlan(AbstractSharedSessionContract.java:600)
at org.hibernate.internal.AbstractSharedSessionContract.createQuery(AbstractSharedSessionContract.java:709)
… 25 common frames omitted
Caused by: org.hibernate.hql.internal.ast.QuerySyntaxException: LegacyEvent is not mapped
at org.hibernate.hql.internal.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:169)
at org.hibernate.hql.internal.ast.tree.FromElementFactory.addFromElement(FromElementFactory.java:91)
at org.hibernate.hql.internal.ast.tree.FromClause.addFromElement(FromClause.java:79)
at org.hibernate.hql.internal.ast.HqlSqlWalker.createFromElement(HqlSqlWalker.java:331)
at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.fromElement(HqlSqlBaseWalker.java:3695)
at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.fromElementList(HqlSqlBaseWalker.java:3584)
at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.fromClause(HqlSqlBaseWalker.java:720)
at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:576)
at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:313)
at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:261)
at org.hibernate.hql.internal.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:272)
at org.hibernate.hql.internal.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:192)
… 31 common frames omitted
2020-05-19 00:00:00,107 [DefaultQuartzScheduler_Worker-8] ERROR ultPeriodicMimeMessageIterator - Failed to generate an email for the user [xwiki:XWiki.hanxuez].
org.xwiki.notifications.NotificationException: Fail to get the list of notifications.
at org.xwiki.notifications.sources.internal.DefaultParametrizedNotificationManager.getEvents(DefaultParametrizedNotificationManager.java:148)
at org.xwiki.notifications.sources.internal.DefaultParametrizedNotificationManager.getEvents(DefaultParametrizedNotificationManager.java:107)
at org.xwiki.notifications.sources.internal.DefaultNotificationManager.getEvents(DefaultNotificationManager.java:140)
at org.xwiki.notifications.sources.internal.DefaultNotificationManager.getEvents(DefaultNotificationManager.java:119)
at org.xwiki.notifications.notifiers.internal.email.DefaultPeriodicMimeMessageIterator.retrieveCompositeEventList(DefaultPeriodicMimeMessageIterator.java:65)
at org.xwiki.notifications.notifiers.internal.email.AbstractMimeMessageIterator.computeNext(AbstractMimeMessageIterator.java:166)
at org.xwiki.notifications.notifiers.internal.email.AbstractMimeMessageIterator.initialize(AbstractMimeMessageIterator.java:141)
at org.xwiki.notifications.notifiers.internal.email.DefaultPeriodicMimeMessageIterator.initialize(DefaultPeriodicMimeMessageIterator.java:59)
at org.xwiki.notifications.notifiers.internal.email.NotificationEmailSender.sendEmails(NotificationEmailSender.java:84)
at org.xwiki.notifications.notifiers.internal.email.NotificationEmailJob.executeJob(NotificationEmailJob.java:70)
at com.xpn.xwiki.plugin.scheduler.AbstractJob.execute(AbstractJob.java:76)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
Caused by: org.xwiki.query.QueryException: Exception while executing query. Query statement = [select event from LegacyEvent event where ((event.date >= :date_2f769387e821edd11f0e609143c26da27cad2e3f2a65f24c949f4726fa1b6717) AND ((((((event.type = :value_fa8847b0c33183273f5945508b31c3208a9e4ece58ca47233a05628d8dba3799) AND (event.date >= :date_aabe527a59ea7602ac572f696434b7169b98c0f8c99d130b36aa05f08cdd69cf)) OR ((event.type = :value_2937013f2181810606b2a799b05bda2849f3e369a20982a4138f0e0a55984ce4) AND (event.date >= :date_aabe527a59ea7602ac572f696434b7169b98c0f8c99d130b36aa05f08cdd69cf))) OR ((event.type = :value_22a0dd4eeff7a342d41f1e47997d2005653be9238d8699d720aa21528501bc29) AND (event.date >= :date_aabe527a59ea7602ac572f696434b7169b98c0f8c99d130b36aa05f08cdd69cf))) OR ((event.type = :value_6197595503f01ee2a34e403fe08d2e1d9d0c14cf1cdfc2b74739895dc9a15a04) AND (event.date >= :date_aabe527a59ea7602ac572f696434b7169b98c0f8c99d130b36aa05f08cdd69cf))) AND (((event.user <> :value_cc42f2c5837886c484267cc4182efb42ce6818ce257792dad5fdb74dbe7af1a5) AND ( NOT ((event.type = :value_2937013f2181810606b2a799b05bda2849f3e369a20982a4138f0e0a55984ce4) AND ( NOT (event.version LIKE concat(’%’, :value_f7f4791af8c2fe5825591201df09b72c2463d705c04f2f8e5ccf54f16ebaa424) ESCAPE ‘!’))))) AND (event.user <> :value_c0a7230ac01f479deeeb32416f7d68069973205a33d2a04c7d2225d5e10486b1)))) AND (event.hidden <> true) ORDER BY event.date DESC]
at com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.execute(HqlQueryExecutor.java:182)
at org.xwiki.query.internal.DefaultQueryExecutorManager.execute(DefaultQueryExecutorManager.java:72)
at org.xwiki.query.internal.DefaultQuery.execute(DefaultQuery.java:306)
at org.xwiki.eventstream.store.internal.LegacyEventLoader.searchEvents(LegacyEventLoader.java:111)
at org.xwiki.eventstream.store.internal.LegacyEventStream.searchEvents(LegacyEventStream.java:75)
at org.xwiki.notifications.sources.internal.DefaultParametrizedNotificationManager.getEvents(DefaultParametrizedNotificationManager.java:129)
… 12 common frames omitted
Caused by: com.xpn.xwiki.XWikiException: Error number 0 in 3: Exception while hibernate execute
at com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:826)
at com.xpn.xwiki.store.XWikiHibernateBaseStore.executeRead(XWikiHibernateBaseStore.java:889)
at com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.execute(HqlQueryExecutor.java:170)
… 17 common frames omitted
Caused by: java.lang.IllegalArgumentException: org.hibernate.hql.internal.ast.QuerySyntaxException: LegacyEvent is not mapped [select event from LegacyEvent event where ((event.date >= :date_2f769387e821edd11f0e609143c26da27cad2e3f2a65f24c949f4726fa1b6717) AND ((((((event.type = :value_fa8847b0c33183273f5945508b31c3208a9e4ece58ca47233a05628d8dba3799) AND (event.date >= :date_aabe527a59ea7602ac572f696434b7169b98c0f8c99d130b36aa05f08cdd69cf)) OR ((event.type = :value_2937013f2181810606b2a799b05bda2849f3e369a20982a4138f0e0a55984ce4) AND (event.date >= :date_aabe527a59ea7602ac572f696434b7169b98c0f8c99d130b36aa05f08cdd69cf))) OR ((event.type = :value_22a0dd4eeff7a342d41f1e47997d2005653be9238d8699d720aa21528501bc29) AND (event.date >= :date_aabe527a59ea7602ac572f696434b7169b98c0f8c99d130b36aa05f08cdd69cf))) OR ((event.type = :value_6197595503f01ee2a34e403fe08d2e1d9d0c14cf1cdfc2b74739895dc9a15a04) AND (event.date >= :date_aabe527a59ea7602ac572f696434b7169b98c0f8c99d130b36aa05f08cdd69cf))) AND (((event.user <> :value_cc42f2c5837886c484267cc4182efb42ce6818ce257792dad5fdb74dbe7af1a5) AND ( NOT ((event.type = :value_2937013f2181810606b2a799b05bda2849f3e369a20982a4138f0e0a55984ce4) AND ( NOT (event.version LIKE concat(’%’, :value_f7f4791af8c2fe5825591201df09b72c2463d705c04f2f8e5ccf54f16ebaa424) ESCAPE ‘!’))))) AND (event.user <> :value_c0a7230ac01f479deeeb32416f7d68069973205a33d2a04c7d2225d5e10486b1)))) AND (event.hidden <> true) ORDER BY event.date DESC]
at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:138)
at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:181)
at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:188)
at org.hibernate.internal.AbstractSharedSessionContract.createQuery(AbstractSharedSessionContract.java:718)
at org.hibernate.engine.spi.SessionDelegatorBaseImpl.createQuery(SessionDelegatorBaseImpl.java:576)
at com.xpn.xwiki.internal.store.hibernate.legacy.LegacySessionImplementor.createQuery(LegacySessionImplementor.java:119)
at com.xpn.xwiki.internal.store.hibernate.legacy.LegacySessionImplementor.createQuery(LegacySessionImplementor.java:47)
at com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.createHibernateQuery(HqlQueryExecutor.java:207)
at com.xpn.xwiki.store.hibernate.query.HqlQueryExecutor.lambda$execute$0(HqlQueryExecutor.java:171)
at com.xpn.xwiki.store.XWikiHibernateBaseStore.execute(XWikiHibernateBaseStore.java:820)
… 19 common frames omitted
Caused by: org.hibernate.hql.internal.ast.QuerySyntaxException: LegacyEvent is not mapped [select event from LegacyEvent event where ((event.date >= :date_2f769387e821edd11f0e609143c26da27cad2e3f2a65f24c949f4726fa1b6717) AND ((((((event.type = :value_fa8847b0c33183273f5945508b31c3208a9e4ece58ca47233a05628d8dba3799) AND (event.date >= :date_aabe527a59ea7602ac572f696434b7169b98c0f8c99d130b36aa05f08cdd69cf)) OR ((event.type = :value_2937013f2181810606b2a799b05bda2849f3e369a20982a4138f0e0a55984ce4) AND (event.date >= :date_aabe527a59ea7602ac572f696434b7169b98c0f8c99d130b36aa05f08cdd69cf))) OR ((event.type = :value_22a0dd4eeff7a342d41f1e47997d2005653be9238d8699d720aa21528501bc29) AND (event.date >= :date_aabe527a59ea7602ac572f696434b7169b98c0f8c99d130b36aa05f08cdd69cf))) OR ((event.type = :value_6197595503f01ee2a34e403fe08d2e1d9d0c14cf1cdfc2b74739895dc9a15a04) AND (event.date >= :date_aabe527a59ea7602ac572f696434b7169b98c0f8c99d130b36aa05f08cdd69cf))) AND (((event.user <> :value_cc42f2c5837886c484267cc4182efb42ce6818ce257792dad5fdb74dbe7af1a5) AND ( NOT ((event.type = :value_2937013f2181810606b2a799b05bda2849f3e369a20982a4138f0e0a55984ce4) AND ( NOT (event.version LIKE concat(’%’, :value_f7f4791af8c2fe5825591201df09b72c2463d705c04f2f8e5ccf54f16ebaa424) ESCAPE ‘!’))))) AND (event.user <> :value_c0a7230ac01f479deeeb32416f7d68069973205a33d2a04c7d2225d5e10486b1)))) AND (event.hidden <> true) ORDER BY event.date DESC]
at org.hibernate.hql.internal.ast.QuerySyntaxException.generateQueryException(QuerySyntaxException.java:79)
at org.hibernate.QueryException.wrapWithQueryString(QueryException.java:103)
at org.hibernate.hql.internal.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:220)
at org.hibernate.hql.internal.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:144)
at org.hibernate.engine.query.spi.HQLQueryPlan.(HQLQueryPlan.java:113)
at org.hibernate.engine.query.spi.HQLQueryPlan.(HQLQueryPlan.java:73)
at org.hibernate.engine.query.spi.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:155)
at org.hibernate.internal.AbstractSharedSessionContract.getQueryPlan(AbstractSharedSessionContract.java:600)
at org.hibernate.internal.AbstractSharedSessionContract.createQuery(AbstractSharedSessionContract.java:709)
… 25 common frames omitted
Caused by: org.hibernate.hql.internal.ast.QuerySyntaxException: LegacyEvent is not mapped
at org.hibernate.hql.internal.ast.util.SessionFactoryHelper.requireClassPersister(SessionFactoryHelper.java:169)
at