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 1A339200D01 for ; Thu, 7 Sep 2017 14:51:13 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 194161609A7; Thu, 7 Sep 2017 12:51:13 +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 6853C1609B8 for ; Thu, 7 Sep 2017 14:51:12 +0200 (CEST) Received: (qmail 69272 invoked by uid 500); 7 Sep 2017 12:51:11 -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 69198 invoked by uid 99); 7 Sep 2017 12:51:11 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Sep 2017 12:51:11 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id F2128C48F5 for ; Thu, 7 Sep 2017 12:51:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id x_iEy7Ids6-m for ; Thu, 7 Sep 2017 12:51:06 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id DA2A65F6BE for ; Thu, 7 Sep 2017 12:51:04 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 3844FE06C9 for ; Thu, 7 Sep 2017 12:51:04 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 33DFD24157 for ; Thu, 7 Sep 2017 12:51:01 +0000 (UTC) Date: Thu, 7 Sep 2017 12:51:01 +0000 (UTC) From: "ASF subversion and git services (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KARAF-5328) NPE is thrown when execute source command from client/ssh MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 07 Sep 2017 12:51:13 -0000 [ https://issues.apache.org/jira/browse/KARAF-5328?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1615= 6909#comment-16156909 ]=20 ASF subversion and git services commented on KARAF-5328: -------------------------------------------------------- Commit adfdae1f5902352b7ad1c3db54c7e3ce715724fa in karaf's branch refs/head= s/karaf-4.1.x from [~xldai] [ https://git-wip-us.apache.org/repos/asf?p=3Dkaraf.git;h=3Dadfdae1 ] [KARAF-5328] Fix NullPointerException when client/ssh execute source comman= d > NPE is thrown when execute source command from client/ssh > --------------------------------------------------------- > > Key: KARAF-5328 > URL: https://issues.apache.org/jira/browse/KARAF-5328 > Project: Karaf > Issue Type: Bug > Components: karaf-shell > Affects Versions: 4.1.2 > Environment: Java 8, Windows 7 > Reporter: Xilai Dai > Assignee: Jean-Baptiste Onofr=C3=A9 > Fix For: 4.2.0, 4.1.3 > > > The NullPointerException is thrown when execute source command with a rel= ative path as argument from client/ssh, e.g=20 > >client.bat -h localhost source scripts/abc.script > {code} > 2017-08-30T14:48:25,935 | ERROR | Thread-133 | he.karaf.shell.suppo= rt.ShellUtil 149 | 107 - org.apache.karaf.shell.core - 4.1.2 | Exception c= aught while executing command > java.lang.NullPointerException: null > =09at org.apache.karaf.shell.commands.impl.SourceAction.execute(SourceAct= ion.java:71) [105:org.apache.karaf.shell.commands:4.1.2] > =09at org.apache.karaf.shell.impl.action.command.ActionCommand.execute(Ac= tionCommand.java:84) [107:org.apache.karaf.shell.core:4.1.2] > =09at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.exe= cute(SecuredCommand.java:68) [107:org.apache.karaf.shell.core:4.1.2] > =09at org.apache.karaf.shell.impl.console.osgi.secured.SecuredCommand.exe= cute(SecuredCommand.java:86) [107:org.apache.karaf.shell.core:4.1.2] > =09at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:571) = [107:org.apache.karaf.shell.core:4.1.2] > =09at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java= :497) [107:org.apache.karaf.shell.core:4.1.2] > =09at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:386) [10= 7:org.apache.karaf.shell.core:4.1.2] > =09at org.apache.felix.gogo.runtime.Pipe.doCall(Pipe.java:417) [107:org.a= pache.karaf.shell.core:4.1.2] > =09at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:229) [107:org.apa= che.karaf.shell.core:4.1.2] > =09at org.apache.felix.gogo.runtime.Pipe.call(Pipe.java:59) [107:org.apac= he.karaf.shell.core:4.1.2] > =09at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?] > =09at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecuto= r.java:1142) [?:?] > =09at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecut= or.java:617) [?:?] > =09at java.lang.Thread.run(Thread.java:745) [?:?] > {code} > After debugging, the root cause maybe the L82 of org.apache.karaf.shell.i= mpl.console.HeadlessSessionImpl class > {code} > session.currentDir(null); > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)