[
https://issues.apache.org/jira/browse/NIFI-4967?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16397638#comment-16397638
]
ASF subversion and git services commented on NIFI-4967:
-------------------------------------------------------
Commit 95e543d4cce9148c91898827f15c2c61d3565265 in nifi's branch
refs/heads/master from [~pvillard]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=95e543d ]
NIFI-4967 - CSVRecordReader does not read header with specific formats
Signed-off-by: Matthew Burgess <[email protected]>
This closes #2536
> CSVRecordReader does not read header with specific formats
> ----------------------------------------------------------
>
> Key: NIFI-4967
> URL: https://issues.apache.org/jira/browse/NIFI-4967
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Affects Versions: 1.5.0
> Reporter: Pierre Villard
> Assignee: Pierre Villard
> Priority: Major
>
> When using a specific CSV format (example Microsoft Excel) in the CSV reader
> (with schema defined from header, and Apache Commons CSV parser), the CSV
> reader is not correctly initialized and the header is null leading to a NPE
> which is not clearly exposed. Instead the following exception can be seen:
> {noformat}
> 2018-03-12 23:34:30,427 WARN [Timer-Driven Process Thread-5]
> o.a.nifi.processors.standard.QueryRecord
> QueryRecord[id=4428e3a1-cf73-377f-150d-98d404785786] Processor
> Administratively Yielded for 1 sec due to processing failure
> 2018-03-12 23:34:30,427 WARN [Timer-Driven Process Thread-5]
> o.a.n.c.t.ContinuallyRunProcessorTask Administratively Yielding
> QueryRecord[id=4428e3a1-cf73-377f-150d-98d404785786] due to uncaught
> Exception: java.lang.IllegalStateException:
> 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] already in use for an
> active callback or an InputStream created by ProcessSession.read(FlowFile)
> has not been closed
> 2018-03-12 23:34:30,427 WARN [Timer-Driven Process Thread-5]
> o.a.n.c.t.ContinuallyRunProcessorTask
> java.lang.IllegalStateException:
> 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] already in use for an
> active callback or an InputStream created by ProcessSession.read(FlowFile)
> has not been closed
> at
> org.apache.nifi.controller.repository.StandardProcessSession.validateRecordState(StandardProcessSession.java:3060)
> at
> org.apache.nifi.controller.repository.StandardProcessSession.validateRecordState(StandardProcessSession.java:3055)
> at
> org.apache.nifi.controller.repository.StandardProcessSession.transfer(StandardProcessSession.java:1854)
> at
> org.apache.nifi.processors.standard.QueryRecord.onTrigger(QueryRecord.java:378)
> 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)