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 EBDD7200C75 for ; Sun, 21 May 2017 16:14:31 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id EA77B160BC5; Sun, 21 May 2017 14:14:31 +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 3C950160BA4 for ; Sun, 21 May 2017 16:14:31 +0200 (CEST) Received: (qmail 61378 invoked by uid 500); 21 May 2017 14:14:30 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 61365 invoked by uid 99); 21 May 2017 14:14:29 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 May 2017 14:14:29 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id D9B391A0142 for ; Sun, 21 May 2017 14:14:28 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.98 X-Spam-Level: X-Spam-Status: No, score=0.98 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_COUK=1.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=poggs.co.uk Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id REPGNjy_ZIXh for ; Sun, 21 May 2017 14:14:27 +0000 (UTC) Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 898255FB80 for ; Sun, 21 May 2017 14:14:26 +0000 (UTC) Received: by mail-wm0-f41.google.com with SMTP id e127so6542704wmg.1 for ; Sun, 21 May 2017 07:14:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poggs.co.uk; s=google; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=c09SJ8KxXzVh30iqIVFimmI2gT11fyZm+iHfmp0Erzk=; b=ef0ruwHAHwU7T8fagVgZukzFe6arTYcMQT1KiZDBlOsbCnw0hY/50H8o7vo17Q2NHS iG1BSOviSrrDrHJHkYZJpfzDEoaf9kDrCX4O3HfFKVAKG6Yjp/cWVWd/3n6Ep5N8rcAr LhIn9F9erwFmyNnfA9ItQ66mO+jWjXkZtcZm4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:message-id:date:to; bh=c09SJ8KxXzVh30iqIVFimmI2gT11fyZm+iHfmp0Erzk=; b=mbhCkelmoLhX/sia5uwGcmWnU48CKUQPp1ZLpB3tVchSHrYAs8YZ0QATvTAJ/xB+qb ytbrIVupdPsEKMkjtKjd23xyCUUFyGgVuzhMjyefTd0sN/iiIm1pZub2oI74hr/JTXvR XC2YGdp3WF08+FiYcaAHVkGvZhb6MztSDfhPjoXonTqsaACjQ+Fh4x0XFURgdLHPxp1A g3C53iYPCxifVtt41+RPnVsHRFZrPiawM1klfXS0+kIB0+pADS40hxHsVJnpWSS0h10X 2cRwpHLsGO8kdXcF50Jv5kEIeaT5XZzU8U77IFZ4PGoLmDXd43/3pcdLemSOpEOJchnM LALw== X-Gm-Message-State: AODbwcA7WDfeyowZIrphOJmyFrTfuJcXJ5JudLxMqOUxjaivPnJsVoXj VKtRN5bjIiqGSn2LpSWqNpRiF/U+h0bQhaWvHsr1V+gMqYPnDlWDS3YVcM9adf+qsQCYhh1kSJ4 0p/W4Q6Ytp+adP+8Ldv9NgT0JEwxxZj4t7i5Ys5fQRYc5HMXp8RkwoLL2/FvfVPU= X-Received: by 10.28.238.218 with SMTP id j87mr23849610wmi.131.1495376059909; Sun, 21 May 2017 07:14:19 -0700 (PDT) Received: from ?IPv6:2001:8b0:ffeb:4:cde9:4daa:11c0:c56e? ([2001:8b0:ffeb:4:cde9:4daa:11c0:c56e]) by smtp.gmail.com with ESMTPSA id y190sm31297313wmy.15.2017.05.21.07.14.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 May 2017 07:14:19 -0700 (PDT) From: "Peter Hicks (Poggs)" Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: NPE in org.apache.camel.test.junit4.CamelTestSupport.logCoverageSummary Message-Id: <3AF4E22F-150E-4FED-A9F4-BD87A492756E@poggs.co.uk> Date: Sun, 21 May 2017 15:14:17 +0100 To: users@camel.apache.org X-Mailer: Apple Mail (2.3273) archived-at: Sun, 21 May 2017 14:14:32 -0000 Hello I=E2=80=99m unsure whether this is down to my inexperience with Camel or = an actual bug, but I wanted to bring it up here regardless. I have a Camel component which processes an Exchange and sends multiple = messages in response. It=E2=80=99s part of a larger piece of code which = translates =E2=80=98commands=E2=80=99 from one system in to = =E2=80=98operations=E2=80=99 to carry out on another system. One of the unit tests extends CamelTestSupport and has a RouteBuilder = which returns the following: return new RouteBuilder() { public void configure() { from("direct:start").process(testBean); from("direct:start.processed").to("mock:result.processed"); } }; When running this unit test, the correct data is output but I have the = following NPE: java.lang.NullPointerException at = org.apache.camel.test.junit4.CamelTestSupport.logCoverageSummary(CamelTest= Support.java:463) at = org.apache.camel.test.junit4.CamelTestSupport.tearDown(CamelTestSupport.ja= va:402) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at = sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:= 62) at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm= pl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) ... If I simply add ".to("mock:result=E2=80=9D)=E2=80=9D to the end of the = first route, the NPE disappears. Is this a problem in my implementation? Peter