Return-Path: X-Original-To: apmail-karaf-issues-archive@minotaur.apache.org Delivered-To: apmail-karaf-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8959D10DFF for ; Fri, 11 Oct 2013 12:56:45 +0000 (UTC) Received: (qmail 18999 invoked by uid 500); 11 Oct 2013 12:56:45 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 18957 invoked by uid 500); 11 Oct 2013 12:56:44 -0000 Mailing-List: contact issues-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list issues@karaf.apache.org Received: (qmail 18608 invoked by uid 99); 11 Oct 2013 12:56:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Oct 2013 12:56:42 +0000 Date: Fri, 11 Oct 2013 12:56:42 +0000 (UTC) From: =?utf-8?Q?Jean-Baptiste_Onofr=C3=A9_=28JIRA=29?= To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (KARAF-2515) Prevent NPE in log:tail MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Jean-Baptiste Onofr=C3=A9 created KARAF-2515: ------------------------------------------- Summary: Prevent NPE in log:tail Key: KARAF-2515 URL: https://issues.apache.org/jira/browse/KARAF-2515 Project: Karaf Issue Type: Bug Components: karaf-shell Affects Versions: 2.3.0 Reporter: Jean-Baptiste Onofr=C3=A9 Assignee: Jean-Baptiste Onofr=C3=A9 Fix For: 2.4.0, 3.0.0, 2.3.4 In some cases (after a log:clean for instance), log:tail throws a NPE: 2013-10-11 14:53:51,037 | INFO | l Console Thread | Console = | araf.shell.console.jline.Console 198 | 14 - org.apache.karaf.= shell.console - 2.3.1 | Exception caught while executing command java.lang.NullPointerException at org.apache.karaf.shell.log.DisplayLog.getColor(DisplayLog.java:1= 72)[34:org.apache.karaf.shell.log:2.3.1] at org.apache.karaf.shell.log.DisplayLog.display(DisplayLog.java:14= 3)[34:org.apache.karaf.shell.log:2.3.1] at org.apache.karaf.shell.log.LogTail.doExecute(LogTail.java:40)[34= :org.apache.karaf.shell.log:2.3.1] at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCo= mmandSupport.java:38)[14:org.apache.karaf.shell.console:2.3.1] at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(Abs= tractCommand.java:35)[14:org.apache.karaf.shell.console:2.3.1] at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.= java:78)[14:org.apache.karaf.shell.console:2.3.1] at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:47= 4)[14:org.apache.karaf.shell.console:2.3.1] at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.j= ava:400)[14:org.apache.karaf.shell.console:2.3.1] at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[14:org.apa= che.karaf.shell.console:2.3.1] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[= 14:org.apache.karaf.shell.console:2.3.1] at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[= 14:org.apache.karaf.shell.console:2.3.1] at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(Command= SessionImpl.java:89)[14:org.apache.karaf.shell.console:2.3.1] at org.apache.karaf.shell.console.jline.Console.run(Console.java:17= 4)[14:org.apache.karaf.shell.console:2.3.1] at java.lang.Thread.run(Thread.java:722)[:1.7.0_21] ... We should prevent this and fallback without colour if not found. -- This message was sent by Atlassian JIRA (v6.1#6144)