|
From: ze.sjrp <ze...@gm...> - 2009-08-04 12:52:09
|
Hi list!
Using gt-2.5.4/2.5.5 to load a GeoTiff generates the following error
message:
Exception in thread "main" java.lang.NoSuchMethodError:
com.sun.media.imageioimpl.common.ImageUtil.getJDKImageReaderWriterSPI(Ljavax/imageio/spi/ServiceRegistry;Ljava/lang/String;Z)Ljava/util/List;
at
it.geosolutions.imageioimpl.plugins.tiff.TIFFImageWriterSpi.onRegistration(TIFFImageWriterSpi.java:142)
at
javax.imageio.spi.SubRegistry.registerServiceProvider(ServiceRegistry.java:698)
at
javax.imageio.spi.ServiceRegistry.registerServiceProvider(ServiceRegistry.java:285)
at
javax.imageio.spi.IIORegistry.registerApplicationClasspathSpis(IIORegistry.java:191)
at javax.imageio.spi.IIORegistry.<init>(IIORegistry.java:121)
at
javax.imageio.spi.IIORegistry.getDefaultInstance(IIORegistry.java:142)
at javax.imageio.ImageIO.<clinit>(ImageIO.java:48)
at
org.geotools.gce.geotiff.GeoTiffReader.<init>(GeoTiffReader.java:228)
at
org.geotools.gce.geotiff.GeoTiffReader.<init>(GeoTiffReader.java:148)
at imageutils.Main.main(Main.java:30)
Java Result: 1
The code used was:
File f = new File("ASTGTM_S21W050_dem.tif");
GeoTiffReader reader = new GeoTiffReader(f);
GridCoverage2D gc = (GridCoverage2D) reader.read(null);
RenderedImage ri = gc.getRenderedImage();
The exception was thrown on the 2nd line.
I was installed JAI, IIO and IIO-extensions SDKs. Using gt-2.5.3 every thing
goes right.
Thanks,
José
--
View this message in context: http://n2.nabble.com/What-do-I-do-to-stop-this-error-message--tp3384315p3384315.html
Sent from the geotools-gt2-users mailing list archive at Nabble.com.
|