oshdb icon indicating copy to clipboard operation
oshdb copied to clipboard

Complete documentation fo usage with Ignite

Open SlowMo24 opened this issue 1 year ago • 1 comments

Problem Description

Since the switch to Java 17 there are some additional settings required when connecting to Ignite:

--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=java.base/sun.reflect.generics.reflectiveObjects=ALL-UNNAMED
--add-opens=jdk.internal.jvmstat/sun.jvmstat.monitor=ALL-UNNAMED
--add-opens=jdk.management/com.sun.management.internal=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
--add-opens=java.base/java.lang.invoke=ALL-UNNAMED
--add-opens=java.base/java.math=ALL-UNNAMED
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED
--add-opens=java.base/java.util.concurrent.locks=ALL-UNNAMED
--add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED
--add-opens=java.sql/java.sql=ALL-UNNAMED
--add-opens=java.base/java.time=ALL-UNNAMED
--add-opens=java.base/java.text=ALL-UNNAMED

In fact, these settings are also necessary when connecting to H2 but using geotools at another point in the project to connect to a Geopackage because geotools circles through all available DB drivers and tries to initialise them (which is probably not best practice?).

Additionally, currently this repository is required:

<repositories>
  <repository>
    <id>HeiGIT main</id>
    <name>Central Repository for OSHDB dependency related artefacts</name>
    <url>https://repo.heigit.org/artifactory/main</url>
  </repository>
</repositories>

Expected Solution

Add that information to the documentation. Also make sure that people who read the documentation on the Helper classes are made aware of this necessity.

SlowMo24 avatar Apr 19 '23 08:04 SlowMo24

This part is only temporary until we can upgrade to the next ignite version. We didn't update this part on purpose, as it will become irrelevant in the future.

<repositories>
  <repository>
    <id>HeiGIT main</id>
    <name>Central Repository for OSHDB dependency related artefacts</name>
    <url>https://repo.heigit.org/artifactory/main</url>
  </repository>
</repositories>

joker234 avatar Apr 19 '23 08:04 joker234