Re: [Geotools-devel] StreamRenderer construction causes an ExceptionInInitializerError with Java 9

2018-02-04 Thread Ben Caradoc-Davies
The GeoTools Java 9 master build fails in the same modules that fail for 
me locally: gt-xsd-wps, gt-imagemosaic, and gt-wfs-ng:

https://build.geoserver.org/view/geotools/job/geotools-java9/5/consoleText

On 03/02/18 11:47, Ben Caradoc-Davies wrote:
I note that the last Jenkins Java 9 build is a little old because it is 
manually triggered. I just triggered it again:

https://build.geoserver.org/view/geotools/job/geotools-java9/


--
Ben Caradoc-Davies 
Director
Transient Software Limited 
New Zealand

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel


Re: [Geotools-devel] StreamRenderer construction causes an ExceptionInInitializerError with Java 9

2018-02-02 Thread Ben Caradoc-Davies
I note that the last Jenkins Java 9 build is a little old because it is 
manually triggered. I just triggered it again:

https://build.geoserver.org/view/geotools/job/geotools-java9/

On 03/02/18 11:40, Ben Caradoc-Davies wrote:

The GeoTools master build still fails with Java 9 on GeoServer Jenkins:
https://build.geoserver.org/view/geotools/job/geotools-java9/lastFailedBuild/consoleFull 


--
Ben Caradoc-Davies 
Director
Transient Software Limited 
New Zealand

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel


Re: [Geotools-devel] StreamRenderer construction causes an ExceptionInInitializerError with Java 9

2018-02-02 Thread Ben Caradoc-Davies

Paul,

Java 9 support is only available on master (19.x):
https://github.com/geotools/geotools/wiki/FactoryRegistry-Refactoring-for-Java-9-Compatibility

The GeoTools master build still fails with Java 9 on GeoServer Jenkins:
https://build.geoserver.org/view/geotools/job/geotools-java9/lastFailedBuild/consoleFull

The GeoTools master build fails for me with openjdk-9-jdk 9.0.1+11-1 
amd64 on debian/sid, in gt-xsd-wps, gt-imagemosaic, and gt-wfs-ng.


GeoTools 19.0 is scheduled for release on 18 March:
https://github.com/geoserver/geoserver/wiki/Release-Schedule

Java 9 reaches End-of-Life in March 2018. Java 10 (18.3) reaches 
End-of-Life in September 2018. Java 11 (18.9 LTS) will be in General 
Availability from September 2018:

http://www.oracle.com/technetwork/java/eol-135779.html
https://www.infoq.com/news/2018/01/JavaSupportJan18
https://www.azul.com/java-stable-secure-free-choose-two-three/

Kind regards,
Ben.

On 03/02/18 03:03, Paul Johnson wrote:

I have been using geotools with Java 1.8.  When I now build and run using
java 9, construction of a StreamingRenderer object causes a
java.lang.ExceptionInInitializerError.

I have a simple code sample that has a similar problem shown below

When running under Java 1.8 I can set a breakpoint on the new
StreamingRenderer() and single step into function main - everything works
fine.

If I run with java 9 it never gets past this the StreamRenderer
construction.  I have updated all my geotools libraries to 18.2 without
success.
Is there still Java 9 work to be done on the geotools libraries?

public class MyTest {
private static StreamingRenderer renderer = new StreamingRenderer();  // <
set break point here and signal step
private static int paul;   // never get to a break point here if Java 9

public static void main(String[] args) {
int x = 0;
StreamingRenderer y = renderer;
x += 1;   // put break point here - all works in Java 1.8,
}
}



--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot



___
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel



--
Ben Caradoc-Davies 
Director
Transient Software Limited 
New Zealand

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel


[Geotools-devel] StreamRenderer construction causes an ExceptionInInitializerError with Java 9

2018-02-02 Thread Paul Johnson
I have been using geotools with Java 1.8.  When I now build and run using
java 9, construction of a StreamingRenderer object causes a
java.lang.ExceptionInInitializerError.

I have a simple code sample that has a similar problem shown below

When running under Java 1.8 I can set a breakpoint on the new
StreamingRenderer() and single step into function main - everything works
fine.

If I run with java 9 it never gets past this the StreamRenderer
construction.  I have updated all my geotools libraries to 18.2 without
success.
Is there still Java 9 work to be done on the geotools libraries?

public class MyTest {
private static StreamingRenderer renderer = new StreamingRenderer();  // <
set break point here and signal step
private static int paul;   // never get to a break point here if Java 9

public static void main(String[] args) {
int x = 0;
StreamingRenderer y = renderer;
x += 1;   // put break point here - all works in Java 1.8,
}
}
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel