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

ASF GitHub Bot commented on NIFI-1332:
--------------------------------------

GitHub user pvillard31 opened a pull request:

    https://github.com/apache/nifi/pull/259

    NIFI-1332 Fixed HTTP-204 handling + unit test

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/pvillard31/nifi NIFI-1332

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/nifi/pull/259.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #259
    
----
commit 11d47d08e71ca9c5adb3c23d4df093078bfbe2ab
Author: Pierre Villard <[email protected]>
Date:   2016-03-07T14:40:49Z

    NIFI-1332 Fixed HTTP-204 handling + unit test

----


> 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)

Reply via email to