ChartJS not supported anymore in 7.20?

0
Hi, I had a nicely running application which was using ChartJS widget. App was running with modeler 7.18.1. Now I have upgraded to 7.20 and when running locally,  I get a general (connector) error: "An error has occurred while handling the request. ........." Is ChartJS not supported anymore?? Stack trace: java.lang.ClassCastException: java.lang.String cannot be cast to com.mendix.thirdparty.org.json.JSONString     at com.mendix.webui.jsonserialization.IncomingObject$.$anonfun$parse$2(IncomingObject.scala:19)     at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:233)     at scala.collection.Iterator.foreach(Iterator.scala:937)     at scala.collection.Iterator.foreach$(Iterator.scala:937)     at scala.collection.AbstractIterator.foreach(Iterator.scala:1425)     at scala.collection.IterableLike.foreach(IterableLike.scala:70)     at scala.collection.IterableLike.foreach$(IterableLike.scala:69)     at scala.collection.AbstractIterable.foreach(Iterable.scala:54)     at scala.collection.TraversableLike.map(TraversableLike.scala:233)     at scala.collection.TraversableLike.map$(TraversableLike.scala:226)     at scala.collection.AbstractTraversable.map(Traversable.scala:104)     at com.mendix.webui.jsonserialization.IncomingObject$.$anonfun$parse$1(IncomingObject.scala:19)     at scala.collection.immutable.Stream.$anonfun$map$1(Stream.scala:414)     at scala.collection.immutable.Stream$Cons.tail(Stream.scala:1167)     at scala.collection.immutable.Stream$Cons.tail(Stream.scala:1157)     at scala.collection.immutable.Stream.foreach(Stream.scala:530)     at scala.collection.TraversableOnce.toMap(TraversableOnce.scala:315)     at scala.collection.TraversableOnce.toMap$(TraversableOnce.scala:313)     at scala.collection.AbstractTraversable.toMap(Traversable.scala:104)     at com.mendix.webui.jsonserialization.IncomingObject$.parse(IncomingObject.scala:28)     at com.mendix.webui.requesthandling.helpers.StateHandling.$anonfun$withState$2(StateHandling.scala:24)     at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:233)     at scala.collection.immutable.List.foreach(List.scala:388)     at scala.collection.TraversableLike.map(TraversableLike.scala:233)     at scala.collection.TraversableLike.map$(TraversableLike.scala:226)     at scala.collection.immutable.List.map(List.scala:294)     at com.mendix.webui.requesthandling.helpers.StateHandling.withState(StateHandling.scala:24)     at com.mendix.webui.requesthandling.helpers.StateHandling.withState$(StateHandling.scala:21)     at com.mendix.webui.actions.client.RegularClientAction.withState(RegularClientAction.scala:21)     at com.mendix.webui.actions.client.RegularClientAction.$anonfun$execute$3(RegularClientAction.scala:44)     at scala.util.Try$.apply(Try.scala:209)     at com.mendix.webui.actions.client.RegularClientAction.$anonfun$execute$2(RegularClientAction.scala:44)     at com.mendix.webui.actions.client.RegularClientAction.$anonfun$execute$2$adapted(RegularClientAction.scala:42)     at com.mendix.webui.requesthandling.helpers.ContextHandling.$anonfun$inContext$4(ContextHandling.scala:41)     at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)     at com.mendix.basis.actionmanagement.IMonitoredAction$$anon$1.execute(IMonitoredAction.scala:47)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)     at com.mendix.basis.actionmanagement.IMonitoredAction.monitor(IMonitoredAction.scala:49)     at com.mendix.basis.actionmanagement.IMonitoredAction.monitor$(IMonitoredAction.scala:25)     at com.mendix.webui.requesthandling.helpers.ContextHandling$ClientMonitoredAction.monitor(ContextHandling.scala:49)     at com.mendix.webui.requesthandling.helpers.ContextHandling.inContext(ContextHandling.scala:41)     at com.mendix.webui.requesthandling.helpers.ContextHandling.inContext$(ContextHandling.scala:27)     at com.mendix.webui.actions.client.RegularClientAction.inContext(RegularClientAction.scala:21)     at com.mendix.webui.requesthandling.helpers.ContextHandling.inContext(ContextHandling.scala:24)     at com.mendix.webui.requesthandling.helpers.ContextHandling.inContext$(ContextHandling.scala:19)     at com.mendix.webui.actions.client.RegularClientAction.inContext(RegularClientAction.scala:21)     at com.mendix.webui.actions.client.RegularClientAction.$anonfun$execute$1(RegularClientAction.scala:42)     at scala.runtime.java8.JFunction0$mcV$sp.apply(JFunction0$mcV$sp.java:12)     at com.mendix.webui.requesthandling.helpers.ProfileHandling.profileRequest(ProfileHandling.scala:14)     at com.mendix.webui.requesthandling.helpers.ProfileHandling.profileRequest$(ProfileHandling.scala:10)     at com.mendix.webui.actions.client.RegularClientAction.profileRequest(RegularClientAction.scala:21)     at com.mendix.webui.actions.client.RegularClientAction.execute(RegularClientAction.scala:39)     at com.mendix.webui.requesthandling.ClientRequestHandler.handleAction(ClientRequestHandler.scala:123)     at com.mendix.webui.requesthandling.ClientRequestHandler.processRequest(ClientRequestHandler.scala:100)     at com.mendix.externalinterface.connector.RequestHandler.doProcessRequest(RequestHandler.java:40)     at com.mendix.external.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:72)     at com.mendix.external.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:69)     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)     at com.mendix.external.connector.MxRuntimeConnector.processRequest(MxRuntimeConnector.java:75)     at com.mendix.basis.impl.MxRuntimeImpl.processRequest(MxRuntimeImpl.java:873)     at com.mendix.m2ee.appcontainer.server.handler.RuntimeHandler.service(RuntimeHandler.java:42)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)     at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:865)     at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:535)     at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)     at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1595)     at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)     at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1340)     at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)     at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:473)     at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1564)     at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)     at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1242)     at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)     at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)     at org.eclipse.jetty.server.Server.handle(Server.java:503)     at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364)     at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)     at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)     at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)     at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)     at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)     at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)     at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)     at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683)     at java.lang.Thread.run(Thread.java:748)  
asked
1 answers
1

A short answer to your question: Yes, 7.20 is supported.

To give you a pointer to find the cause of your problem.

On https://github.com/mendix/ChartJS you can find a testproject for this widget.
I opened the testproject in 7.20 and the charts rendered as expected.

From the stacktrace it looks like your datasource microflow contains a mapping. It looks like something is going wrong there. Do you use a mapping to set up the data that is being rendered?

answered