From dev-return-11108-apmail-karaf-dev-archive=karaf.apache.org@karaf.apache.org Tue Sep 6 13:16:39 2016 Return-Path: X-Original-To: apmail-karaf-dev-archive@minotaur.apache.org Delivered-To: apmail-karaf-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F0E881972A for ; Tue, 6 Sep 2016 13:16:38 +0000 (UTC) Received: (qmail 82599 invoked by uid 500); 6 Sep 2016 13:16:38 -0000 Delivered-To: apmail-karaf-dev-archive@karaf.apache.org Received: (qmail 82565 invoked by uid 500); 6 Sep 2016 13:16:38 -0000 Mailing-List: contact dev-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 dev@karaf.apache.org Received: (qmail 82549 invoked by uid 99); 6 Sep 2016 13:16:38 -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; Tue, 06 Sep 2016 13:16:38 +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 02096C08B2 for ; Tue, 6 Sep 2016 13:16:38 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.199 X-Spam-Level: * X-Spam-Status: No, score=1.199 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=codecentric.de Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id O1enZ4E2wbnU for ; Tue, 6 Sep 2016 13:16:32 +0000 (UTC) Received: from mail-ua0-f176.google.com (mail-ua0-f176.google.com [209.85.217.176]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id F000D5F3FC for ; Tue, 6 Sep 2016 13:16:31 +0000 (UTC) Received: by mail-ua0-f176.google.com with SMTP id 49so64844671uat.3 for ; Tue, 06 Sep 2016 06:16:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codecentric.de; s=google; h=mime-version:from:date:message-id:subject:to; bh=y0ihF1y4SssqE9+ZxHNNwio7R/x/6O9YB0P+xRaz/XA=; b=EU21hiWCbCkVsvXCMC1U84jGMmR1RVc6cUSM1eiA+GiBXme2ZSOzDl5Uyb7L7FpmeW 6bdTk45lppwo5YcHkiLEnN9tzg1togVT8wXFClfWq+g5uGPZUTDPzhc+GRqBgw/RUIQS bs3NUrBHGCr7hqPF1WLwXiQy3KldVOvaSoPi4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=y0ihF1y4SssqE9+ZxHNNwio7R/x/6O9YB0P+xRaz/XA=; b=Qoyv/GZuqtf3yfJFMOKAN/lSIVqkO0TggETy9n4b2esflJTetdNJ090ZDGC5yxzjRp hDwei/g0ndDC7tZP80Yk/FvJL8Dw2m2i4BVvBROtOJD47fNpfkNRtA9pSf/zFNrNue5O H9BR3KVMIq3ex6q+hMX20I8q+BWYEoKE44ql8MHjfr4mcr9+UBmN7F/zqCJf6YNUhTzY 8z2yAa+/o0rUXJB9sQW2eFVT0gSJo1GYAE3Xr+I5GHLUuseCD1mTBVyjMaPhqNeNEW1E XBqw18lYgtblfEQLljLCGInHDsGUzM9+sHn/Jy4k3CMJNc5MpQG2AmM70PUGE5aGZnQs 84jA== X-Gm-Message-State: AE9vXwNpmmtfn+zww7ur2m1jTdMH8OEnJXbOGjdoD7sr9nYc7D65c8jfcP1+eVNDVGSDPbN94pUmM3kT8shFyZly X-Received: by 10.159.34.106 with SMTP id 97mr9600291uad.50.1473167790601; Tue, 06 Sep 2016 06:16:30 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.5.70 with HTTP; Tue, 6 Sep 2016 06:16:30 -0700 (PDT) From: Fabian Lange Date: Tue, 6 Sep 2016 15:16:30 +0200 Message-ID: Subject: Exceptions with reference to overrides.properties To: dev@karaf.apache.org Content-Type: multipart/alternative; boundary=001a113d103cda8ab1053bd69a89 --001a113d103cda8ab1053bd69a89 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Guys, it seems to me the overrides.properties mechanism could be slightly improved. I am getting a lot of these: 2016-09-06T15:00:27.258+0200 | DEBUG | pool-22-thread-1 | Overrides | org.apache.karaf.features.core - 4.0.6 | Unable to load overrides bundles list java.io.FileNotFoundException: /Users/fabian/work/karaf/etc/overrides.properties (No such file or directory) at java.io.FileInputStream.open0(Native Method)[:1.8.0_71] at java.io.FileInputStream.open(FileInputStream.java:195)[:1.8.0_71] at java.io.FileInputStream.(FileInputStream.java:138)[:1.8.0_71] at java.io.FileInputStream.(FileInputStream.java:93)[:1.8.0_71] at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:= 90)[:1.8.0_71] at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnectio= n.java:188)[:1.8.0_71] at java.net.URL.openStream(URL.java:1045)[:1.8.0_71] at org.apache.karaf.features.internal.service.Overrides.loadOverrides(Override= s.java:108)[6:org.apache.karaf.features.core:4.0.6] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.getDeploymen= tRequest(FeaturesServiceImpl.java:1148)[6:org.apache.karaf.features.core:4.= 0.6] at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(= FeaturesServiceImpl.java:1175)[6:org.apache.karaf.features.core:4.0.6] at org.apache.karaf.features.internal.service.FeaturesServiceImpl$1.call(Featu= resServiceImpl.java:1074)[6:org.apache.karaf.features.core:4.0.6] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_71] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1= 142)[:1.8.0_71] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:= 617)[:1.8.0_71] at java.lang.Thread.run(Thread.java:745)[:1.8.0_71] The logic in Overrides.java is: if (overridesUrl !=3D null) { try ( InputStream is =3D new URL(overridesUrl).openStream= () ) { so apparently the overridesUrl is not null. This is because https://github.com/apache/karaf/blob/791ebb5f908e27fa389616c8bba456cf85807f= 4d/features/core/src/main/java/org/apache/karaf/features/internal/osgi/Acti= vator.java#L175 String overrides =3D getString("overrides", new File(System.getProperty(" karaf.etc"), "overrides.properties").toURI().toString()); so I do not have overrides, there is a default in place, which refers to a nonexistant file. I might not need this feature and i would like to turn it "off" - therefor I would need to supply overrides =3D=3D null, which does not seem possible right now. Suggestions? Fabian -- Fabian Lange | Performance Expert mobil: +49 (0) 160.3673393 codecentric AG | Merscheider Stra=C3=9Fe 1 | 42699 Solingen | Deutschland Sitz der Gesellschaft: Solingen | HRB 25917| Amtsgericht Wuppertal Vorstand: Michael Hochg=C3=BCrtel . Mirko Novakovic . Rainer Vehns Aufsichtsrat: Patric Fedlmeier (Vorsitzender) . Klaus J=C3=A4ger . J=C3=BCr= gen Sch=C3=BCtz --001a113d103cda8ab1053bd69a89--