Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-105607

SearchException for WorkflowMetricsIndexerTest

    Details

      Description

      InstanceWorkflowMetricsIndexerTest#testReindex, NodeWorkflowMetricsIndexerTest#testReindex, ProcessWorkflowMetricsIndexerTest#testReindex, and TokenWorkflowMetricsIndexerTest#testReindex are failing in master with:

          [exec] com.liferay.portal.workflow.metrics.service.internal.search.index.test.ProcessWorkflowMetricsIndexerTest > testReindex STARTED
           [exec] 04:04:44,872 ERROR [com.liferay.portal.workflow.metrics.test-executor-thread][JDBCExceptionReporter:234] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') and this_.completed=1 order by this_.kaleoInstanceId asc limit 10000' at line 1
           [exec] 04:04:44,875 ERROR [com.liferay.portal.workflow.metrics.test-executor-thread][BasePersistenceImpl:440] Caught unexpected exception
           [exec] org.hibernate.exception.SQLGrammarException: could not execute query
           [exec] 	at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:92)
           [exec] 	at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)
           [exec] 	at org.hibernate.loader.Loader.doList(Loader.java:2545)
           [exec] 	at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2276)
           [exec] 	at org.hibernate.loader.Loader.list(Loader.java:2271)
           [exec] 	at org.hibernate.loader.criteria.CriteriaLoader.list(CriteriaLoader.java:119)
           [exec] 	at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1716)
           [exec] 	at org.hibernate.impl.CriteriaImpl.list(CriteriaImpl.java:347)
           [exec] 	at com.liferay.portal.dao.orm.hibernate.DynamicQueryImpl.list(DynamicQueryImpl.java:140)
           [exec] 	at com.liferay.portal.dao.orm.hibernate.DynamicQueryImpl.list(DynamicQueryImpl.java:126)
           [exec] 	at com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl.findWithDynamicQuery(BasePersistenceImpl.java:328)
           [exec] 	at com.liferay.portal.workflow.kaleo.service.base.KaleoInstanceLocalServiceBaseImpl.dynamicQuery(KaleoInstanceLocalServiceBaseImpl.java:160)
           [exec] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [exec] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           [exec] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec] 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
           [exec] 	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
           [exec] 	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69)
           [exec] 	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
           [exec] 	at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
           [exec] 	at com.sun.proxy.$Proxy771.dynamicQuery(Unknown Source)
           [exec] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [exec] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           [exec] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec] 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
           [exec] 	at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.executeDynamicQuery(DefaultActionableDynamicQuery.java:349)
           [exec] 	at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery$1.call(DefaultActionableDynamicQuery.java:272)
           [exec] 	at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery$1.call(DefaultActionableDynamicQuery.java:268)
           [exec] 	at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.doPerformActions(DefaultActionableDynamicQuery.java:326)
           [exec] 	at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.performActions(DefaultActionableDynamicQuery.java:86)
           [exec] 	at com.liferay.portal.workflow.metrics.internal.search.index.SLAProcessResultWorkflowMetricsIndexer.reindex(SLAProcessResultWorkflowMetricsIndexer.java:182)
           [exec] 	at com.liferay.portal.workflow.metrics.internal.search.index.WorkflowMetricsIndexer.doReindex(WorkflowMetricsIndexer.java:144)
           [exec] 	at com.liferay.portal.kernel.search.BaseIndexer.reindex(BaseIndexer.java:506)
           [exec] 	at com.liferay.portal.workflow.metrics.service.util.BaseWorkflowMetricsIndexerTestCase.assertReindex(BaseWorkflowMetricsIndexerTestCase.java:230)
           [exec] 	at com.liferay.portal.workflow.metrics.service.util.BaseWorkflowMetricsIndexerTestCase.assertReindex(BaseWorkflowMetricsIndexerTestCase.java:251)
           [exec] 	at com.liferay.portal.workflow.metrics.service.internal.search.index.test.ProcessWorkflowMetricsIndexerTest.testReindex(ProcessWorkflowMetricsIndexerTest.java:78)
           [exec] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [exec] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           [exec] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec] 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
           [exec] 	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$2.evaluate(TestExecutorRunnable.java:234)
           [exec] 	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
           [exec] 	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
           [exec] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [exec] 	at com.liferay.portal.kernel.test.rule.TimeoutTestRule$1.evaluate(TimeoutTestRule.java:89)
           [exec] 	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
           [exec] 	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:143)
           [exec] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec] 	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
           [exec] 	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
           [exec] 	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:181)
           [exec] 	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
           [exec] 	at java.base/java.lang.Thread.run(Thread.java:834)
           [exec] Caused by: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') and this_.completed=1 order by this_.kaleoInstanceId asc limit 10000' at line 1
           [exec] 	at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:120)
           [exec] 	at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
           [exec] 	at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
           [exec] 	at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:955)
           [exec] 	at com.mysql.cj.jdbc.ClientPreparedStatement.executeQuery(ClientPreparedStatement.java:1005)
           [exec] 	at com.zaxxer.hikari.pool.ProxyPreparedStatement.executeQuery(ProxyPreparedStatement.java:52)
           [exec] 	at com.zaxxer.hikari.pool.HikariProxyPreparedStatement.executeQuery(HikariProxyPreparedStatement.java)
           [exec] 	at org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:208)
           [exec] 	at org.hibernate.loader.Loader.getResultSet(Loader.java:1953)
           [exec] 	at org.hibernate.loader.Loader.doQuery(Loader.java:802)
           [exec] 	at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:274)
           [exec] 	at org.hibernate.loader.Loader.doList(Loader.java:2542)
           [exec] 	... 60 more
           [exec] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') and this_.completed=1 order by this_.kaleoInstanceId asc limit 10000' at line 1

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                30 weeks ago

                Packages

                Version Package
                7.3.0 CE GA1
                Master