Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 81020

Strange issue with scheduled events testing Mendix 6.7.0

$
0
0

I have an Alert entity where records can be created either manually, or through a scheduled event. An After Create microflow on the entity ensures that an association is set to a Segment entity (which is used to control access to the data segment).

After upgrading to version 6.7.0 I am getting errors when the scheduled event runs. If I remove the after create microflow the error is not present. Here is the After Create microflow that seems to be the issue (I would expect the schedule event to follow the (empty) branch from the inheritance split on currentUser):

https://modelshare.mendix.com/models/25d6c156-da84-46df-b241-c9b00809aa19/after-create-alert-set-segment

Here is the stacktrace of the scheuled event:

Exception in execution of monitored action 'SLA.TriggerEsc' (execution id: 95deefc1-5055-42ef-b7d3-1da60ee8a555, execution type: SCHEDULEDEVENT)


com.mendix.modules.microflowengine.MicroflowException: com.mendix.modules.microflowengine.MicroflowException: com.mendix.modules.microflowengine.MicroflowException: at SLA.AfterCrAlertSetSegment (Gateway : '') at {"before":[],"action":{"entityName":"SLA.Alert","type":"CreateAction"},"after":[{}],"type":"EventExtendedAction"} at SLA.SendNotificationesccommit (CreateAndChange : 'Create Alert(AlertSegment)') at SLA.NotifyActorEscalation.nested.c290e247-33c7-4914-b619-3be4aa5db098 [0 of 22] (SubMicroflow : 'Call 'Send Notification w/commit'') at SLA.NotifyActorEscalation (NestedLoopedMicroflow : '') at SLA.BCEscPendOnModify.nested.ad04431d-9354-428d-9377-b64b4b61e127 [0 of 1] (SubMicroflow : 'Call 'Notify Actor Escalation'') at SLA.BCEscPendOnModify (NestedLoopedMicroflow : '') at {"before":[{},{}],"action":{"type":"CommitAction"},"after":[],"type":"EventExtendedAction"} at SLA.TriggerEsc.nested.306f2a94-3e1a-4411-9d07-d2235d984faf [0 of 1] (Change : 'Set to triggered') at SLA.TriggerEsc (NestedLoopedMicroflow : '')

Advanced stacktrace: at SLA.SendNotificationesccommit (CreateAndChange : 'Create Alert(AlertSegment)') at SLA.NotifyActorEscalation.nested.c290e247-33c7-4914-b619-3be4aa5db098 [0 of 22] (SubMicroflow : 'Call 'Send Notification w/commit'') at SLA.NotifyActorEscalation (NestedLoopedMicroflow : '') at SLA.BCEscPendOnModify.nested.ad04431d-9354-428d-9377-b64b4b61e127 [0 of 1] (SubMicroflow : 'Call 'Notify Actor Escalation'') at SLA.BCEscPendOnModify (NestedLoopedMicroflow : '') at {"before":[{},{}],"action":{"type":"CommitAction"},"after":[],"type":"EventExtendedAction"} at SLA.TriggerEsc.nested.306f2a94-3e1a-4411-9d07-d2235d984faf [0 of 1] (Change : 'Set to triggered') at SLA.TriggerEsc (NestedLoopedMicroflow : '')

Advanced stacktrace: at SLA.TriggerEsc.nested.306f2a94-3e1a-4411-9d07-d2235d984faf [0 of 1] (Change : 'Set to triggered') at SLA.TriggerEsc (NestedLoopedMicroflow : '')

Advanced stacktrace: at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:143)

Caused by: com.mendix.core.CoreRuntimeException: com.mendix.modules.microflowengine.MicroflowException: com.mendix.modules.microflowengine.MicroflowException: at SLA.AfterCrAlertSetSegment (Gateway : '') at {"before":[],"action":{"entityName":"SLA.Alert","type":"CreateAction"},"after":[{}],"type":"EventExtendedAction"} at SLA.SendNotificationesccommit (CreateAndChange : 'Create Alert(AlertSegment)') at SLA.NotifyActorEscalation.nested.c290e247-33c7-4914-b619-3be4aa5db098 [0 of 22] (SubMicroflow : 'Call 'Send Notification w/commit'') at SLA.NotifyActorEscalation (NestedLoopedMicroflow : '') at SLA.BCEscPendOnModify.nested.ad04431d-9354-428d-9377-b64b4b61e127 [0 of 1] (SubMicroflow : 'Call 'Notify Actor Escalation'') at SLA.BCEscPendOnModify (NestedLoopedMicroflow : '') at {"before":[{},{}],"action":{"type":"CommitAction"},"after":[],"type":"EventExtendedAction"} at SLA.TriggerEsc.nested.306f2a94-3e1a-4411-9d07-d2235d984faf [0 of 1] (Change : 'Set to triggered') at SLA.TriggerEsc (NestedLoopedMicroflow : '')

Advanced stacktrace: at SLA.SendNotificationesccommit (CreateAndChange : 'Create Alert(AlertSegment)') at SLA.NotifyActorEscalation.nested.c290e247-33c7-4914-b619-3be4aa5db098 [0 of 22] (SubMicroflow : 'Call 'Send Notification w/commit'') at SLA.NotifyActorEscalation (NestedLoopedMicroflow : '') at SLA.BCEscPendOnModify.nested.ad04431d-9354-428d-9377-b64b4b61e127 [0 of 1] (SubMicroflow : 'Call 'Notify Actor Escalation'') at SLA.BCEscPendOnModify (NestedLoopedMicroflow : '') at {"before":[{},{}],"action":{"type":"CommitAction"},"after":[],"type":"EventExtendedAction"} at SLA.TriggerEsc.nested.306f2a94-3e1a-4411-9d07-d2235d984faf [0 of 1] (Change : 'Set to triggered') at SLA.TriggerEsc (NestedLoopedMicroflow : '')

Advanced stacktrace: at com.mendix.core.actionmanagement.ActionManager.executeInTransactionSync(ActionManager.java:143)

Caused by: com.mendix.modules.microflowengine.MicroflowException: com.mendix.modules.microflowengine.MicroflowException: at SLA.AfterCrAlertSetSegment (Gateway : '') at {"before":[],"action":{"entityName":"SLA.Alert","type":"CreateAction"},"after":[{}],"type":"EventExtendedAction"} at SLA.SendNotificationesccommit (CreateAndChange : 'Create Alert(AlertSegment)') at SLA.NotifyActorEscalation.nested.c290e247-33c7-4914-b619-3be4aa5db098 [0 of 22] (SubMicroflow : 'Call 'Send Notification w/commit'') at SLA.NotifyActorEscalation (NestedLoopedMicroflow : '') at SLA.BCEscPendOnModify.nested.ad04431d-9354-428d-9377-b64b4b61e127 [0 of 1] (SubMicroflow : 'Call 'Notify Actor Escalation'') at SLA.BCEscPendOnModify (NestedLoopedMicroflow : '') at {"before":[{},{}],"action":{"type":"CommitAction"},"after":[],"type":"EventExtendedAction"} at SLA.TriggerEsc.nested.306f2a94-3e1a-4411-9d07-d2235d984faf [0 of 1] (Change : 'Set to triggered') at SLA.TriggerEsc (NestedLoopedMicroflow : '')

Advanced stacktrace: at SLA.SendNotificationesccommit (CreateAndChange : 'Create Alert(AlertSegment)') at SLA.NotifyActorEscalation.nested.c290e247-33c7-4914-b619-3be4aa5db098 [0 of 22] (SubMicroflow : 'Call 'Send Notification w/commit'') at SLA.NotifyActorEscalation (NestedLoopedMicroflow : '') at SLA.BCEscPendOnModify.nested.ad04431d-9354-428d-9377-b64b4b61e127 [0 of 1] (SubMicroflow : 'Call 'Notify Actor Escalation'') at SLA.BCEscPendOnModify (NestedLoopedMicroflow : '') at {"before":[{},{}],"action":{"type":"CommitAction"},"after":[],"type":"EventExtendedAction"} at SLA.TriggerEsc.nested.306f2a94-3e1a-4411-9d07-d2235d984faf [0 of 1] (Change : 'Set to triggered') at SLA.TriggerEsc (NestedLoopedMicroflow : '')

Advanced stacktrace: at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:143)

Caused by: com.mendix.core.CoreRuntimeException: com.mendix.modules.microflowengine.MicroflowException: at SLA.AfterCrAlertSetSegment (Gateway : '') at {"before":[],"action":{"entityName":"SLA.Alert","type":"CreateAction"},"after":[{}],"type":"EventExtendedAction"} at SLA.SendNotificationesccommit (CreateAndChange : 'Create Alert(AlertSegment)') at SLA.NotifyActorEscalation.nested.c290e247-33c7-4914-b619-3be4aa5db098 [0 of 22] (SubMicroflow : 'Call 'Send Notification w/commit'') at SLA.NotifyActorEscalation (NestedLoopedMicroflow : '') at SLA.BCEscPendOnModify.nested.ad04431d-9354-428d-9377-b64b4b61e127 [0 of 1] (SubMicroflow : 'Call 'Notify Actor Escalation'') at SLA.BCEscPendOnModify (NestedLoopedMicroflow : '') at {"before":[{},{}],"action":{"type":"CommitAction"},"after":[],"type":"EventExtendedAction"} at SLA.TriggerEsc.nested.306f2a94-3e1a-4411-9d07-d2235d984faf [0 of 1] (Change : 'Set to triggered') at SLA.TriggerEsc (NestedLoopedMicroflow : '')

Advanced stacktrace: at com.mendix.core.actionmanagement.ActionManager.executeInTransactionSync(ActionManager.java:143)

Caused by: com.mendix.modules.microflowengine.MicroflowException: at SLA.AfterCrAlertSetSegment (Gateway : '') at {"before":[],"action":{"entityName":"SLA.Alert","type":"CreateAction"},"after":[{}],"type":"EventExtendedAction"} at SLA.SendNotificationesccommit (CreateAndChange : 'Create Alert(AlertSegment)') at SLA.NotifyActorEscalation.nested.c290e247-33c7-4914-b619-3be4aa5db098 [0 of 22] (SubMicroflow : 'Call 'Send Notification w/commit'') at SLA.NotifyActorEscalation (NestedLoopedMicroflow : '') at SLA.BCEscPendOnModify.nested.ad04431d-9354-428d-9377-b64b4b61e127 [0 of 1] (SubMicroflow : 'Call 'Notify Actor Escalation'') at SLA.BCEscPendOnModify (NestedLoopedMicroflow : '') at {"before":[{},{}],"action":{"type":"CommitAction"},"after":[],"type":"EventExtendedAction"} at SLA.TriggerEsc.nested.306f2a94-3e1a-4411-9d07-d2235d984faf [0 of 1] (Change : 'Set to triggered') at SLA.TriggerEsc (NestedLoopedMicroflow : '')

Advanced stacktrace: at com.mendix.modules.microflowengine.MicroflowUtil.processException(MicroflowUtil.java:143)

Caused by: java.lang.NullPointerException: null at com.mendix.core.action.RequestScope.getCurrentUserObject(RequestScope.scala:37) at com.mendix.core.action.ContextImpl.getCurrentUserObject(ContextImpl.java:178) at com.mendix.modules.microflowengine.microflow.impl.ScopeImpl.getVariable(ScopeImpl.java:32) at com.mendix.modules.microflowengine.microflow.impl.MicroflowImpl.getVariable(MicroflowImpl.java:222) at com.mendix.modules.microflowengine.actions.other.InheritanceSplitAction.execute(GatewayAction.scala:59) at com.mendix.modules.microflowengine.microflow.impl.MicroflowObject.execute(MicroflowObject.java:47)


Viewing all articles
Browse latest Browse all 81020

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>