Happens when I try to run an action call based on RunUnitTest from the UnitTesting module. And this bug only happens when running Mendix. When running in Eclipse, the error does not occur.
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.debugger.internal.DebuggerJSONGenerator$.createPausedMicroflowObject(DebuggerJSONGenerator.scala:40)
at com.mendix.modules.microflowengine.debugger.internal.DebuggerJSONGenerator$.createEventObject(DebuggerJSONGenerator.scala:26)
at com.mendix.modules.microflowengine.debugger.internal.EventPusher$$anonfun$handleRequest$1.apply(EventPusher.scala:27)
at com.mendix.modules.microflowengine.debugger.internal.EventPusher$$anonfun$handleRequest$1.apply(EventPusher.scala:27)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245)
at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:245)
at scala.collection.Iterator$class.foreach(Iterator.scala:742)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1194)
at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
at scala.collection.TraversableLike$class.map(TraversableLike.scala:245)
at scala.collection.AbstractTraversable.map(Traversable.scala:104)
at com.mendix.modules.microflowengine.debugger.internal.EventPusher.handleRequest(EventPusher.scala:27)
at com.mendix.modules.microflowengine.debugger.internal.DebuggerHandler.processJsonRequest(DebuggerHandler.scala:124)
at com.mendix.modules.microflowengine.debugger.internal.DebuggerHandler.processRequest(DebuggerHandler.scala:50)
at com.mendix.externalinterface.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:69)
at com.mendix.externalinterface.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:66)
at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)
at com.mendix.externalinterface.connector.MxRuntimeConnector.processRequest(MxRuntimeConnector.java:72)
at com.mendix.core.impl.MxRuntimeImpl.processRequest(MxRuntimeImpl.java:742)
at com.mendix.m2ee.appcontainer.server.handler.RuntimeHandler.handle(RuntimeHandler.java:41)
at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
at org.eclipse.jetty.server.Server.handle(Server.java:368)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:942)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1004)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:647)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
at java.lang.Thread.run(Thread.java:745)
P.S. there is something wrong with this bbs. .................................................................................................................................................................................................................This_should_not_happen.............................................................