sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Desruisseaux (Jira)" <>
Subject [jira] [Commented] (SIS-499) CommonCRS.WGS84.geographic() fails to initialize with JDK 11.0.8
Date Mon, 17 Aug 2020 13:32:00 GMT


Martin Desruisseaux commented on SIS-499:

There is a Geotk 4.0.5 version, which uses Apache SIS 0.8. The Geotk 4.0-M3 version uses a
pretty old SIS version, namely 0.5. I did not verified if the {{IIOServiceRegistry}} problem
was already fixed in Geotk 4.0.5.

However if using only {{geotk-referencing}} and {{geotk-utility}} modules, then maybe Geotk
is not needed anymore. Many Geotk features have migrated to Apache SIS. I suggest to try Apache
SIS 1.0 without Geotk and see if it provides all required functionality. If this is not the
case, I would be interested to know which parts are missings.

The Geotk project has been repositioned as a sandbox for Apache SIS, where some experiments
are done. When a Geotk feature is considered mature enough, it migrates to Apache SIS. Geotk
is still useful for everything that SIS can not do yet (there is many). But regarding "Referencing
by Coordinates" services, there is not much things left in Geotk. Mostly a few map projections
not yet ported.

> CommonCRS.WGS84.geographic() fails to initialize with JDK 11.0.8
> ----------------------------------------------------------------
>                 Key: SIS-499
>                 URL:
>             Project: Spatial Information Systems
>          Issue Type: Bug
>          Components: Build process
>    Affects Versions: 1.0
>            Reporter: Roland
>            Assignee: Martin Desruisseaux
>            Priority: Major
>         Attachments:, pom.Failure.xml, stacktrace_Eclipse.txt, stacktrace_Maven.txt
> We have in the constructor of a class the following code:
> {{CoordinateReferenceSystem targetCRS = CommonCRS.WGS84.geographic();}}
> When we run the Maven build with Java 1.8.0_252 the build succeeds. Running with OpenJDK
11.0.8 it fails with
> java.util.ServiceConfigurationError: org.opengis.referencing.datum.DatumFactory: org.apache.sis.referencing.factory.GeodeticObjectFactory
Unable to get public no-arg constructor
>  at java.base/
>  at java.base/java.util.ServiceLoader.getConstructor(
>  at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(
>  at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(
>  at java.base/java.util.ServiceLoader$2.hasNext(
>  at java.base/java.util.ServiceLoader$3.hasNext(
>  at org.apache.sis.internal.system.DefaultFactories.forClass(
>  at org.apache.sis.internal.system.DefaultFactories.forBuildin(
>  at org.apache.sis.referencing.factory.sql.EPSGFactory.factory(
>  at org.apache.sis.referencing.factory.sql.EPSGFactory.<init>(
>  at org.apache.sis.referencing.AuthorityFactories.EPSG(
>  at org.apache.sis.referencing.CommonCRS.factory(
>  at org.apache.sis.referencing.CommonCRS.geographic(
>  at at.weberhofer.webcommons_geo.converter.PointConverter.<init>(

This message was sent by Atlassian Jira

View raw message