From: 2StepForward <kwe...@we...> - 2008-01-16 09:45:15
|
Hello, I have a problem to execute my builded MosaicImageBuilder java tool. 1.) The cmd-line call: java -jar MosaicIndexBuilder.jar -s C:\testpicture -w *.tif -name test 2.) The exception which was printed out: 15.01.2008 14:56:15 it.geosolutions.utils.imagemosaic.MosaicIndexBuilder getNotification INFO: Progress is at 0.0 attached message is: Now indexing file test.0.tif Exception in thread "MosaicIndexBuilder" java.lang.NullPointerException at it.geosolutions.utils.imagemosaic.MosaicIndexBuilder.run(MosaicIndexBuilder.java:402) at java.lang.Thread.run(Unknown Source) 3.) I have take a look of the exception line in the source code and I think it will get an exception with handling of AbstractGridCoverage2DReader, but I'm not so involved that I can't say this is the reason which was wrong. Edit on 16.01.2008: I have research about some possible problems and found out an error which will describe the error more directly: 16.01.2008 10:09:34 it.geosolutions.utils.imagemosaic.MosaicIndexBuilder getNotification INFO: Progress is at 16.666666666666668 attached message is: Now indexing file test.0.tif 16.01.2008 10:09:34 org.geotools.factory.FactoryRegistry scanForPlugins WARNUNG: Can't load a service for category "CRSAuthorityFactory". Cause is "NoClassDefFoundError: javax/units/ConversionException". 16.01.2008 10:09:34 org.geotools.factory.FactoryRegistry scanForPlugins WARNUNG: Can't load a service for category "CRSAuthorityFactory". Cause is "NoClassDefFoundError: javax/units/ConversionException". 16.01.2008 10:09:34 org.geotools.factory.FactoryRegistry scanForPlugins WARNUNG: Can't load a service for category "CRSAuthorityFactory". Cause is "NoClassDefFoundError: javax/units/ConversionException". 16.01.2008 10:09:34 org.geotools.factory.FactoryRegistry scanForPlugins WARNUNG: Can't load a service for category "CRSAuthorityFactory". Cause is "NoClassDefFoundError: javax/units/ConversionException". 16.01.2008 10:09:34 org.geotools.referencing.factory.epsg.LongitudeFirstFactory isAvailable WARNUNG: Unavailable authority factory: European Petroleum Survey Group org.opengis.referencing.FactoryException: Can't create a factory of type "ThreadedEpsgFactory". at org.geotools.referencing.factory.epsg.LongitudeFirstFactory.createBackingStore(LongitudeFirstFactory.java:193) at org.geotools.referencing.factory.DeferredAuthorityFactory.getBackingStore(DeferredAuthorityFactory.java:132) at org.geotools.referencing.factory.BufferedAuthorityFactory.isAvailable(BufferedAuthorityFactory.java:232) at org.geotools.referencing.factory.DeferredAuthorityFactory.isAvailable(DeferredAuthorityFactory.java:119) at org.geotools.factory.FactoryRegistry.isAvailable(FactoryRegistry.java:639) at org.geotools.factory.FactoryRegistry.isAcceptable(FactoryRegistry.java:472) at org.geotools.factory.FactoryRegistry$1.filter(FactoryRegistry.java:165) at javax.imageio.spi.FilterIterator.advance(Unknown Source) at javax.imageio.spi.FilterIterator.<init>(Unknown Source) at javax.imageio.spi.ServiceRegistry.getServiceProviders(Unknown Source) at org.geotools.factory.FactoryRegistry.getServiceProviders(FactoryRegistry.java:170) at org.geotools.referencing.ReferencingFactoryFinder.getFactories(ReferencingFactoryFinder.java:177) at org.geotools.referencing.ReferencingFactoryFinder.getCRSAuthorityFactories(ReferencingFactoryFinder.java:452) at org.geotools.referencing.DefaultAuthorityFactory.<init>(DefaultAuthorityFactory.java:51) at org.geotools.referencing.CRS.getAuthorityFactory(CRS.java:187) at org.geotools.referencing.CRS.decode(CRS.java:419) at org.geotools.coverage.grid.io.AbstractGridFormat.<clinit>(AbstractGridFormat.java:96) at org.geotools.gce.geotiff.GeoTiffFormatFactorySpi.createFormat(GeoTiffFormatFactorySpi.java:85) at org.geotools.coverage.grid.io.GridFormatFinder.findFormats(GridFormatFinder.java:168) at org.geotools.coverage.grid.io.GridFormatFinder.findFormat(GridFormatFinder.java:199) at it.geosolutions.utils.imagemosaic.MosaicIndexBuilder.run(MosaicIndexBuilder.java:378) at java.lang.Thread.run(Unknown Source) Caused by: org.geotools.factory.FactoryRegistryException: Can't create a factory of type "ThreadedEpsgFactory". at org.geotools.factory.FactoryCreator.createServiceProvider(FactoryCreator.java:289) at org.geotools.factory.FactoryCreator.createSafe(FactoryCreator.java:235) at org.geotools.factory.FactoryCreator.getServiceProvider(FactoryCreator.java:150) at org.geotools.referencing.ReferencingFactoryFinder.getAuthorityFactory(ReferencingFactoryFinder.java:217) at org.geotools.referencing.ReferencingFactoryFinder.getCRSAuthorityFactory(ReferencingFactoryFinder.java:437) at org.geotools.referencing.factory.epsg.LongitudeFirstFactory.createBackingStore(LongitudeFirstFactory.java:188) ... 21 more Caused by: java.lang.NoClassDefFoundError: javax/units/ConversionException at org.geotools.referencing.factory.epsg.ThreadedEpsgFactory.<init>(ThreadedEpsgFactory.java:210) at org.geotools.referencing.factory.epsg.ThreadedEpsgFactory.<init>(ThreadedEpsgFactory.java:165) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.geotools.factory.FactoryCreator.createServiceProvider(FactoryCreator.java:267) ... 26 more Exception in thread "MosaicIndexBuilder" java.lang.NoClassDefFoundError: javax/units/Unit at org.geotools.referencing.datum.DefaultGeodeticDatum.<clinit>(DefaultGeodeticDatum.java:80) at org.geotools.referencing.crs.DefaultGeographicCRS.<clinit>(DefaultGeographicCRS.java:89) at org.geotools.coverage.grid.io.AbstractGridFormat.<clinit>(AbstractGridFormat.java:98) at org.geotools.gce.geotiff.GeoTiffFormatFactorySpi.createFormat(GeoTiffFormatFactorySpi.java:85) at org.geotools.coverage.grid.io.GridFormatFinder.findFormats(GridFormatFinder.java:168) at org.geotools.coverage.grid.io.GridFormatFinder.findFormat(GridFormatFinder.java:199) at it.geosolutions.utils.imagemosaic.MosaicIndexBuilder.run(MosaicIndexBuilder.java:378) at java.lang.Thread.run(Unknown Source) The geotiff of mine has an epsg projection of 23032, which meens Proj: UTM Zone 32 with ED50 date. Maybe is this a problem? If I give a reference to the javax/units/ConversionException, than I only will get the error message which was at first wrote above. Has anyone got the same situation, or knows anyone about the error? Thanks and Greetings, 2StepForward -- View this message in context: http://www.nabble.com/Problem-with-MosaicImageBuilder-tp14875984p14875984.html Sent from the geotools-devel mailing list archive at Nabble.com. |