apache / ignite

Apache Ignite
https://ignite.apache.org/
Apache License 2.0
4.81k stars 1.9k forks source link

JDBC Driver add support for OpenJDK 17 #10449

Open wise-coders opened 1 year ago

wise-coders commented 1 year ago

I have tested the JDBC driver under OpenJDK17, and does not work. I tested ignite-core-2.14.0.jar. Same driver works fine with OpenJDK15.

ptupitsyn commented 1 year ago
  1. Which JDBC driver did you try - "thin" or full?
  2. What is the error?
wise-coders commented 1 year ago

I tried the full. They are part of the same library, ignite-core-2.14.0, right? I am getting an empty ( null ) connection. Changing to OpenJDK15 works fine.

ptupitsyn commented 1 year ago

Did you provide all required JVM flags?

--add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED \
--add-opens=java.base/jdk.internal.misc=ALL-UNNAMED \
--add-opens=java.base/sun.nio.ch=ALL-UNNAMED \
--add-opens=java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED \
--add-opens=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED \
--add-opens=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED \
--add-opens=java.base/java.io=ALL-UNNAMED \
--add-opens=java.base/java.nio=ALL-UNNAMED \
--add-opens=java.base/java.util=ALL-UNNAMED \
--add-opens=java.base/java.lang=ALL-UNNAMED

https://ignite.apache.org/docs/latest/quick-start/java#running-ignite-with-java-11-or-later

wise-coders commented 1 year ago

No, I don't set any flags. I use the library as JDBC driver, to connect to the database. The library is loaded in a database client, Dbschema.

ivandasch commented 1 year ago

@wise-coders Hi! It is advisable to use a jdbc-thin one. Could you please share here your connection string?

wise-coders commented 1 year ago

Here is the URL: jdbc:ignite:thin://{HOST}[:{PORT}] port defaults to 10800