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 D5C5710A63 for ; Tue, 12 Nov 2013 06:24:19 +0000 (UTC) Received: (qmail 61064 invoked by uid 500); 12 Nov 2013 06:24:19 -0000 Delivered-To: apmail-karaf-issues-archive@karaf.apache.org Received: (qmail 61043 invoked by uid 500); 12 Nov 2013 06:24:18 -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 61032 invoked by uid 99); 12 Nov 2013 06:24:18 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Nov 2013 06:24:18 +0000 Date: Tue, 12 Nov 2013 06:24:17 +0000 (UTC) From: "Achim Nierbeck (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-2562) When running karaf under Java 1.8, once the console comes up to the shell, any command cause a NullPointException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-2562?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13819872#comment-13819872 ] Achim Nierbeck commented on KARAF-2562: --------------------------------------- This is a followup-issue, the main issue is the fact that ASM 4.1 used by Karaf doesn't work with Java 8. > When running karaf under Java 1.8, once the console comes up to the shell, any command cause a NullPointException > ----------------------------------------------------------------------------------------------------------------- > > Key: KARAF-2562 > URL: https://issues.apache.org/jira/browse/KARAF-2562 > Project: Karaf > Issue Type: Bug > Components: karaf-shell > Affects Versions: 3.0.0.RC1 > Environment: ARM / Linux > Reporter: Steven Whyte > Fix For: 3.1.0 > > > When trying to execute a shell command, get a _Error executing command: java.lang.NullPointerException_ . > In the logs the following error is thrown: > {code:title=NullPointerException} > 2000-01-02 06:17:54,869 | ERROR | Local user karaf | ShellUtil | 40 - org.apache.karaf.shell.console - 3.0.0.SNAPSHOT | Exception caught while executing command > java.lang.NullPointerException > at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:61) > at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)[40:org.apache.karaf.shell.console:3.0.0.SNAPSHOT] > at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)[40:org.apache.karaf.shell.console:3.0.0.SNAPSHOT] > at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)[40:org.apache.karaf.shell.console:3.0.0.SNAPSHOT] > at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[40:org.apache.karaf.shell.console:3.0.0.SNAPSHOT] > at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[40:org.apache.karaf.shell.console:3.0.0.SNAPSHOT] > at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[40:org.apache.karaf.shell.console:3.0.0.SNAPSHOT] > at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89) > at org.apache.karaf.shell.console.impl.jline.ConsoleImpl$DelegateSession.execute(ConsoleImpl.java:484) > at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:192) > at java.lang.Thread.run(Thread.java:724)[:1.8.0-ea] > at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:109)[40:org.apache.karaf.shell.console:3.0.0.SNAPSHOT] > at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:100) > at java.security.AccessController.doPrivileged(Native Method)[:1.8.0-ea] > at javax.security.auth.Subject.doAs(Subject.java:360)[:1.8.0-ea] > at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:98)[40:org.apache.karaf.shell.console:3.0.0.SNAPSHOT] > {code} -- This message was sent by Atlassian JIRA (v6.1#6144)