From dev-return-47359-archive-asf-public=cust-asf.ponee.io@ignite.apache.org Thu Sep 5 11:23:17 2019 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 [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 0850F180656 for ; Thu, 5 Sep 2019 13:23:16 +0200 (CEST) Received: (qmail 25660 invoked by uid 500); 5 Sep 2019 19:19:29 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 25648 invoked by uid 99); 5 Sep 2019 19:19:29 -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, 05 Sep 2019 19:19:29 +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 8A5B4C080F for ; Thu, 5 Sep 2019 11:23:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.8 X-Spam-Level: ** X-Spam-Status: No, score=2.8 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=2, KAM_SHORT=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-ec2-va.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id hEjK3b3txmjx for ; Thu, 5 Sep 2019 11:23:13 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.167.68; helo=mail-lf1-f68.google.com; envelope-from=dmekhanikov@gmail.com; receiver= Received: from mail-lf1-f68.google.com (mail-lf1-f68.google.com [209.85.167.68]) by mx1-ec2-va.apache.org (ASF Mail Server at mx1-ec2-va.apache.org) with ESMTPS id 16ECDBDEA4 for ; Thu, 5 Sep 2019 11:23:13 +0000 (UTC) Received: by mail-lf1-f68.google.com with SMTP id u29so1684829lfk.7 for ; Thu, 05 Sep 2019 04:23:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version; bh=ib6yAJSSu1ZbjwRkGJ7BYQK6r4XlIVWfm5cxF2GkX5g=; b=sLQq/O3fiAnLcneM7bxdhUZQbK+yj8MLwn9yg2E6W7bie0oiuPNOjSgeNScuJSPJUU eheEUvA20vVaU675U5l0NK7a6nAdMx1vK39sPPnYA/3dZUqynDNHypBnlyCj/nOhzLmz Ucg81Ryzpjp3RB+kN5cQ1hqOUkG3FPFUFyXbrHOS+Wt1nzafSgev3e5ZYpPz91hnSmNU Mqi/o6HJwFlNjRR3uD7br4itq3aSQfRLze/YxHzA7mPBjUQB1qWfrqYHxQvWihaIH37u yK8iJg9HiYeAb9NkRbOp3F5yq8DMpxEuodHoo4K8hl+io1pubwSAUjKWYNH3eXbYRR9Y u1OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:message-id:in-reply-to:references :subject:mime-version; bh=ib6yAJSSu1ZbjwRkGJ7BYQK6r4XlIVWfm5cxF2GkX5g=; b=bpXm9KXQIvBIelgKu/T9OD9J+8HK/hp8viirn8h9XsQzucF1NqL7q+iP4Nlb/yWZDb YumdDaB6a5P6V1L0ydl6qrszMzmHYcW7+rg5mm5urnhA7almhrdV95/eRACm5HK1bMvW rQJJlju8BHWdxodWw2c+WLyWYbLer7+jYGKuCKg8LA+Gn4XepeYw9Ti3/6yvvUoPj6kt sGwfvwXZjGPBIK089rIkX/QL+5zvvh0Dnn48x0Ory3GdgHqnbzf7v9Ys3a2By4ZtJPnP JC03Y33II3IDLkrLUF0fRdeCGZ6dWQcC6TIaNHQwITAyhdLf64mP2DIuT9+nN3+kxWPU e2IA== X-Gm-Message-State: APjAAAXYbx0m4+2Btlzg61VODb9UrRMhkRHMSddyQQDgTUYJ34hkGcMi AI2Qwo6jT2Z95KRT1fuwfcAmt04cBhPWiQ== X-Google-Smtp-Source: APXvYqxx/SeNwDdi4WKWC/V+c39gwJ97WIdPJ0AZzr6UyRUCi53B2EhfSzoWyRfsR8toxoBibNNE1A== X-Received: by 2002:a19:e204:: with SMTP id z4mr1985299lfg.157.1567682591374; Thu, 05 Sep 2019 04:23:11 -0700 (PDT) Received: from [172.25.4.124] ([195.239.208.174]) by smtp.gmail.com with ESMTPSA id x18sm319276ljc.51.2019.09.05.04.23.10 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Sep 2019 04:23:10 -0700 (PDT) Date: Thu, 5 Sep 2019 14:22:46 +0300 From: Denis Mekhanikov To: dev@ignite.apache.org Message-ID: <028c1238-b473-41fd-becd-578f8e777fbf@Spark> In-Reply-To: References: <8c48fd94-c996-ced6-1d18-6e02fa277dfc@gmail.com> Subject: Re: Do I have to use =?utf-8?Q?--illegal-access=3Dpermit_?=for Java thin client and JDBC with JDK 9/10/11. X-Readdle-Message-ID: 028c1238-b473-41fd-becd-578f8e777fbf@Spark MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="5d70f00b_13916f2d_dcec" --5d70f00b_13916f2d_dcec Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Alex, Thanks for providing the details. Ignite 2.7.0 doesn=E2=80=99t officially support Java 11+, so what you wro= te seems valid. So, currently we don=E2=80=99t have an example, that fail= s with an Ignite thin client version 2.7.5 and Java 11+. Please let us know if you find a counterexample. Denis On 3 Sep 2019, 19:00 +0300, Alex Plehanov , wr= ote: > Denis, there is almost nothing to share: thin client connects to the > server, creates a cache, do some puts, gets and queries. I run this tes= t by > IDE specifying different JVM options, JDK versions and dependency Ignit= e > versions (it's not scripted anyhow) > > pom: > <=3Fxml version=3D=221.0=22 encoding=3D=22UT=46-8=22=3F> > xmlns:xsi=3D=22http://www.w3.org/2001/XMLSchema-instance=22 > xsi:schemaLocation=3D=22http://maven.apache.org/POM/4.0.0 > http://maven.apache.org/xsd/maven-4.0.0.xsd=22> > 4.0.0 > > thin-client-test > org.apache.ignite > 1.0-SNAPSHOT > > > > org.apache.ignite > ignite-core > 2.7.0 > > > > > java: > public static void main(String=5B=5D args) throws Exception =7B > IgniteClient igniteClient =3D Ignition.startClient(new > ClientConfiguration().setAddresses(=22127.0.0.1:10800=22)); > ClientCache cache =3D > igniteClient.getOrCreateCache(=22test.cache=22); > cache.put(1, =22value1=22); > cache.put(2, =22value2=22); > cache.get(1); > cache.query(new Sql=46ieldsQuery(=22SELECT * =46ROM > IGNITE.NODES=22)).getAll(); > =7D > > =D0=B2=D1=82, 3 =D1=81=D0=B5=D0=BD=D1=82. 2019 =D0=B3. =D0=B2 17:26, De= nis Mekhanikov : > > > Alex, > > > > Could you share the project you=E2=80=99re checking=3F A GitHub repos= itory would be > > nice. > > > > Denis > > On 3 Sep 2019, 17:10 +0300, Alex Plehanov = , > > wrote: > > > Dmitrii, > > > > > > What version of Ignite you are using=3F > > > > > > I've rechecked Java thin client recently (forgot to share results h= ere), > > in > > > my tests: > > > Client Version 2.7.0 > > > OracleJDK 11: Client won't start unless > > > =22--add-exports=3Djava.base/jdk.internal.misc=3DALL-UNNAMED=22 opt= ion is > > specified. > > > OpenJDK 12: Client can't start at all > > > > > > Client Version 2.7.5 > > > OracleJDK 11: Client starts without any additional options > > > OpenJDK 12: Client starts without any additional options > > > > > > =22--add-opens=3Djava.base/java.nio=3DALL-UNNAMED=22 suppress warni= ng messages on > > > all versions. > > > > > > > > > =D0=B2=D1=82, 3 =D1=81=D0=B5=D0=BD=D1=82. 2019 =D0=B3. =D0=B2 16:35= , Dmitrii Sherstobitov < > > dnsherstobitov=40gmail.com > > > > : > > > > > > > Hi=21 > > > > > > > > I've made some simple tests using Apache Ignite documentation for= JDBC > > and > > > > Java Thin client with using of following API functions: > > > > > > > > JDBC: executeQuery, execute, preparedStatement > > > > Java Thin: cache get, put, create > > > > > > > > None of these API requires additional options for JVM. However, s= ome > > > > options are optional and used to suppress warning messages. > > > > > > > > Tested with Open JDK 9.0.4, 10.0.2, 11.0.2, 12.0.2 on Ubuntu and = Mac > > OS. > > > > > > > > > > > > Best regards, Dmitry Sherstobitov > > > > On 26 Aug 2019, 16:22 +0300, Alex Plehanov , > > > > wrote: > > > > > > > > > > Dmitry, > > > > > > > > > > As I said before, thin client uses BinaryHeapOutputStream, whic= h uses > > > > > Unsafe, so =22--illegal-access=3Ddeny=22 has an effect. > > > > > With =22--illegal-access=3Ddeny=22 thin client will not start u= nless you > > > > specify > > > > > =22--add-opens=3Djava.base/java.nio=3DALL-UNNAMED=22 > > > > > > --5d70f00b_13916f2d_dcec--