Runtime fails

0
Hello everyone,   In a demo application I've added Workflow. When running the application (locally) I run into a failure in the Mendix runtime: "Starting Mendix runtime failed". I don't know what causes it and how to solve. The strange thing is: when set to Built-in database, the app starts up when set to a Postgress DB (an existing one or a not-existing which is then created) this error occurs. Since the detailed errormessage mentions a 'caused by [...] WorkflowDefinition' I assume it has something to do with Workflow :)   Any help appreciated!   Note: I use Mx10.18.0, a version which is not even listed in the "Mendix studio pro version" dropdown list  :D   The detailed message is as follows (setting debuglevel to trace on M2EE does not give more messages): Starting Mendix Runtime failed. -------- com.mendix.m2ee.api.internal.AdminException: Starting Mendix Runtime failed.    at com.mendix.m2ee.api.AdminExceptionExt$Extensions.withFeedback(AdminExceptionExt.scala:25) Caused by: java.lang.reflect.InvocationTargetException: null    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:118)    at java.base/java.lang.reflect.Method.invoke(Method.java:580)    at com.mendix.container.support.EventProcessorDelegate.$anonfun$sendEvent$3(EventProcessorDelegate.scala:18)    at scala.collection.immutable.List.foreach(List.scala:333)    at com.mendix.container.support.EventProcessorDelegate.sendEvent(EventProcessorDelegate.scala:16)    at com.mendix.container.support.EventProcessor.sendEvent(EventProcessor.scala:21)    at com.mendix.basis.impl.MxRuntimeImpl.sendEvent(MxRuntimeImpl.scala:1092)    at com.mendix.basis.impl.MxRuntimeImpl.$anonfun$doStart$3(MxRuntimeImpl.scala:872)    at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.scala:18)    at com.mendix.util.startupmeter.StartUpMeter.measure(StartUpMeter.scala:67)    at com.mendix.basis.impl.MxRuntimeImpl.$anonfun$doStart$2(MxRuntimeImpl.scala:872)    at com.mendix.basis.impl.MxRuntimeImpl.com$mendix$basis$impl$MxRuntimeImpl$$abortIfShuttingDown(MxRuntimeImpl.scala:201)    at com.mendix.basis.impl.MxRuntimeImpl.doStart(MxRuntimeImpl.scala:871)    at com.mendix.basis.impl.MxRuntimeImpl$Starting$.$anonfun$onEntry$17(MxRuntimeImpl.scala:539)    at com.mendix.basis.impl.MxRuntimeImpl.com$mendix$basis$impl$MxRuntimeImpl$$onFailureTransitionTo(MxRuntimeImpl.scala:331)    at com.mendix.basis.impl.MxRuntimeImpl$Starting$.onEntry(MxRuntimeImpl.scala:539)    at com.mendix.basis.impl.MxRuntimeImpl.enter(MxRuntimeImpl.scala:326)    at com.mendix.basis.impl.MxRuntimeImpl.com$mendix$basis$impl$MxRuntimeImpl$$transitionTo(MxRuntimeImpl.scala:317)    at com.mendix.basis.impl.MxRuntimeImpl$Idle$.start(MxRuntimeImpl.scala:344)    at com.mendix.basis.impl.MxRuntimeImpl.$anonfun$start$1(MxRuntimeImpl.scala:206)    at scala.runtime.java8.JFunction0$mcZ$sp.apply(JFunction0$mcZ$sp.scala:17)    at com.mendix.util.startupmeter.StartUpMeter.measure(StartUpMeter.scala:67)    at com.mendix.basis.impl.MxRuntimeImpl.start(MxRuntimeImpl.scala:205)    at com.mendix.m2ee.appcontainer.actions.StartAction.startRuntime(StartAction.scala:33)    at com.mendix.m2ee.appcontainer.actions.StartAction.execute(StartAction.scala:17)    at com.mendix.m2ee.appcontainer.server.handler.HttpAdminHandlerBase.service(HttpAdminHandlerBase.java:131)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:590)    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:764)    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:529)    at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221)    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1384)    at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176)    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:484)    at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174)    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1306)    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129)    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)    at org.eclipse.jetty.server.Server.handle(Server.java:563)    at org.eclipse.jetty.server.HttpChannel$RequestDispatchable.dispatch(HttpChannel.java:1598)    at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:753)    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:501)    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:287)    at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:314)    at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100)    at org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53)    at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:421)    at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:390)    at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:277)    at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.run(AdaptiveExecutionStrategy.java:199)    at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:411)    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:969)    at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.doRunJob(QueuedThreadPool.java:1194)    at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1149)    at java.base/java.lang.Thread.run(Thread.java:1583) Caused by: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"xpath":"//System.WorkflowDefinition[IsObsolete = false and not (ID = $in1)]","amount":-1,"variables":{"in1":["24769797950601944"]},"depth":0,"offset":-1,"limitedXPath":false,"sort":{},"lockType":"NoLocking","type":"RetrieveXPathAction","timeout":0}', all database changes executed by this action were rolled back    at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:117) Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"xpath":"//System.WorkflowDefinition[IsObsolete = false and not (ID = $in1)]","amount":-1,"variables":{"in1":["24769797950601944"]},"depth":0,"offset":-1,"limitedXPath":false,"sort":{},"lockType":"NoLocking","type":"RetrieveXPathAction","timeout":0}', all database changes executed by this action were rolled back    at com.mendix.util.classloading.Runner$.withContextClassLoader(Runner.scala:23) Caused by: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"xpath":"//System.WorkflowDefinition[IsObsolete = false and not (ID = $in1)]","amount":-1,"variables":{"in1":["24769797950601944"]},"depth":0,"offset":-1,"limitedXPath":false,"sort":{},"lockType":"NoLocking","type":"RetrieveXPathAction","timeout":0}', all database changes executed by this action were rolled back    at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.processErrorState(CoreActionHandlerImpl.scala:153) Caused by: com.mendix.basis.connectionbus.ConnectionBusException: An exception has occurred for the following request(s):    InternalXPathTextGetRequest (depth = 0): //System.WorkflowDefinition[IsObsolete = false and not (ID = $in1)]    at com.mendix.connectionbus.RequestAnalyzer.doRequest(RequestAnalyzer.scala:33) Caused by: com.mendix.basis.connectionbus.ConnectionBusException: Exception occurred while retrieving data. (SQL State: 42883, Error Code: 0)    at com.mendix.connectionbus.util.SqlExceptionUtils$.getDetailedException(SqlExceptionUtils.scala:18) Caused by: org.postgresql.util.PSQLException: ERROR: operator does not exist: bigint = character varying  Hint: No operator matches the given name and argument types. You might need to add explicit type casts.  Position: 365    at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2733)    at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2420)    at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:372)    at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:517)    at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:434)    at org.postgresql.jdbc.PgPreparedStatement.executeWithFlags(PgPreparedStatement.java:194)    at org.postgresql.jdbc.PgPreparedStatement.execute(PgPreparedStatement.java:180)    at org.apache.commons.dbcp2.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:95)    at org.apache.commons.dbcp2.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:95)    at com.mendix.connectionbus.connections.jdbc.RetrieveQueryExecutor.$anonfun$execRetrieveQuery$2(RetrieveQueryExecutor.scala:35)    at scala.runtime.java8.JFunction0$mcZ$sp.apply(JFunction0$mcZ$sp.scala:17)    at scala.util.Try$.apply(Try.scala:210)    at com.mendix.connectionbus.connections.jdbc.JdbcDataStore$.withLogging(JdbcDataStore.scala:69)    at com.mendix.connectionbus.connections.jdbc.RetrieveQueryExecutor.$anonfun$execRetrieveQuery$1(RetrieveQueryExecutor.scala:32)    at com.mendix.connectionbus.connections.jdbc.RetrieveQueryExecutor.withStatement(RetrieveQueryExecutor.scala:92)    at com.mendix.connectionbus.connections.jdbc.RetrieveQueryExecutor.execRetrieveQuery(RetrieveQueryExecutor.scala:27)    at com.mendix.connectionbus.connections.jdbc.implementations.postgresql.PostgreSqlRetrieveQueryExecutor.execRetrieveQuery(PostgreSqlRetrieveQueryExecutor.scala:30)    at com.mendix.connectionbus.connections.jdbc.JdbcDataStore.execRetrieveQueries(JdbcDataStore.scala:172)    at com.mendix.connectionbus.connections.jdbc.JdbcDataStore.retrieve(JdbcDataStore.scala:147)    at com.mendix.connectionbus.retrieve.QueryRequestExecutor.executeQueriesForLocal(QueryRequestExecutor.scala:97)    at com.mendix.connectionbus.retrieve.QueryRequestExecutor.executeQueries(QueryRequestExecutor.scala:34)    at com.mendix.connectionbus.retrieve.QueryRequestExecutor.execute(QueryRequestExecutor.scala:23)    at com.mendix.connectionbus.retrieve.DataStoreCaller.$anonfun$processOqlGetRequest$1(DataStoreCaller.scala:37)    at scala.Option.map(Option.scala:242)    at com.mendix.connectionbus.retrieve.DataStoreCaller.processOqlGetRequest(DataStoreCaller.scala:33)    at com.mendix.connectionbus.retrieve.DataStoreCaller.$anonfun$getResult$1(DataStoreCaller.scala:26)    at scala.collection.StrictOptimizedIterableOps.flatMap(StrictOptimizedIterableOps.scala:118)    at scala.collection.StrictOptimizedIterableOps.flatMap$(StrictOptimizedIterableOps.scala:105)    at scala.collection.immutable.ArraySeq.flatMap(ArraySeq.scala:35)    at com.mendix.connectionbus.retrieve.DataStoreCaller.getResult(DataStoreCaller.scala:26)    at com.mendix.connectionbus.retrieve.GetRequestHandler.doOtherRequests(GetRequestHandler.scala:69)    at com.mendix.connectionbus.retrieve.GetRequestHandler.doRequest(GetRequestHandler.scala:29)    at com.mendix.connectionbus.RequestAnalyzer.doRequest(RequestAnalyzer.scala:30)    at com.mendix.connectionbus.ConnectionBusImpl.doRequest(ConnectionBusImpl.scala:470)    at com.mendix.basis.action.user.RetrieveXPathRawAction.executeAction(RetrieveXPathRawAction.scala:74)    at com.mendix.basis.action.user.RetrieveXPathAction.executeAction(RetrieveXPathAction.scala:46)    at com.mendix.basis.action.user.RetrieveXPathAction.executeAction(RetrieveXPathAction.scala:13)    at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:63)    at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71)    at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:48)    at com.mendix.core.actionmanagement.internal.InternalCoreAction.call(InternalCoreAction.java:66)    at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.$anonfun$runMonitoredAction$1(CoreActionHandlerImpl.scala:59)    at com.mendix.basis.actionmanagement.ActionMonitoring$.$anonfun$monitor$1(ActionMonitoring.scala:52)    at com.mendix.util.classloading.Runner$.withContextClassLoader(Runner.scala:20)    at com.mendix.basis.actionmanagement.ActionMonitoring$.monitor(ActionMonitoring.scala:52)    at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.runMonitoredAction(CoreActionHandlerImpl.scala:59)    at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:46)    at com.mendix.core.actionmanagement.internal.InternalCoreAction.call(InternalCoreAction.java:66)    at com.mendix.basis.actionmanagement.ActionManager.$anonfun$executeSync$2(ActionManager.scala:114)    at com.mendix.util.classloading.Runner$.withContextClassLoader(Runner.scala:20)    at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:114)    at com.mendix.basis.action.InternalXPathQuery.execute(InternalXPathQuery.scala:39)    at com.mendix.workflows.external.runtimeintegration.MendixWorkflowRepository$CoreWorkflowStorageRepository.retrieveByPredicate(MendixWorkflowRepository.scala:86)    at com.mendix.workflows.definition.WorkflowDefinitionDatabaseRepository$.loadNewObsoletedDefinitions(WorkflowDefinitionDatabaseRepository.scala:110)    at com.mendix.workflows.definition.WorkflowDefinitionDatabaseRepository$.$anonfun$storeWorkflowDefinitions$1(WorkflowDefinitionDatabaseRepository.scala:42)    at com.mendix.workflows.external.runtimeintegration.MendixDatabaseTransactionManager.com$mendix$workflows$external$runtimeintegration$MendixDatabaseTransactionManager$$executeTransactional$1(MendixDatabaseTransactionManager.scala:23)    at com.mendix.workflows.external.runtimeintegration.MendixDatabaseTransactionManager.withTransaction(MendixDatabaseTransactionManager.scala:42)    at com.mendix.workflows.definition.WorkflowDefinitionDatabaseRepository$.storeWorkflowDefinitions(WorkflowDefinitionDatabaseRepository.scala:33)    at com.mendix.workflows.external.runtimeintegration.WorkflowComponent.initializeWorkflowEngine(WorkflowComponent.scala:117)    at com.mendix.workflows.external.runtimeintegration.WorkflowComponent.handleBeforeStartupActionEvent(WorkflowComponent.scala:80)    at com.mendix.workflows.external.runtimeintegration.WorkflowComponent.handleEvent(WorkflowComponent.scala:63)    at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)    at java.base/java.lang.reflect.Method.invoke(Method.java:580)    at com.mendix.container.support.EventProcessorDelegate.$anonfun$sendEvent$3(EventProcessorDelegate.scala:18)    at scala.collection.immutable.List.foreach(List.scala:333)    at com.mendix.container.support.EventProcessorDelegate.sendEvent(EventProcessorDelegate.scala:16)    at com.mendix.container.support.EventProcessor.sendEvent(EventProcessor.scala:21)    at com.mendix.basis.impl.MxRuntimeImpl.sendEvent(MxRuntimeImpl.scala:1092)    at com.mendix.basis.impl.MxRuntimeImpl.$anonfun$doStart$3(MxRuntimeImpl.scala:872)    at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.scala:18)    at com.mendix.util.startupmeter.StartUpMeter.measure(StartUpMeter.scala:67)    at com.mendix.basis.impl.MxRuntimeImpl.$anonfun$doStart$2(MxRuntimeImpl.scala:872)    at com.mendix.basis.impl.MxRuntimeImpl.com$mendix$basis$impl$MxRuntimeImpl$$abortIfShuttingDown(MxRuntimeImpl.scala:201)    at com.mendix.basis.impl.MxRuntimeImpl.doStart(MxRuntimeImpl.scala:871)    at com.mendix.basis.impl.MxRuntimeImpl$Starting$.$anonfun$onEntry$17(MxRuntimeImpl.scala:539)    at com.mendix.basis.impl.MxRuntimeImpl.com$mendix$basis$impl$MxRuntimeImpl$$onFailureTransitionTo(MxRuntimeImpl.scala:331)    at com.mendix.basis.impl.MxRuntimeImpl$Starting$.onEntry(MxRuntimeImpl.scala:539)    at com.mendix.basis.impl.MxRuntimeImpl.enter(MxRuntimeImpl.scala:326)    at com.mendix.basis.impl.MxRuntimeImpl.com$mendix$basis$impl$MxRuntimeImpl$$transitionTo(MxRuntimeImpl.scala:317)    at com.mendix.basis.impl.MxRuntimeImpl$Idle$.start(MxRuntimeImpl.scala:344)    at com.mendix.basis.impl.MxRuntimeImpl.$anonfun$start$1(MxRuntimeImpl.scala:206)    at scala.runtime.java8.JFunction0$mcZ$sp.apply(JFunction0$mcZ$sp.scala:17)    at com.mendix.util.startupmeter.StartUpMeter.measure(StartUpMeter.scala:67)    at com.mendix.basis.impl.MxRuntimeImpl.start(MxRuntimeImpl.scala:205)    at com.mendix.m2ee.appcontainer.actions.StartAction.startRuntime(StartAction.scala:33)    at com.mendix.m2ee.appcontainer.actions.StartAction.execute(StartAction.scala:17)    at com.mendix.m2ee.appcontainer.server.handler.HttpAdminHandlerBase.service(HttpAdminHandlerBase.java:131)    at javax.servlet.http.HttpServlet.service(HttpServlet.java:590)    at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:764)    at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:529)    at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221)    at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1384)    at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176)    at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:484)    at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174)    at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1306)    at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129)    at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122)    at org.eclipse.jetty.server.Server.handle(Server.java:563)    at org.eclipse.jetty.server.HttpChannel$RequestDispatchable.dispatch(HttpChannel.java:1598)    at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:753)    at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:501)    at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:287)    at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:314)    at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100)    at org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53)    at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:421)    at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:390)    at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:277)    at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.run(AdaptiveExecutionStrategy.java:199)    at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:411)    at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:969)    at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.doRunJob(QueuedThreadPool.java:1194)    at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1149)    at java.base/java.lang.Thread.run(Thread.java:1583)        
asked
2 answers
1

Hi Maurice,

 

did you already try upgrading to 10.18.1? The 10.18.1 release notes ) do mention something similar in the fixes section:

 

"We fixed an issue with XPath collection parameters. An XPath collection parameter with a single element now has proper type conversion done like other parameters. This issue affected the workflow engine startup in cases where there was only a single workflow defined in the app."

 

 

 

 

answered
0

Maurice,

This seems to be an issue in the runtime and the issue cause is stated in the log, see:

Caused by: org.postgresql.util.PSQLException: ERROR: operator does not exist: bigint = character varying 

The complete statement seems to compae the bigint ID with a character value and this is not something that you have control over. I suggest creating a ticket with mendix support and share your case with them.

answered