From issues-return-39354-archive-asf-public=cust-asf.ponee.io@karaf.apache.org Wed Apr 11 10:01:05 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 07F3C18067B for ; Wed, 11 Apr 2018 10:01:04 +0200 (CEST) Received: (qmail 89848 invoked by uid 500); 11 Apr 2018 08:01:03 -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 89815 invoked by uid 99); 11 Apr 2018 08:01:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Apr 2018 08:01:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 9B14B18051A for ; Wed, 11 Apr 2018 08:01:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.311 X-Spam-Level: X-Spam-Status: No, score=-110.311 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id A9_ANlcyunNZ for ; Wed, 11 Apr 2018 08:01:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 3AF405F490 for ; Wed, 11 Apr 2018 08:01:01 +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 75B25E041F for ; Wed, 11 Apr 2018 08:01:00 +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 358CB241C4 for ; Wed, 11 Apr 2018 08:01:00 +0000 (UTC) Date: Wed, 11 Apr 2018 08:01:00 +0000 (UTC) From: "Shahin Mameghani (JIRA)" To: issues@karaf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (KARAF-5695) Starting Karaf 4.2.0 in Ubuntu 17.10 with OpenJDK 9 fails MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KARAF-5695?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Shahin Mameghani updated KARAF-5695: ------------------------------------ Summary: Starting Karaf 4.2.0 in Ubuntu 17.10 with OpenJDK 9 fails (wa= s: Starting Karaf 4.2.0 on Ubuntu 17.10 with OpenJDK 9 fails) > Starting Karaf 4.2.0 in Ubuntu 17.10 with OpenJDK 9 fails > --------------------------------------------------------- > > Key: KARAF-5695 > URL: https://issues.apache.org/jira/browse/KARAF-5695 > Project: Karaf > Issue Type: Bug > Affects Versions: 4.2.0 > Environment: Ubuntu 17.10 > OpenJDK 9 (build 9-Ubuntu+0-9b181-4) > Reporter: Shahin Mameghani > Priority: Major > Original Estimate: 1h > Remaining Estimate: 1h > > In earlier versions of Java, executing {{java -version}} in a terminal wi= ll return for instance=C2=A0{{1.8.0_162}} but in Ubuntu with Java 9 it retu= rns {{9-Ubuntu}}. Because of this, when executing {{./bin/karaf}}, the foll= owing error output is given. > {code:java} > /home/shahin/tools/apache-karaf-4.2.0/bin/karaf: 212: [: Illegal number: = 9-Ubuntu > /home/shahin/tools/apache-karaf-4.2.0/bin/karaf: 274: [: Illegal number: = 9-Ubuntu > -Djava.endorsed.dirs=3D/usr/lib/jvm/java-9-openjdk-amd64/jre/lib/endorsed= :/usr/lib/jvm/java-9-openjdk-amd64/lib/endorsed:/home/shahin/tools/apache-k= araf-4.2.0/lib/endorsed is not supported. Endorsed standards and standalone= APIs > in modular form will be supported via the concept of upgradeable modules. > Error: Could not create the Java Virtual Machine. > Error: A fatal exception has occurred. Program will exit. > {code} > Starting Karaf with Java 8 works fine. > A workaround for this was to modify the {{sed}} expression at line 211 in= the function {{checkJvmVersion()}} in {{./bin/inc}} from > {code:java} > sed -e 's/_.*//g; s/^1\.//g ; s/\..*//g;'{code} > to > {code:java} > sed -e 's/_.*//g; s/^1\.//g ; s/\..*//g; s/-.*//g;' > {code} > After this Karaf boots properly with Java 9. -- This message was sent by Atlassian JIRA (v7.6.3#76005)