[
https://issues.apache.org/jira/browse/NIFI-1714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15224281#comment-15224281
]
Joseph Percivall commented on NIFI-1714:
----------------------------------------
[~mosermw] I am using the link in the HTTPCLIENT ticket (http://bit.ly/1Oy8Eho)
and I see the warning mentioned in the ticket but I'm also seeing errors
related to circular redirects . I tried to hit it after applying the patch and
the warning goes away but the circular redirect error remains (below). Are you
hitting a different site than the one mentioned in the HTTPCLIENT ticket? I
believe that the amount of cookies and redirects (some of the redirects are
https) are causing errors outside the original issue.
2016-04-04 10:49:10,400 ERROR [Timer-Driven Process Thread-3]
o.a.nifi.processors.standard.GetHTTP
GetHTTP[id=4cfd64e6-2cfb-4db5-94bf-8290ab605013] Failed to retrieve file from
http://bit.ly/1Oy8Eho due to null; rolling back session:
org.apache.http.client.ClientProtocolException
2016-04-04 10:49:10,401 ERROR [Timer-Driven Process Thread-3]
o.a.nifi.processors.standard.GetHTTP
org.apache.http.client.ClientProtocolException: null
at
org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186)
~[httpclient-4.4.1.jar:4.4.1]
at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
~[httpclient-4.4.1.jar:4.4.1]
at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
~[httpclient-4.4.1.jar:4.4.1]
at
org.apache.nifi.processors.standard.GetHTTP.onTrigger(GetHTTP.java:433)
~[nifi-standard-processors-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
at
org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1059)
[nifi-framework-core-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
at
org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:136)
[nifi-framework-core-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
at
org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47)
[nifi-framework-core-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
at
org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:123)
[nifi-framework-core-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[na:1.8.0_74]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
[na:1.8.0_74]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
[na:1.8.0_74]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
[na:1.8.0_74]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[na:1.8.0_74]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[na:1.8.0_74]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_74]
Caused by: org.apache.http.client.CircularRedirectException: Circular redirect
to
'http://www.theaustralian.com.au/business/latest/dropbox-microsoft-deepen-integration/story-e6frg90f-1227301360790'
at
org.apache.http.impl.client.DefaultRedirectStrategy.getLocationURI(DefaultRedirectStrategy.java:176)
~[httpclient-4.4.1.jar:4.4.1]
at
org.apache.http.impl.client.DefaultRedirectStrategy.getRedirect(DefaultRedirectStrategy.java:220)
~[httpclient-4.4.1.jar:4.4.1]
at
org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:121)
~[httpclient-4.4.1.jar:4.4.1]
at
org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
~[httpclient-4.4.1.jar:4.4.1]
... 14 common frames omitted
2016-04-04 10:49:10,402 ERROR [Timer-Driven Process Thread-3]
o.a.nifi.processors.standard.GetHTTP
GetHTTP[id=4cfd64e6-2cfb-4db5-94bf-8290ab605013] Failed to process session due
to org.apache.nifi.processor.exception.ProcessException:
org.apache.http.client.ClientProtocolException:
org.apache.nifi.processor.exception.ProcessException:
org.apache.http.client.ClientProtocolException
2016-04-04 10:49:10,402 ERROR [Timer-Driven Process Thread-3]
o.a.nifi.processors.standard.GetHTTP
org.apache.nifi.processor.exception.ProcessException:
org.apache.http.client.ClientProtocolException
at
org.apache.nifi.processors.standard.GetHTTP.onTrigger(GetHTTP.java:478) ~[na:na]
at
org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1059)
~[nifi-framework-core-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
at
org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:136)
[nifi-framework-core-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
at
org.apache.nifi.controller.tasks.ContinuallyRunProcessorTask.call(ContinuallyRunProcessorTask.java:47)
[nifi-framework-core-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
at
org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:123)
[nifi-framework-core-0.7.0-SNAPSHOT.jar:0.7.0-SNAPSHOT]
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
[na:1.8.0_74]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
[na:1.8.0_74]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
[na:1.8.0_74]
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
[na:1.8.0_74]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
[na:1.8.0_74]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
[na:1.8.0_74]
at java.lang.Thread.run(Thread.java:745) [na:1.8.0_74]
Caused by: org.apache.http.client.ClientProtocolException: null
at
org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:186)
~[httpclient-4.4.1.jar:4.4.1]
at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
~[httpclient-4.4.1.jar:4.4.1]
at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
~[httpclient-4.4.1.jar:4.4.1]
at
org.apache.nifi.processors.standard.GetHTTP.onTrigger(GetHTTP.java:433) ~[na:na]
... 11 common frames omitted
Caused by: org.apache.http.client.CircularRedirectException: Circular redirect
to
'http://www.theaustralian.com.au/business/latest/dropbox-microsoft-deepen-integration/story-e6frg90f-1227301360790'
at
org.apache.http.impl.client.DefaultRedirectStrategy.getLocationURI(DefaultRedirectStrategy.java:176)
~[httpclient-4.4.1.jar:4.4.1]
at
org.apache.http.impl.client.DefaultRedirectStrategy.getRedirect(DefaultRedirectStrategy.java:220)
~[httpclient-4.4.1.jar:4.4.1]
at
org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:121)
~[httpclient-4.4.1.jar:4.4.1]
at
org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
~[httpclient-4.4.1.jar:4.4.1]
... 14 common frames omitted
> GetHTTP fails to parse certain cookie expiration dates
> ------------------------------------------------------
>
> Key: NIFI-1714
> URL: https://issues.apache.org/jira/browse/NIFI-1714
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Affects Versions: 0.6.0
> Reporter: Michael Moser
> Assignee: Michael Moser
> Fix For: 0.6.1
>
> Attachments: NIFI-1714-withtests.patch, NIFI-1714.patch
>
>
> I'm trying to use GetHTTP to access a web server that assigns a _session
> cookie then redirects to another URL that expects that cookie to be set.
> Normally the Apache HTTPComponents HttpClient handles this.
> Unfortunately, due to a bug HTTPCLIENT-1640, the HttpClient fails to parse
> this particular server's _session cookie expiration date. The error is
> WARN o.a.h.c.p.ResponseProcessCookies Invalid Cookie Header: "Set-Cookie:
> _session=abc123; path=/; expires=Wed, 06 Apr 2016 22:10:16 -0000". Invalid
> 'expires' attribute: Wed, 06 Apr 2016 22:10:16 -000
> ERROR o.a.n.p.s.GetHTTP Failed to retrieve file from http://fqdn/url due to
> null; rolling back session: org.apache.http.client.ClientProtocolException
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)