If the polling happens in a microflow which is triggered by a button,it may be a timeout issue. You can solve this by editing the button properties and switching from synchronous to asynchronous. This would also explain why you don’t see an error message in your log: the timeout is client side, while everything on the server works fine.
Hi Rom,
thanks for your hint. I have tried to configure the microflow calling options and set it to asynchronous mode. But the result was a little bit surprising, the error occurred much earlier. But now I can find something in the log file...
ActionManager: Exception in execution of monitored action '{"name":"WindNODEWebApp.MVP_optimizationLoopProcessID_2","type":"Microflow"}' (execution id: 53f5247f-5d51-4bbf-9e20-d51b1a9af7e1, execution type: CLIENT_ASYNC_MONITORED)
2020-02-10T14:09:34.87+0100 [APP/PROC/WEB/0] OUT ERROR - ActionManager: com.mendix.modules.microflowengine.MicroflowException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreException: com.mendix.modules.microflowengine.MicroflowException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.NullPointerException
2020-02-10T14:09:34.87+0100 [APP/PROC/WEB/0] OUT at MindSphereSingleSignOn.DS_MindSphereAccessToken (JavaAction : 'GetAccessToken')
2020-02-10T14:09:34.87+0100 [APP/PROC/WEB/0] OUT at {"name":"MindSphereSingleSignOn.MindSphereAccessTokenConnector","type":"JavaAction"}
2020-02-10T14:09:34.87+0100 [APP/PROC/WEB/0] OUT at WindNODEWebApp.CreateStartOptimizingEvent (JavaAction : 'Access token')
2020-02-10T14:09:34.87+0100 [APP/PROC/WEB/0] OUT at WindNODEWebApp.MVP_optimizationLoopProcessID_2 (SubMicroflow : 'CreateStartOptimizingEvent')
2020-02-10T14:09:34.87+0100 [APP/PROC/WEB/0] OUT Advanced stacktrace:
2020-02-10T14:09:34.87+0100 [APP/PROC/WEB/0] OUT at WindNODEWebApp.CreateStartOptimizingEvent (JavaAction : 'Access token')
2020-02-10T14:09:34.87+0100 [APP/PROC/WEB/0] OUT at WindNODEWebApp.MVP_optimizationLoopProcessID_2 (SubMicroflow : 'CreateStartOptimizingEvent')
2020-02-10T14:09:34.87+0100 [APP/PROC/WEB/0] OUT Advanced stacktrace:ActionManager: Exception in execution of monitored action '{"name":"WindNODEWebApp.MVP_optimizationLoopProcessID_2","type":"Microflow"}' (execution id: 53f5247f-5d51-4bbf-9e20-d51b1a9af7e1, execution type: CLIENT_ASYNC_MONITORED)
2020-02-10T14:09:34.87+0100 [APP/PROC/WEB/0] OUT ERROR - ActionManager: com.mendix.modules.microflowengine.MicroflowException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreException: com.mendix.modules.microflowengine.MicroflowException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: java.lang.NullPointerException
2020-02-10T14:09:34.87+0100 [APP/PROC/WEB/0] OUT at MindSphereSingleSignOn.DS_MindSphereAccessToken (JavaAction : 'GetAccessToken')
2020-02-10T14:09:34.87+0100 [APP/PROC/WEB/0] OUT at {"name":"MindSphereSingleSignOn.MindSphereAccessTokenConnector","type":"JavaAction"}
2020-02-10T14:09:34.87+0100 [APP/PROC/WEB/0] OUT at WindNODEWebApp.CreateStartOptimizingEvent (JavaAction : 'Access token')
2020-02-10T14:09:34.87+0100 [APP/PROC/WEB/0] OUT at WindNODEWebApp.MVP_optimizationLoopProcessID_2 (SubMicroflow : 'CreateStartOptimizingEvent')
2020-02-10T14:09:34.87+0100 [APP/PROC/WEB/0] OUT Advanced stacktrace:
2020-02-10T14:09:34.87+0100 [APP/PROC/WEB/0] OUT at WindNODEWebApp.CreateStartOptimizingEvent (JavaAction : 'Access token')
2020-02-10T14:09:34.87+0100 [APP/PROC/WEB/0] OUT at WindNODEWebApp.MVP_optimizationLoopProcessID_2 (SubMicroflow : 'CreateStartOptimizingEvent')
2020-02-10T14:09:34.87+0100 [APP/PROC/WEB/0] OUT Advanced stacktrace:
I think, the mindsphere sso connector has some problems with the asynchronous call. I think, the mindsphere sso connector has some problems with the asynchronous call.
Is there a possibility to increase the timeout value for the synchronous call?Is there a possibility to increase the timeout value for the synchronous call?