From commits-return-13809-apmail-sis-commits-archive=sis.apache.org@sis.apache.org Fri Aug 14 10:56:02 2020 Return-Path: X-Original-To: apmail-sis-commits-archive@www.apache.org Delivered-To: apmail-sis-commits-archive@www.apache.org Received: from mailroute1-lw-us.apache.org (mailroute1-lw-us.apache.org [207.244.88.153]) by minotaur.apache.org (Postfix) with ESMTP id B65DE1ACA1 for ; Fri, 14 Aug 2020 10:56:02 +0000 (UTC) Received: from mail.apache.org (localhost [127.0.0.1]) by mailroute1-lw-us.apache.org (ASF Mail Server at mailroute1-lw-us.apache.org) with SMTP id 6B042126381 for ; Fri, 14 Aug 2020 10:56:02 +0000 (UTC) Received: (qmail 11044 invoked by uid 500); 14 Aug 2020 10:56:02 -0000 Delivered-To: apmail-sis-commits-archive@sis.apache.org Received: (qmail 11027 invoked by uid 500); 14 Aug 2020 10:56:02 -0000 Mailing-List: contact commits-help@sis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: sis-dev@sis.apache.org Delivered-To: mailing list commits@sis.apache.org Received: (qmail 11018 invoked by uid 99); 14 Aug 2020 10:56:02 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Aug 2020 10:56:02 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 652D743DA2 for ; Fri, 14 Aug 2020 10:56:01 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 358AF78062A for ; Fri, 14 Aug 2020 10:56:00 +0000 (UTC) Date: Fri, 14 Aug 2020 10:56:00 +0000 (UTC) From: "Roland (Jira)" To: commits@sis.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (SIS-499) CommonCRS.WGS84.geographic() fails to initialize with JDK 11.0.8 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SIS-499?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1717769= 2#comment-17177692 ]=20 Roland edited comment on SIS-499 at 8/14/20, 10:55 AM: ------------------------------------------------------- No. Our build runs in a plain terminal. I investigated again the error message and it seems like the export MAVEN_O= PTS=3D"-Xmx4G" was/is missing. With using this option the failure is gone. =C2=A0 I need to investigate the issue further since I'm not really sure if the fa= ilure is now gone completely or just hanging in the previous test cases. was (Author: roland4745): No. Our build runs in a plain terminal. I investigated again the error message and it seems like the export MAVEN_O= PTS=3D"-Xmx4G" was/is missing. With using this option the failure is gone. = You could close this ticket. Thx. > 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 > > We have in the constructor of a class the following code: > {{CoordinateReferenceSystem targetCRS =3D CommonCRS.WGS84.geographic();}} > When we run the Maven build with Java 1.8.0_252 the build succeeds. Runni= ng with OpenJDK 11.0.8 it fails with > java.util.ServiceConfigurationError: org.opengis.referencing.datum.DatumF= actory: 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:6= 72) > at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext= Service(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(DefaultFacto= ries.java:94) > at org.apache.sis.internal.system.DefaultFactories.forBuildin(DefaultFac= tories.java:136) > at org.apache.sis.referencing.factory.sql.EPSGFactory.factory(EPSGFactor= y.java:291) > at org.apache.sis.referencing.factory.sql.EPSGFactory.(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.(PointCon= verter.java:39) -- This message was sent by Atlassian Jira (v8.3.4#803005)