Possible bug with gantt chart

I’m trying to assemble a gantt diagram using the library included in the studio. The problem occurs when I assign the datasource to the chart. It gives me the following exception

java.lang.NullPointerException
at com.haulmont.chile.core.model.utils.InstanceUtils.parseValuePath(InstanceUtils.java:68)
at com.haulmont.chile.core.model.utils.InstanceUtils.getValueEx(InstanceUtils.java:121)
at com.haulmont.chile.core.model.impl.AbstractInstance.getValueEx(AbstractInstance.java:139)
at com.haulmont.charts.gui.data.EntityDataItem.getValue(EntityDataItem.java:41)
at com.haulmont.charts.gui.amcharts.model.gson.ChartDataItemsSerializer.serialize(ChartDataItemsSerializer.java:73)
at com.haulmont.charts.gui.amcharts.model.gson.ChartSerializer.serialize(ChartSerializer.java:75)
at com.haulmont.charts.web.toolkit.ui.amcharts.CubaAmchartsScene.beforeClientResponse(CubaAmchartsScene.java:400)
        	at com.vaadin.server.communication.UidlWriter.write(UidlWriter.java:100)
        	at com.vaadin.server.communication.UidlRequestHandler.writeUidl(UidlRequestHandler.java:124)
      	at com.vaadin.server.communication.UidlRequestHandler.synchronizedHandleRequest(UidlRequestHandler.java:92)
     	at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:41)
        	at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1435)
        	at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:361)
        	at com.haulmont.cuba.web.sys.CubaApplicationServlet.serviceAppRequest(CubaApplicationServlet.java:300)
        	at com.haulmont.cuba.web.sys.CubaApplicationServlet.service(CubaApplicationServlet.java:191)
        	at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        	at org.springframework.web.filter.CompositeFilter$VirtualFilterChain.doFilter(CompositeFilter.java:107)
        	at org.springframework.web.filter.CompositeFilter.doFilter(CompositeFilter.java:73)
        	at com.haulmont.cuba.web.sys.CubaHttpFilter.doFilter(CubaHttpFilter.java:107)
        	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
        	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
        	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
        	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
        	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
        	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
        	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
        	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)
        	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
        	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
        	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799)
        	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
        	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
        	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459)
        	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
        	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        	at java.lang.Thread.run(Thread.java:748)

The assigned datasource

hierarchicalDatasource id="proyectoPaqueteTareaGanttDs"
    class="com.empowerment.app.entity.proyecto.ProyectoPaqueteTareaGantt"                                         
    datasourceClass="com.empowerment.app.web.proyecto.proyectogantt.ProyectoGanttData"
    hierarchyProperty="antecesora"

Am I doing something wrong?

Hi, @nelsonflorez

I see a problem in the InstanceUtils class. But probably it is not the main problem.

Could you share small test project where your problem can be reproduced?

Regards,
Daniil.

Thx @tsarev. I attach the request with a bit of the logic of what I want to domodules.zip (379.7 KB)
The project is called test-gantt

Hi @tsarev, any news about this?

hi, @nelsonflorez

I’ve created an issue about your problem: YouTrack.

I’ll take a look at your project and will try to find a workaround.

Regards,
Daill.