Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-4966

JacksonCSVRecordReader - NPE with some CSV formats

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.0
    • Fix Version/s: 1.6.0
    • Component/s: Extensions
    • Labels:
      None

      Description

      With some CSV formats (not the default one), we can get the following:

      2018-03-12 22:49:49,460 ERROR [Timer-Driven Process Thread-7] o.a.nifi.processors.standard.QueryRecord QueryRecord[id=4428e3a1-cf73-377f-150d-98d404785786] Failed to determine Record Schema from StandardFlowFileRecord[uuid=c5f428f0-0fa8-4660-b0df-6974bbd82f47,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1520889888555-181, container=default, section=181], offset=604078, length=37421],offset=0,name=865467214336135,size=37421]; routing to failure: java.lang.NullPointerException
      java.lang.NullPointerException: null
              at com.fasterxml.jackson.databind.DeserializationConfig.withFeatures(DeserializationConfig.java:520)
              at com.fasterxml.jackson.databind.ObjectReader.withFeatures(ObjectReader.java:501)
              at org.apache.nifi.csv.JacksonCSVRecordReader.<init>(JacksonCSVRecordReader.java:117)
              at org.apache.nifi.csv.CSVReader.createRecordReader(CSVReader.java:136)
              at sun.reflect.GeneratedMethodAccessor520.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:498)
              at org.apache.nifi.controller.service.StandardControllerServiceInvocationHandler.invoke(StandardControllerServiceInvocationHandler.java:89)
              at com.sun.proxy.$Proxy206.createRecordReader(Unknown Source)
              at org.apache.nifi.processors.standard.QueryRecord.onTrigger(QueryRecord.java:265)
              at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27)
              at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1123)
              at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:147)
              at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47)
              at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:128)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:745)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pvillard Pierre Villard
                Reporter:
                pvillard Pierre Villard
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: