Unknown variable type: class sun.nio.fs.WindowsPath in Mendix 6.10.3

0
I'm receiving an error when running through the Modeler that I don't get when running in Java. I am running Mendix Modeler 6.10.3 and Java 1.8.0_121. In a Java file I am calling 'Core.executeAsync' and get the following error in Mendix (but it works fine when running through Eclipse): Unknown variable type: class sun.nio.fs.WindowsPath -------- com.mendix.systemwideinterfaces.MendixRuntimeException: Unknown variable type: class sun.nio.fs.WindowsPath at com.mendix.modules.microflowengine.debugger.internal.DebuggerJSONGenerator$.com$mendix$modules$microflowengine$debugger$internal$DebuggerJSONGenerator$$addPrimitiveTypeAndValue(DebuggerJSONGenerator.scala:99) at com.mendix.modules.microflowengine.debugger.internal.DebuggerJSONGenerator$$anonfun$createVariables$1.apply(DebuggerJSONGenerator.scala:75) at com.mendix.modules.microflowengine.debugger.internal.DebuggerJSONGenerator$$anonfun$createVariables$1.apply(DebuggerJSONGenerator.scala:61) 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 com.mendix.modules.microflowengine.debugger.internal.DebuggerJSONGenerator$.createVariables(DebuggerJSONGenerator.scala:60) at com.mendix.modules.microflowengine.debugger.internal.DebuggerJSONGenerator$.createPausedMicroflowObject(DebuggerJSONGenerator.scala:47) 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:36) 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.content(AbstractHttpConnection.java:953) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1014) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240) 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) Any help is greatly appreciated. TIA!
asked
1 answers
0

I have found the answer. The Java code was placing a java.nio.file.Path object in the parameter map as the filename.

For some reason, this worked when run through Eclipse (and apparently the server) but in Mendix Modeler, it rightfully threw an error as the micro flow was expecting a String.

Thanks to all who looked at this question.

answered