Multi-thread - CommunityCommons.executeMicroflowInBackground ---- Exception

0
Hi  When calling the CommunityCommons.executeMicroflowInBackground  java action with a given microflow ( say Microflow X ) an exception is  thrown. If the same microflow ( Microflow X) is called WITHOUT  CommunityCommons.executeMicroflowInBackground the microflow does NOT result in an exception. Here is the exception message: java.lang.NullPointerException: null     at com.mendix.modules.debugger.internal.DebuggerJSONGenerator$.addMxObjectProperties(DebuggerJSONGenerator.scala:127)     at com.mendix.modules.debugger.internal.DebuggerJSONGenerator$.$anonfun$createMicroflowVariables$1(DebuggerJSONGenerator.scala:89)     at scala.collection.immutable.Map$Map3.foreach(Map.scala:440)     at com.mendix.modules.debugger.internal.DebuggerJSONGenerator$.createMicroflowVariables(DebuggerJSONGenerator.scala:81)     at com.mendix.modules.debugger.internal.DebuggerJSONGenerator$.createPausedMicroflowObject(DebuggerJSONGenerator.scala:64)     at com.mendix.modules.debugger.internal.DebuggerJSONGenerator$.createEventObject(DebuggerJSONGenerator.scala:38)     at com.mendix.modules.debugger.internal.DebuggerHandler.$anonfun$processJsonRequest$8(DebuggerHandler.scala:129)     at scala.collection.Iterator$$anon$9.next(Iterator.scala:575)     at scala.collection.mutable.Growable.addAll(Growable.scala:62)     at scala.collection.mutable.Growable.addAll$(Growable.scala:59)     at scala.collection.mutable.ArrayBuffer.addAll(ArrayBuffer.scala:147)     at scala.collection.mutable.ArrayBuffer.addAll(ArrayBuffer.scala:40)     at scala.collection.mutable.ArrayBuffer$.from(ArrayBuffer.scala:265)     at scala.collection.mutable.ArrayBuffer$.from(ArrayBuffer.scala:253)     at scala.collection.IterableOps.map(Iterable.scala:671)     at scala.collection.IterableOps.map$(Iterable.scala:671)     at scala.collection.AbstractIterable.map(Iterable.scala:920)     at com.mendix.modules.debugger.internal.DebuggerHandler.processJsonRequest(DebuggerHandler.scala:129)     at com.mendix.modules.debugger.internal.DebuggerHandler.processRequest(DebuggerHandler.scala:50)     at com.mendix.externalinterface.connector.RequestHandler.doProcessRequest(RequestHandler.java:46)     at com.mendix.external.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:76)     at com.mendix.external.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:73)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:26)     at com.mendix.external.connector.MxRuntimeConnector.processRequest(MxRuntimeConnector.java:79)     at com.mendix.basis.impl.MxRuntimeImplBase.processRequest(MxRuntimeImplBase.java:953)     at com.mendix.m2ee.appcontainer.server.handler.RuntimeServlet.service(RuntimeServlet.java:42)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)     at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:763)     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1631)     at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:226)     at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1618)     at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:549)     at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)     at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1610)     at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)     at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1369)     at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)     at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:489)     at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1580)     at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)     at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1284)     at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)     at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)     at org.eclipse.jetty.server.Server.handle(Server.java:501)     at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383)     at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:556)     at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)     at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:272)     at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)     at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)     at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)     at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375)     at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806)     at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)     at java.base/java.lang.Thread.run(Thread.java:834)   What would be causing this exception and/or how to find the cause?   Thanks        
asked
1 answers
0

So it occurs with any microflow? If so, my suspicion would go to Java. Is the widget up to date and original, or overwritten/modified somehow? What if you remove any .jar file that is marked as  `.CommunityCommons.RequiredLib` and then reload CommunityCommons?

answered