Scotts-MacBook-Pro:geoscript-groovy sbortman$ geoscript-groovy ~/groovy-scripts/testFormat.groovy Feb 07, 2014 7:39:32 PM it.geosolutions.imageio.gdalframework.GDALUtilities loadGDAL WARNING: 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. java.lang.UnsatisfiedLinkError: no gdaljni in java.library.path SLF4J: Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the class path, preempting StackOverflowError. SLF4J: See also http://www.slf4j.org/codes.html#log4jDelegationLoop for more details. Feb 07, 2014 7:39:32 PM org.geotools.factory.FactoryRegistry scanForPlugins WARNING: Can't load a service for category "GridFormatFactorySpi". Cause is "ServiceConfigurationError: org.geotools.coverage.grid.io.GridFormatFactorySpi: Provider org (...) netcdf.NetCDFImageReaderSpi could not be instantiated: java.lang.ExceptionInInitializerError". java.util.ServiceConfigurationError: org.geotools.coverage.grid.io.GridFormatFactorySpi: Provider org.geotools.gce.imagemosaic.ImageMosaicFormatFactory could not be instantiated: java.util.ServiceConfigurationError: javax.imageio.spi.ImageReaderSpi: Provider org.geotools.imageio.netcdf.NetCDFImageReaderSpi could not be instantiated: java.lang.ExceptionInInitializerError at java.util.ServiceLoader.fail(ServiceLoader.java:224) at java.util.ServiceLoader.access$100(ServiceLoader.java:181) at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:377) at java.util.ServiceLoader$1.next(ServiceLoader.java:445) at org.geotools.factory.FactoryRegistry.register(FactoryRegistry.java:826) at org.geotools.factory.FactoryRegistry.scanForPlugins(FactoryRegistry.java:772) at org.geotools.factory.FactoryRegistry.scanForPlugins(FactoryRegistry.java:750) at org.geotools.coverage.grid.io.GridFormatFinder.scanForPlugins(GridFormatFinder.java:122) at org.geotools.coverage.grid.io.GridFormatFinder.getAvailableFormats(GridFormatFinder.java:85) at org.geotools.coverage.grid.io.GridFormatFinder.findFormats(GridFormatFinder.java:178) at org.geotools.coverage.grid.io.GridFormatFinder.findFormat(GridFormatFinder.java:241) at org.geotools.coverage.grid.io.GridFormatFinder.findFormat(GridFormatFinder.java:216) at org.geotools.coverage.grid.io.GridFormatFinder$findFormat.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at geoscript.layer.Format.getFormat(Format.groovy:299) at geoscript.layer.Format$getFormat.call(Unknown Source) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at testFormat.run(testFormat.groovy:4) at groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(GroovyShell.java:257) at groovy.lang.GroovyShell.run(GroovyShell.java:220) at groovy.lang.GroovyShell.run(GroovyShell.java:150) at groovy.ui.GroovyMain.processOnce(GroovyMain.java:588) at groovy.ui.GroovyMain.run(GroovyMain.java:375) at groovy.ui.GroovyMain.process(GroovyMain.java:361) at groovy.ui.GroovyMain.processArgs(GroovyMain.java:120) at groovy.ui.GroovyMain.main(GroovyMain.java:100) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:106) at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:128) Caused by: java.util.ServiceConfigurationError: javax.imageio.spi.ImageReaderSpi: Provider org.geotools.imageio.netcdf.NetCDFImageReaderSpi could not be instantiated: java.lang.ExceptionInInitializerError at java.util.ServiceLoader.fail(ServiceLoader.java:224) at java.util.ServiceLoader.access$100(ServiceLoader.java:181) at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:377) at java.util.ServiceLoader$1.next(ServiceLoader.java:445) at javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis(IIORegistry.java:210) at javax.imageio.spi.IIORegistry.(IIORegistry.java:138) at javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:159) at it.geosolutions.imageio.utilities.ImageIOUtilities.replaceProvider(ImageIOUtilities.java:452) at org.geotools.gce.imagemosaic.ImageMosaicFormatFactory.replaceTIFF(ImageMosaicFormatFactory.java:343) at org.geotools.gce.imagemosaic.ImageMosaicFormatFactory.(ImageMosaicFormatFactory.java:61) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at java.lang.Class.newInstance(Class.java:374) at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:373) ... 33 more Caused by: java.lang.ExceptionInInitializerError at org.apache.log4j.LogManager.getLogger(LogManager.java:42) at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:64) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:253) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:265) at ucar.nc2.NetcdfFile.(NetcdfFile.java:99) at org.geotools.imageio.netcdf.NetCDFImageReaderSpi.(NetCDFImageReaderSpi.java:40) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:526) at java.lang.Class.newInstance(Class.java:374) at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:373) ... 46 more Caused by: java.lang.IllegalStateException: Detected both log4j-over-slf4j.jar AND slf4j-log4j12.jar on the class path, preempting StackOverflowError. See also http://www.slf4j.org/codes.html#log4jDelegationLoop for more details. at org.apache.log4j.Log4jLoggerFactory.(Log4jLoggerFactory.java:49) ... 58 more Caught: java.lang.NoClassDefFoundError: Could not initialize class javax.imageio.ImageIO java.lang.NoClassDefFoundError: Could not initialize class javax.imageio.ImageIO at it.geosolutions.imageio.plugins.arcgrid.spi.AsciiGridsImageReaderSpi.canDecodeInput(AsciiGridsImageReaderSpi.java:152) at org.geotools.gce.arcgrid.ArcGridFormat.accepts(ArcGridFormat.java:155) at org.geotools.coverage.grid.io.GridFormatFinder.findFormats(GridFormatFinder.java:188) at org.geotools.coverage.grid.io.GridFormatFinder.findFormat(GridFormatFinder.java:241) at org.geotools.coverage.grid.io.GridFormatFinder.findFormat(GridFormatFinder.java:216) at org.geotools.coverage.grid.io.GridFormatFinder$findFormat.call(Unknown Source) at geoscript.layer.Format.getFormat(Format.groovy:299) at geoscript.layer.Format$getFormat.call(Unknown Source) at testFormat.run(testFormat.groovy:4) Scotts-MacBook-Pro:geoscript-groovy sbortman$