From users-return-49386-archive-asf-public=cust-asf.ponee.io@activemq.apache.org Wed Feb 14 20:48:43 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 63EE1180621 for ; Wed, 14 Feb 2018 20:48:43 +0100 (CET) Received: (qmail 83920 invoked by uid 500); 14 Feb 2018 19:48:42 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Delivered-To: moderator for users@activemq.apache.org Received: (qmail 87223 invoked by uid 99); 14 Feb 2018 19:10:37 -0000 X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 5.97 X-Spam-Level: ***** X-Spam-Status: No, score=5.97 tagged_above=-999 required=6.31 tests=[FORGED_HOTMAIL_RCVD2=1.187, KAM_NUMSUBJECT=0.5, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.972, URI_HEX=1.313, URI_TRY_3LD=1.999] autolearn=disabled Date: Wed, 14 Feb 2018 12:10:34 -0700 (MST) From: nbhc To: users@activemq.apache.org Message-ID: <1518635434388-0.post@n4.nabble.com> Subject: ActiveMQ and Java 9 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Does ActiveMQ work with Java 9? I tried v5.15.2 and JDK9.0.4, activemq fails to start with exception like below: java.io.IOException: java.lang.IllegalAccessException: class org.iq80.leveldb.util.ByteBufferSupport cannot access class jdk.internal.ref.Cleaner (in module java.base) because module java.base does not export jdk.internal.ref to unnamed module I checked Java 9 doc, and found that most internal APIs (from Java 8 & earlier) will be encapsulated in Java 9 and inaccessible by default (based on JEP 260), so these internal APIs, which are mostly sun.* APIs, will NOT be supported any more, and should not be used. But activemq.jar uses one of the internal APIs, sun.misc.Cleaner, which is not supported in Java 9. Anyone knows if ActiveMQ supports Java 9 or any workaround for above issue? -- Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html