Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website

  • Hello,

    I try to import a CSV file so I wrote an import class.
    The class compile successfully but when I parse the file I get this error :

    WARN  2019-04-06T08:16:58,335 (com.infiniteautomation.datafilesource.rt.DataFileDataSourceRT.doPoll:350) - null
    java.lang.NullPointerException: null
           at com.infiniteautomation.datafilesource.rt.DataFileDataSourceRT.performImport(DataFileDataSourceRT.java:453) ~[?:?]
           at com.infiniteautomation.datafilesource.rt.DataFileDataSourceRT.doPoll(DataFileDataSourceRT.java:348) ~[?:?]
           at com.infiniteautomation.datafilesource.rt.DataFileDataSourceRT.doPollNoSync(DataFileDataSourceRT.java:317) ~[?:?]
           at com.serotonin.m2m2.rt.dataSource.PollingDataSource.scheduleTimeoutImpl(PollingDataSource.java:190) ~[mango-3.5.6.jar:?]
           at com.serotonin.m2m2.rt.dataSource.PollingDataSource$1.scheduleTimeout(PollingDataSource.java:77) ~[mango-3.5.6.jar:?]
           at com.serotonin.m2m2.util.timeout.TimeoutTask.run(TimeoutTask.java:59) ~[mango-3.5.6.jar:?]
           at com.serotonin.timer.Task.runTask(Task.java:179) ~[mango-3.5.6.jar:?]
           at com.serotonin.timer.TaskWrapper.run(TaskWrapper.java:23) ~[mango-3.5.6.jar:?]
           at com.serotonin.timer.OrderedThreadPoolExecutor$OrderedTaskCollection.run(OrderedThreadPoolExecutor.java:336) ~[mango-3.5.6.jar:?]
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[?:1.8.0_202]
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[?:1.8.0_202]
           at java.lang.Thread.run(Thread.java:748) [?:1.8.0_202]
    

    Only the points related to first line of the CSV are created and the file is not rename.

    Here is the link to the source and the CSV file.

    Thanks in advance

    Jerome

    PS: sorry for my bad english.


  • Sorry for the question :)
    A bug in my class caused this error.

    Jérôme


  • Hi Jérôme,

    @jérôme-girard said in Datafile issue:

    Sorry for the question :)
    A bug in my class caused this error.

    No worries! Thanks for sharing the resolution. Sorry I didn't have the time to take a peak when this was posted. I don't generally click people's links. Better to paste the class and sample data on the forum I think.