You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "Matt Burgess (JIRA)" <ji...@apache.org> on 2015/12/23 20:10:46 UTC

[jira] [Created] (NIFI-1332) GetHttp throws exception when no content returned

Matt Burgess created NIFI-1332:
----------------------------------

             Summary: 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


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)