You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Wesley L Lawrence (JIRA)" <ji...@apache.org> on 2016/12/08 23:33:58 UTC

[jira] [Commented] (NIFI-3175) ValidateCSV processor throws NullPointerException when printing an empty CSV column

    [ https://issues.apache.org/jira/browse/NIFI-3175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15733728#comment-15733728 ] 

Wesley L Lawrence commented on NIFI-3175:
-----------------------------------------

Fix available at; https://github.com/Wesley-Lawrence/nifi/tree/NIFI-3175.

Reading through [Contributor Guide|https://cwiki.apache.org/confluence/display/NIFI/Contributor+Guide] still.

> ValidateCSV processor throws NullPointerException when printing an empty CSV column
> -----------------------------------------------------------------------------------
>
>                 Key: NIFI-3175
>                 URL: https://issues.apache.org/jira/browse/NIFI-3175
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Wesley L Lawrence
>            Priority: Minor
>
> For example, given a CSV file with the line;
> {code}
> Hello,,World
> {code}
> And the ValidateCSV processor is given the Super-CSV schema of;
> {code}
> Null,Null,Null
> {code}
> And exception such as this will be thrown;
> {code}
> 2016-12-08 16:58:27,061 ERROR [Timer-Driven Process Thread-9] o.a.nifi.processors.standard.ValidateCsv ValidateCsv[id=e05389fa-0158-1000-75dc-d6a79554c96a] ValidateCsv[id=e05389fa-0158-1000-75dc-d6a7955
> 4c96a] failed to process due to java.lang.NullPointerException; rolling back session: java.lang.NullPointerException
> 2016-12-08 16:58:27,062 ERROR [Timer-Driven Process Thread-9] o.a.nifi.processors.standard.ValidateCsv 
> java.lang.NullPointerException: null
>         at org.apache.nifi.processors.standard.ValidateCsv.print(ValidateCsv.java:584) ~[nifi-standard-processors-1.1.0.jar:1.1.0]
>         at org.apache.nifi.processors.standard.ValidateCsv.access$000(ValidateCsv.java:89) ~[nifi-standard-processors-1.1.0.jar:1.1.0]
>         at org.apache.nifi.processors.standard.ValidateCsv$1$3.process(ValidateCsv.java:484) ~[nifi-standard-processors-1.1.0.jar:1.1.0]
>         at org.apache.nifi.controller.repository.StandardProcessSession.append(StandardProcessSession.java:2412) ~[nifi-framework-core-1.1.0.jar:1.1.0]
>         at org.apache.nifi.processors.standard.ValidateCsv$1.process(ValidateCsv.java:481) ~[nifi-standard-processors-1.1.0.jar:1.1.0]
>         at org.apache.nifi.controller.repository.StandardProcessSession.read(StandardProcessSession.java:2082) ~[nifi-framework-core-1.1.0.jar:1.1.0]
>         at org.apache.nifi.controller.repository.StandardProcessSession.read(StandardProcessSession.java:2053) ~[nifi-framework-core-1.1.0.jar:1.1.0]
>         at org.apache.nifi.processors.standard.ValidateCsv.onTrigger(ValidateCsv.java:444) ~[nifi-standard-processors-1.1.0.jar:1.1.0]
>         at org.apache.nifi.processor.AbstractProcessor.onTrigger(AbstractProcessor.java:27) ~[nifi-api-1.1.0.jar:1.1.0]
>         at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1099) [nifi-framework-core-1.1.0.jar:1.1.0]
>         at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:136) [nifi-framework-core-1.1.0.jar:1.1.0]
>         at org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47) [nifi-framework-core-1.1.0.jar:1.1.0]
>         at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:132) [nifi-framework-core-1.1.0.jar:1.1.0]
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_60]
>         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [na:1.8.0_60]
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_60]
>         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [na:1.8.0_60]
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_60]
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_60]
>         at java.lang.Thread.run(Thread.java:745) [na:1.8.0_60]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)