[
https://issues.apache.org/jira/browse/NIFI-1332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15200918#comment-15200918
]
ASF subversion and git services commented on NIFI-1332:
-------------------------------------------------------
Commit e7a254f78ee5846e38487b02ffa6857ff9f41ea6 in nifi's branch
refs/heads/master from [~pvillard]
[ https://git-wip-us.apache.org/repos/asf?p=nifi.git;h=e7a254f ]
NIFI-1332 Fixed HTTP-204 handling + unit test
This closes #259.
Signed-off-by: Aldrin Piri <[email protected]>
> GetHttp throws exception when no content returned
> -------------------------------------------------
>
> Key: NIFI-1332
> URL: https://issues.apache.org/jira/browse/NIFI-1332
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Matt Burgess
> Assignee: Pierre Villard
> Fix For: 0.6.0
>
>
> If a URL is specified in GetHttp and it returns an HTTP status code of 204
> (No content), a Null Pointer exception is thrown when trying to get the
> entity/content:
> java.lang.NullPointerException: null
> at
> org.apache.nifi.processors.standard.GetHTTP.onTrigger(GetHTTP.java:478)
> ~[na:na]
> at
> org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1146)
> ~[nifi-framework-core-0.4.1-SNAPSHOT.jar:0.4.1-SNAPSHOT]
> at
> org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:139)
> [nifi-framework-core-0.4.1-SNAPSHOT.jar:0.4.1-SNAPSHOT]
> at
> org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:49)
> [nifi-framework-core-0.4.1-SNAPSHOT.jar:0.4.1-SNAPSHOT]
> at
> org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:119)
> [nifi-framework-core-0.4.1-SNAPSHOT.jar:0.4.1-SNAPSHOT]
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> [na:1.8.0_65]
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
> [na:1.8.0_65]
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
> [na:1.8.0_65]
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
> [na:1.8.0_65]
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> [na:1.8.0_65]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> [na:1.8.0_65]
> at java.lang.Thread.run(Thread.java:745) [na:1.8.0_65]
> I used http://httpstat.us/204 to reproduce this error.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)