Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 99DAE200B8C for ; Mon, 12 Sep 2016 20:30:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 9906B160AB2; Mon, 12 Sep 2016 18:30:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DFF62160AB8 for ; Mon, 12 Sep 2016 20:30:21 +0200 (CEST) Received: (qmail 7748 invoked by uid 500); 12 Sep 2016 18:30:20 -0000 Mailing-List: contact issues-help@nifi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@nifi.apache.org Delivered-To: mailing list issues@nifi.apache.org Received: (qmail 7736 invoked by uid 99); 12 Sep 2016 18:30:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Sep 2016 18:30:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id AF2DE2C1B86 for ; Mon, 12 Sep 2016 18:30:20 +0000 (UTC) Date: Mon, 12 Sep 2016 18:30:20 +0000 (UTC) From: "Jeff Storck (JIRA)" To: issues@nifi.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (NIFI-2761) BootstrapCodec can throw cryptic exceptions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 12 Sep 2016 18:30:22 -0000 Jeff Storck created NIFI-2761: --------------------------------- Summary: BootstrapCodec can throw cryptic exceptions Key: NIFI-2761 URL: https://issues.apache.org/jira/browse/NIFI-2761 Project: Apache NiFi Issue Type: Bug Components: Core Framework Affects Versions: 1.0.0 Reporter: Jeff Storck Priority: Minor In BootstrapCodec.java, when the following tertiary expression gets evaluated, it never will be null, due to the string concatination. This causes the IOException message to always be "Details: " with the InvalidCommandException's toString result. {code} try { processRequest(cmd, args); } catch (final InvalidCommandException ice) { throw new IOException("Received invalid command from NiFi: " + line + " : " + ice.getMessage() == null ? "" : "Details: " + ice.toString()); } {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)