sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Desruisseaux (Jira)" <j...@apache.org>
Subject [jira] [Resolved] (SIS-499) CommonCRS.WGS84.geographic() fails to initialize with JDK 11.0.8
Date Tue, 18 Aug 2020 08:21:00 GMT

     [ https://issues.apache.org/jira/browse/SIS-499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Martin Desruisseaux resolved SIS-499.
-------------------------------------
    Resolution: Not A Bug

Thanks for the feedback. Closing as "not a bug", but keeping in mind that JAXB usage needs
to be made simpler or clearer.

About incompatibility with latest JAXB versions, it may be because of package name changes.
Oracle donated JAXB to the Eclipse Foundation, which is now in charge of maintaining JAXB.
But for legal reasons the Eclipse Foundation couldn't keep the {{javax.xml.bind}} namespace.
They had to rename all packages as {{jakarta.something}}. I don't know in which version Eclipse
renamed all packages, but if it was done in JAXB 3.x, that would explain the compatibility
break.

About the methods without direct translation, please feel free to post which methods you are
looking for. I may be able to point quickly to their replacement if they exist.


> CommonCRS.WGS84.geographic() fails to initialize with JDK 11.0.8
> ----------------------------------------------------------------
>
>                 Key: SIS-499
>                 URL: https://issues.apache.org/jira/browse/SIS-499
>             Project: Spatial Information Systems
>          Issue Type: Bug
>          Components: Build process
>    Affects Versions: 1.0
>            Reporter: Roland
>            Assignee: Martin Desruisseaux
>            Priority: Major
>         Attachments: Test.zip, 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/java.util.ServiceLoader.fail(ServiceLoader.java:581)
>  at java.base/java.util.ServiceLoader.getConstructor(ServiceLoader.java:672)
>  at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1232)
>  at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1264)
>  at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1299)
>  at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1384)
>  at org.apache.sis.internal.system.DefaultFactories.forClass(DefaultFactories.java:94)
>  at org.apache.sis.internal.system.DefaultFactories.forBuildin(DefaultFactories.java:136)
>  at org.apache.sis.referencing.factory.sql.EPSGFactory.factory(EPSGFactory.java:291)
>  at org.apache.sis.referencing.factory.sql.EPSGFactory.<init>(EPSGFactory.java:278)
>  at org.apache.sis.referencing.AuthorityFactories.EPSG(AuthorityFactories.java:122)
>  at org.apache.sis.referencing.CommonCRS.factory(CommonCRS.java:1815)
>  at org.apache.sis.referencing.CommonCRS.geographic(CommonCRS.java:635)
>  at at.weberhofer.webcommons_geo.converter.PointConverter.<init>(PointConverter.java:39)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message