|
From: Ludwig Moser-S. <Luk...@gm...> - 2019-03-06 11:01:39
|
<html><body>Hello, <br> I used geotools to Implement a GIS component for one of my applications. But now i noticed a wird behaviour of ImageIO - which has a (VM) GLOBAL registry. <br> <br> Note: Image loading is working fine in the application that uses geotools. But ever since i use geotools IT OS no more possible to use ImageIO to write Images to file. <br> <br> How can i restore the default state, where none of those Readers is registered? <br> <br> When i try to call deregisterAll on the registry an exception appears. <br> <br> <br> How can i fix this?<br> <br> Here my exception log:<br> <br> <br> Mär 06, 2019 11:50:18 AM <a href="http://it.geosolutions.imageio.gdalframework.GDALUtilities">it.geosolutions.imageio.gdalframework.GDALUtilities</a> loadGDAL<br> <br> WARNUNG: Failed to load the GDAL native libs. This is not a problem unless you need to use the GDAL plugins: they won't be enabled.<br> <br> <a href="http://java.lang.UnsatisfiedLinkError">java.lang.UnsatisfiedLinkError</a>: no gdaljni in <a href="http://java.library.path">java.library.path</a><br> <br> Mär 06, 2019 11:50:18 AM <a href="http://it.geosolutions.util.KakaduUtilities">it.geosolutions.util.KakaduUtilities</a> loadKakadu<br> <br> WARNUNG: Failed to load the Kakadu native libs. This is not a problem unless you need to use the Kakadu plugin: it won't be enabled. <a href="http://java.lang.UnsatisfiedLinkError">java.lang.UnsatisfiedLinkError</a>: no kdu_jni in <a href="http://java.library.path">java.library.path</a><br> <br> Error while parsing JAI registry file "file:/D:/WS18/git/<a href="http://lumo.core.runtime/libs/geotools-17.1-cleaned/imageio-ext-imagereadmt-1.1M012010.jar!/META-INF/registryFile.jai"">lumo.core.runtime/libs/geotools-17.1-cleaned/imageio-ext-imagereadmt-1.1M012010.jar!/META-INF/registryFile.jai"</a>; :<br> <br> Error in registry file at line number #29<br> <br> A descriptor is already registered against the name "ImageReadMT" under registry mode "rendered"<br> <br> Error while parsing JAI registry file "file:/D:/WS18/TestLab/libs/geotools20-2/<a href="http://jt-zonalstats-1.5.0.jar">jt-zonalstats-1.5.0.jar</a>!/META-INF/<a href="http://registryFile.jai">registryFile.jai</a>" :<br> <br> Error in registry file at line number #4<br> <br> A descriptor is already registered against the name "ZonalStats" under registry mode "rendered"<br> <br> Error while parsing JAI registry file "file:/D:/WS18/TestLab/libs/geotools20-2/<a href="http://gt-coverage-20.2.jar">gt-coverage-20.2.jar</a>!/META-INF/<a href="http://registryFile.jai">registryFile.jai</a>" :<br> <br> Error in registry file at line number #31<br> <br> A descriptor is already registered against the name "<a href="http://org.geotools.ColorReduction">org.geotools.ColorReduction</a>" under registry mode "rendered"<br> <br> Error in registry file at line number #32<br> <br> A descriptor is already registered against the name "<a href="http://org.geotools.ColorInversion">org.geotools.ColorInversion</a>" under registry mode "rendered"<br> <br> Error while parsing JAI registry file "file:/D:/WS18/TestLab/libs/geotools20-2/<a href="http://jt-vectorbinarize-1.5.0.jar">jt-vectorbinarize-1.5.0.jar</a>!/META-INF/<a href="http://registryFile.jai">registryFile.jai</a>" :<br> <br> Error in registry file at line number #4<br> <br> A descriptor is already registered against the name "VectorBinarize" under registry mode "rendered"<br> <br> Error while parsing JAI registry file "file:/D:/WS18/TestLab/libs/geotools20-2/<a href="http://imageio-ext-imagereadmt-1.1.28.jar">imageio-ext-imagereadmt-1.1.28.jar</a>!/META-INF/<a href="http://registryFile.jai">registryFile.jai</a>" :<br> <br> Error in registry file at line number #29<br> <br> A descriptor is already registered against the name "ImageReadMT" under registry mode "rendered"<br> <br> Error while parsing JAI registry file "file:/D:/WS18/TestLab/libs/geotools20-2/<a href="http://jt-rangelookup-1.5.0.jar">jt-rangelookup-1.5.0.jar</a>!/META-INF/<a href="http://registryFile.jai">registryFile.jai</a>" :<br> <br> Error in registry file at line number #4<br> <br> A descriptor is already registered against the name "RangeLookup" under registry mode "rendered"<br> <br> Error while parsing JAI registry file "file:/D:/WS18/TestLab/libs/geotools20-2/<a href="http://jt-contour-1.5.0.jar">jt-contour-1.5.0.jar</a>!/META-INF/<a href="http://registryFile.jai">registryFile.jai</a>" :<br> <br> Error in registry file at line number #4<br> <br> A descriptor is already registered against the name "Contour" under registry mode "rendered"<br> <br> Error while parsing JAI registry file "file:/D:/WS18/TestLab/libs/geotools20-2/<a href="http://jt-vectorize-1.5.0.jar">jt-vectorize-1.5.0.jar</a>!/META-INF/<a href="http://registryFile.jai">registryFile.jai</a>" :<br> <br> Error in registry file at line number #4<br> <br> A descriptor is already registered against the name "Vectorize" under registry mode "rendered"<br> <br> SLF4J: Detected both <a href="http://log4j-over-slf4j.jar">log4j-over-slf4j.jar</a> AND <a href="http://slf4j-log4j12.jar">slf4j-log4j12.jar</a> on the class path, preempting StackOverflowError.<br> <br> SLF4J: See also <a href="http://www.slf4j.org/codes.html#log4jDelegationLoop">http://www.slf4j.org/codes.html#log4jDelegationLoop</a> for more details.<br> <br> <a href="http://java.lang.reflect.InvocationTargetException">java.lang.reflect.InvocationTargetException</a><br> <br> at <a href="http://sun.reflect.NativeMethodAccessorImpl">sun.reflect.NativeMethodAccessorImpl</a>.invoke0(Native Method)<br> <br> at <a href="http://sun.reflect.NativeMethodAccessorImpl.invoke">sun.reflect.NativeMethodAccessorImpl.invoke</a>(Unknown Source)<br> <br> at <a href="http://sun.reflect.DelegatingMethodAccessorImpl.invoke">sun.reflect.DelegatingMethodAccessorImpl.invoke</a>(Unknown Source)<br> <br> at <a href="http://java.lang.reflect.Method.invoke">java.lang.reflect.Method.invoke</a>(Unknown Source)<br> <br> at <a href="http://com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs">com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs</a>(Unknown Source)<br> <br> at <a href="http://com.sun.javafx.application.LauncherImpl.launchApplication">com.sun.javafx.application.LauncherImpl.launchApplication</a>(Unknown Source)<br> <br> at <a href="http://sun.reflect.NativeMethodAccessorImpl">sun.reflect.NativeMethodAccessorImpl</a>.invoke0(Native Method)<br> <br> at <a href="http://sun.reflect.NativeMethodAccessorImpl.invoke">sun.reflect.NativeMethodAccessorImpl.invoke</a>(Unknown Source)<br> <br> at <a href="http://sun.reflect.DelegatingMethodAccessorImpl.invoke">sun.reflect.DelegatingMethodAccessorImpl.invoke</a>(Unknown Source)<br> <br> at <a href="http://java.lang.reflect.Method.invoke">java.lang.reflect.Method.invoke</a>(Unknown Source)<br> <br> at <a href="http://sun.launcher.LauncherHelper">sun.launcher.LauncherHelper</a>$<a href="http://FXHelper.main">FXHelper.main</a>(Unknown Source)<br> <br> Caused by: <a href="http://java.util.ServiceConfigurationError">java.util.ServiceConfigurationError</a>: <a href="http://javax.imageio.spi.ImageReaderSpi">javax.imageio.spi.ImageReaderSpi</a>: Provider <a href="http://org.geotools.imageio.netcdf.NetCDFImageReaderSpi">org.geotools.imageio.netcdf.NetCDFImageReaderSpi</a> could not be instantiated<br> <br> at <a href="http://java.util.ServiceLoader.fail">java.util.ServiceLoader.fail</a>(Unknown Source)<br> <br> at <a href="http://java.util.ServiceLoader.access">java.util.ServiceLoader.access</a>$100(Unknown Source)<br> <br> at <a href="http://java.util.ServiceLoader">java.util.ServiceLoader</a>$<a href="http://LazyIterator.nextService">LazyIterator.nextService</a>(Unknown Source)<br> <br> at <a href="http://java.util.ServiceLoader">java.util.ServiceLoader</a>$<a href="http://LazyIterator.next">LazyIterator.next</a>(Unknown Source)<br> <br> at <a href="http://java.util.ServiceLoader">java.util.ServiceLoader</a>$<a href="http://1.next">1.next</a>(Unknown Source)<br> <br> at <a href="http://javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis">javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis</a>(Unknown Source)<br> <br> at <a href="http://javax.imageio.spi.IIORegistry">javax.imageio.spi.IIORegistry</a>.<init>(Unknown Source)<br> <br> at <a href="http://javax.imageio.spi.IIORegistry.getDefaultInstance">javax.imageio.spi.IIORegistry.getDefaultInstance</a>(Unknown Source)<br> <br> at <a href="http://javax.imageio.ImageIO">javax.imageio.ImageIO</a>.<clinit>(Unknown Source)<br> <br> at <a href="http://HelloThumbnail.clearIORegistry">HelloThumbnail.clearIORegistry</a>(<a href="HelloThumbnail.java:42">HelloThumbnail.java:42</a>)<br> <br> at <a href="http://HelloThumbnail.main">HelloThumbnail.main</a>(<a href="HelloThumbnail.java:36">HelloThumbnail.java:36</a>)<br> <br> ... 11 more<br> <br> Caused by: <a href="http://java.lang.ExceptionInInitializerError">java.lang.ExceptionInInitializerError</a><br> <br> at <a href="http://org.apache.log4j.LogManager.getLogger">org.apache.log4j.LogManager.getLogger</a>(<a href="LogManager.java:42">LogManager.java:42</a>)<br> <br> at <a href="http://org.slf4j.impl.Log4jLoggerFactory.getLogger">org.slf4j.impl.Log4jLoggerFactory.getLogger</a>(<a href="Log4jLoggerFactory.java:64">Log4jLoggerFactory.java:64</a>)<br> <br> at <a href="http://org.slf4j.LoggerFactory.getLogger">org.slf4j.LoggerFactory.getLogger</a>(<a href="LoggerFactory.java:358">LoggerFactory.java:358</a>)<br> <br> at <a href="http://org.slf4j.LoggerFactory.getLogger">org.slf4j.LoggerFactory.getLogger</a>(<a href="LoggerFactory.java:383">LoggerFactory.java:383</a>)<br> <br> at <a href="http://ucar.nc2.NetcdfFile">ucar.nc2.NetcdfFile</a>.<clinit>(<a href="NetcdfFile.java:95">NetcdfFile.java:95</a>)<br> <br> at <a href="http://org.geotools.imageio.netcdf.utilities.NetCDFUtilities">org.geotools.imageio.netcdf.utilities.NetCDFUtilities</a>.<clinit>(<a href="NetCDFUtilities.java:280">NetCDFUtilities.java:280</a>)<br> <br> at <a href="http://org.geotools.imageio.netcdf.NetCDFImageReaderSpi">org.geotools.imageio.netcdf.NetCDFImageReaderSpi</a>.<clinit>(<a href="NetCDFImageReaderSpi.java:122">NetCDFImageReaderSpi.java:122</a>)<br> <br> at <a href="http://sun.reflect.NativeConstructorAccessorImpl">sun.reflect.NativeConstructorAccessorImpl</a>.newInstance0(Native Method)<br> <br> at <a href="http://sun.reflect.NativeConstructorAccessorImpl.newInstance">sun.reflect.NativeConstructorAccessorImpl.newInstance</a>(Unknown Source)<br> <br> at <a href="http://sun.reflect.DelegatingConstructorAccessorImpl.newInstance">sun.reflect.DelegatingConstructorAccessorImpl.newInstance</a>(Unknown Source)<br> <br> at <a href="http://java.lang.reflect.Constructor.newInstance">java.lang.reflect.Constructor.newInstance</a>(Unknown Source)<br> <br> at <a href="http://java.lang.Class.newInstance">java.lang.Class.newInstance</a>(Unknown Source)<br> <br> ... 20 more<br> <br> Caused by: <a href="http://java.lang.IllegalStateException">java.lang.IllegalStateException</a>: Detected both <a href="http://log4j-over-slf4j.jar">log4j-over-slf4j.jar</a> AND <a href="http://slf4j-log4j12.jar">slf4j-log4j12.jar</a> on the class path, preempting StackOverflowError. See also <a href="http://www.slf4j.org/codes.html#log4jDelegationLoop">http://www.slf4j.org/codes.html#log4jDelegationLoop</a> for more details.<br> <br> at <a href="http://org.apache">org.apache</a>.log4j.Log4jLoggerFactory.<clinit>(<a href="Log4jLoggerFactory.java:49">Log4jLoggerFactory.java:49</a>)<br> <br> ... 32 more<br> <br> <br> </body></html> |