ERROR - WebServices: com.mendix.core.CoreRuntimeException: Failed to commit

0
Hi, we made some of our incoming webservice messages persistable, as we want to first put them into a queue and process them lateron. Every once in a while (a few days up to a week) we get this error:  ERROR - WebServices: com.mendix.core.CoreRuntimeException: Failed to commit. This happens before the WS_ Microflow (as defined in the Operations in the webservice) is called in which we put the message into the queue. What can cause the WebService to generate this error? Funny thing: after restarting the app the same incoming message is processed successfully... The stack trace:  2020-03-22 20:01:57.771 ERROR - WebServices: Exception occurred while processing webservice request 2020-03-22 20:01:57.771 ERROR - WebServices: com.mendix.core.CoreRuntimeException: Failed to commit             at com.mendix.basis.component.CommitHandler.commit(CommitHandler.scala:155)   Caused by: com.mendix.core.CoreRuntimeException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"before":[{}],"action":{"type":"CommitAction"},"after":[],"type":"EventExtendedAction"}', all database changes executed by this action were rolled back             at com.mendix.basis.actionmanagement.ActionManagerBase.executeInTransactionSync(ActionManagerBase.java:125)   Caused by: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"before":[{}],"action":{"type":"CommitAction"},"after":[],"type":"EventExtendedAction"}', all database changes executed by this action were rolled back             at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:159)   Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"before":[{}],"action":{"type":"CommitAction"},"after":[],"type":"EventExtendedAction"}', all database changes executed by this action were rolled back             at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)   Caused by: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"before":[{}],"action":{"type":"CommitAction"},"after":[],"type":"EventExtendedAction"}', all database changes executed by this action were rolled back             at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.processErrorState(CoreActionHandlerImpl.scala:160)   Caused by: com.mendix.core.CoreException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.NullPointerException             at com.mendix.basis.actionmanagement.SyncEventExtendedAction.executeAction(SyncEventExtendedAction.java:43)   Caused by: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.NullPointerException             at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:159)   Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.NullPointerException             at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36)   Caused by: java.lang.NullPointerException: null             at java.lang.AbstractStringBuilder.append(Unknown Source)             at java.lang.StringBuilder.append(Unknown Source)             at com.mendix.basis.action.user.UniquenessChecker.findEntityOnAttribute(UniquenessChecker.scala:103)             at com.mendix.basis.action.user.UniquenessChecker.existsInDatabase(UniquenessChecker.scala:81)             at com.mendix.basis.action.user.UniquenessChecker.$anonfun$check$6(UniquenessChecker.scala:46)             at com.mendix.basis.action.user.UniquenessChecker.$anonfun$check$6$adapted(UniquenessChecker.scala:41)             at scala.Option.foreach(Option.scala:274)             at com.mendix.basis.action.user.UniquenessChecker.$anonfun$check$5(UniquenessChecker.scala:41)             at com.mendix.basis.action.user.UniquenessChecker.$anonfun$check$5$adapted(UniquenessChecker.scala:38)             at scala.collection.immutable.List.foreach(List.scala:392)             at com.mendix.basis.action.user.UniquenessChecker.$anonfun$check$4(UniquenessChecker.scala:38)             at scala.collection.immutable.List.flatMap(List.scala:338)             at com.mendix.basis.action.user.UniquenessChecker.checkUniqueness$1(UniquenessChecker.scala:34)             at com.mendix.basis.action.user.UniquenessChecker.check(UniquenessChecker.scala:57)             at com.mendix.basis.action.user.CommitAction.commitPersistableObjects(CommitAction.scala:92)             at com.mendix.basis.action.user.CommitAction.executeAction(CommitAction.scala:59)             at com.mendix.basis.action.user.CommitAction.executeAction(CommitAction.scala:29)             at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:46)             at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:79)             at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:57)             at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:55)             at com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:150)             at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)             at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:155)             at com.mendix.basis.actionmanagement.SyncEventExtendedAction.executeAction(SyncEventExtendedAction.java:41)             at com.mendix.basis.actionmanagement.EventExtendedAction.execute(EventExtendedAction.java:102)             at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:79)             at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:57)             at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:55)             at com.mendix.basis.actionmanagement.DefaultActionMonitor$.$anonfun$run$1(CustomMonitoredAction.scala:18)             at com.mendix.basis.actionmanagement.IMonitoredAction$$anon$1.execute(IMonitoredAction.scala:47)             at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)             at com.mendix.basis.actionmanagement.IMonitoredAction.monitor(IMonitoredAction.scala:49)             at com.mendix.basis.actionmanagement.IMonitoredAction.monitor$(IMonitoredAction.scala:25)             at com.mendix.basis.actionmanagement.CustomMonitoredAction.monitor(CustomMonitoredAction.scala:22)             at com.mendix.basis.actionmanagement.DefaultActionMonitor$.run(CustomMonitoredAction.scala:18)             at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.runMonitoredAction(CoreActionHandlerImpl.scala:68)             at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:55)             at com.mendix.core.actionmanagement.CoreAction.call(CoreAction.java:55)             at com.mendix.basis.actionmanagement.ActionManagerBase$1.execute(ActionManagerBase.java:153)             at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)             at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:155)             at com.mendix.basis.actionmanagement.ActionManagerBase.executeInTransactionSync(ActionManagerBase.java:118)             at com.mendix.basis.component.CommitHandler.$anonfun$storeObjectsAndAutoCommittedObjects$1(CommitHandler.scala:169)             at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:237)             at scala.collection.immutable.List.foreach(List.scala:392)             at scala.collection.TraversableLike.map(TraversableLike.scala:237)             at scala.collection.TraversableLike.map$(TraversableLike.scala:230)             at scala.collection.immutable.List.map(List.scala:298)             at com.mendix.basis.component.CommitHandler.storeObjectsAndAutoCommittedObjects(CommitHandler.scala:167)             at com.mendix.basis.component.CommitHandler.commit(CommitHandler.scala:127)             at com.mendix.basis.component.CommitHandler.commit$(CommitHandler.scala:109)             at com.mendix.basis.component.InternalCore.commit(InternalCore.scala:7)             at com.mendix.basis.component.CommitHandler.commitWithEvents(CommitHandler.scala:68)             at com.mendix.basis.component.CommitHandler.commit(CommitHandler.scala:27)             at com.mendix.basis.component.CommitHandler.commit$(CommitHandler.scala:26)             at com.mendix.basis.component.InternalCore.commit(InternalCore.scala:7)             at com.mendix.basis.component.CommitHandler.commit(CommitHandler.scala:22)             at com.mendix.basis.component.CommitHandler.commit$(CommitHandler.scala:22)             at com.mendix.basis.component.InternalCore.commit(InternalCore.scala:7)             at com.mendix.basis.session.User.commit(User.java:251)             at com.mendix.integration.webservices.publish.handling.WebServiceCallHeaderProcessor.handleSuccessfulLogin(WebServiceCallHeaderProcessor.scala:114)             at com.mendix.integration.webservices.publish.handling.WebServiceCallHeaderProcessor.$anonfun$createUser$1(WebServiceCallHeaderProcessor.scala:94)             at com.mendix.integration.util.AutoCloseableUtil$.using(AutoCloseableUtil.scala:10)             at com.mendix.integration.webservices.publish.handling.WebServiceCallHeaderProcessor.createUser(WebServiceCallHeaderProcessor.scala:67)             at com.mendix.integration.webservices.publish.handling.WebServiceCallHeaderProcessor.authenticateUserNamePasswordHeader(WebServiceCallHeaderProcessor.scala:54)             at com.mendix.integration.webservices.publish.handling.WebServiceCallHeaderProcessor.$anonfun$authenticate$2(WebServiceCallHeaderProcessor.scala:32)             at scala.Option.fold(Option.scala:175)             at com.mendix.integration.webservices.publish.handling.WebServiceCallHeaderProcessor.authenticate(WebServiceCallHeaderProcessor.scala:32)             at com.mendix.integration.webservices.publish.handling.WebserviceCallHandler.$anonfun$handleSoapRequest$4(WebserviceCallHandler.scala:74)             at com.mendix.integration.webservices.publish.handling.WebserviceCallHandler.$anonfun$handleSoapRequest$4$adapted(WebserviceCallHandler.scala:69)             at scala.Option.fold(Option.scala:175)             at com.mendix.integration.webservices.publish.handling.WebserviceCallHandler.$anonfun$handleSoapRequest$2(WebserviceCallHandler.scala:69)             at com.mendix.integration.webservices.publish.handling.WebserviceCallHandler.$anonfun$handleSoapRequest$2$adapted(WebserviceCallHandler.scala:68)             at scala.Option.fold(Option.scala:175)             at com.mendix.integration.webservices.publish.handling.WebserviceCallHandler.handleSoapRequest(WebserviceCallHandler.scala:68)             at com.mendix.integration.webservices.publish.handling.WebserviceCallHandler.processRequest(WebserviceCallHandler.scala:45)             at com.mendix.integration.webservices.WebserviceModuleImpl.handleWebserviceCall(WebserviceModuleImpl.scala:77)             at com.mendix.integration.requesthandlers.WebserviceRequestHandler.processRequest(WebserviceRequestHandler.scala:12)             at com.mendix.externalinterface.connector.RequestHandler.doProcessRequest(RequestHandler.java:40)             at com.mendix.external.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:72)             at com.mendix.external.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:69)             at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)             at com.mendix.external.connector.MxRuntimeConnector.processRequest(MxRuntimeConnector.java:75)             at com.mendix.basis.impl.MxRuntimeImpl.processRequest(MxRuntimeImpl.java:909)             at com.mendix.m2ee.appcontainer.server.handler.RuntimeHandler.service(RuntimeHandler.java:42)             at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)             at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:867)             at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:542)             at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)             at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1588)             at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)             at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)             at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)             at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480)             at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1557)             at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)             at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)             at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)             at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)             at org.eclipse.jetty.server.Server.handle(Server.java:502)             at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364)             at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)             at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)             at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)             at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)             at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)             at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683)             at java.lang.Thread.run(Unknown Source)
asked
1 answers
0

Taking a quick look at the stack trace, is it related to something in https://forum.mendix.com/link/questions/98480 about the UniquenessChecker?

answered