[ 
https://issues.apache.org/jira/browse/NIFI-2863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Koji Kawamura reassigned NIFI-2863:
-----------------------------------

    Assignee: Koji Kawamura

> A remote process group pointed to a host without the trailing "/nifi" will 
> fail with mis-leading bulletins
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-2863
>                 URL: https://issues.apache.org/jira/browse/NIFI-2863
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Joseph Percivall
>            Assignee: Koji Kawamura
>
> To replicate:
> 1: Set up NiFi instance on port 8080 and remote port 8081 (unsecure S2S)
> 2: create input port
> 3: create RPG pointing to "http://localhost:8080";
> This RPG will correctly get the instance name, listing of ports and port 
> status but when transmission is enabled and a flowfile is queued to be sent 
> the  following error is generated:
> "RemoteGroupPort[name=test1,target=http://localhost:8080] failed to 
> communicate with http://localhost:8080 due to 
> org.codehaus.jackson.JsonParseException: Unexpected character ('<' (code 
> 60)): expected a valid value (number, String, array, object, 'true', 'false' 
> or 'null')
>  at [Source: java.io.StringReader@44d519ce; line: 3, column: 2]"
> Looking at the logs there is this message:
> 2016-10-04 14:11:34,298 WARN [Timer-Driven Process Thread-2] 
> o.a.n.r.util.SiteToSiteRestApiClient Failed to parse Json, response=
> <!DOCTYPE html>
> <html>
>     <head>
>         <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
>         <link rel="shortcut icon" href="/nifi/images/nifi16.ico"/>
>         <title>NiFi</title>
>         <link rel="stylesheet" href="/nifi/css/reset.css" type="text/css" />
>         <link rel="stylesheet" href="/nifi/css/common-ui.css" type="text/css" 
> />
>         <link rel="stylesheet" href="/nifi/fonts/flowfont/flowfont.css" 
> type="text/css" />
>         <link rel="stylesheet" 
> href="/nifi/assets/font-awesome/css/font-awesome.min.css" type="text/css" />
>         <link rel="stylesheet" href="/nifi/css/message-pane.css" 
> type="text/css" />
>         <link rel="stylesheet" href="/nifi/css/message-page.css" 
> type="text/css" />
>     </head>
>     <body class="message-pane">
>         <div class="message-pane-message-box">
>             <p class="message-pane-title">
>                 Did you mean: <a href="/nifi/">/nifi</a>
>             </p>
>             <p class="message-pane-content">You may have mistyped...</p>
>         </div>
>     </body>
> </html>
> 2016-10-04 14:11:34,298 ERROR [Timer-Driven Process Thread-2] 
> o.a.nifi.remote.StandardRemoteGroupPort 
> RemoteGroupPort[name=test1,target=http://localhost:8080] failed to 
> communicate with http://localhost:8080 due to 
> org.codehaus.jackson.JsonParseException: Unexpected character ('<' (code 
> 60)): expected a valid value (number, String, array, object, 'true', 'false' 
> or 'null')
>  at [Source: java.io.StringReader@44d519ce; line: 3, column: 2]
> This should either be fixed (to allow without "/nifi") or explicitly 
> validated.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to