[jira] [Updated] (NIFI-4966) JacksonCSVRecordReader - NPE with some CSV formats

2018-03-13 Thread Matt Burgess (JIRA)

 [ 
https://issues.apache.org/jira/browse/NIFI-4966?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matt Burgess updated NIFI-4966:
---
Fix Version/s: 1.6.0

> JacksonCSVRecordReader - NPE with some CSV formats
> --
>
> Key: NIFI-4966
> URL: https://issues.apache.org/jira/browse/NIFI-4966
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions
>Affects Versions: 1.5.0
>Reporter: Pierre Villard
>Assignee: Pierre Villard
>Priority: Major
> Fix For: 1.6.0
>
>
> With some CSV formats (not the default one), we can get the following:
> {noformat}
> 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.(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){noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (NIFI-4966) JacksonCSVRecordReader - NPE with some CSV formats

2018-03-13 Thread Matt Burgess (JIRA)

 [ 
https://issues.apache.org/jira/browse/NIFI-4966?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Matt Burgess updated NIFI-4966:
---
Resolution: Fixed
Status: Resolved  (was: Patch Available)

> JacksonCSVRecordReader - NPE with some CSV formats
> --
>
> Key: NIFI-4966
> URL: https://issues.apache.org/jira/browse/NIFI-4966
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions
>Affects Versions: 1.5.0
>Reporter: Pierre Villard
>Assignee: Pierre Villard
>Priority: Major
> Fix For: 1.6.0
>
>
> With some CSV formats (not the default one), we can get the following:
> {noformat}
> 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.(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){noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (NIFI-4966) JacksonCSVRecordReader - NPE with some CSV formats

2018-03-12 Thread Pierre Villard (JIRA)

 [ 
https://issues.apache.org/jira/browse/NIFI-4966?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pierre Villard updated NIFI-4966:
-
Status: Patch Available  (was: Open)

> JacksonCSVRecordReader - NPE with some CSV formats
> --
>
> Key: NIFI-4966
> URL: https://issues.apache.org/jira/browse/NIFI-4966
> Project: Apache NiFi
>  Issue Type: Bug
>  Components: Extensions
>Affects Versions: 1.5.0
>Reporter: Pierre Villard
>Assignee: Pierre Villard
>Priority: Major
>
> With some CSV formats (not the default one), we can get the following:
> {noformat}
> 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.(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){noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)