René Estrella ha scritto: > I'm trying to deploy an ascii raster format map with geotools 2.3.0. I'm > using the following code: > > ArcGridReader agr = new ArcGridReader(raster); > GridCoverage2D gc2 = (GridCoverage2D)agr.read(null); > > where 'raster' is an URL object containing the URL of the ascii raster. > > When I run my class, I get the following exception: ... > Caused by: java.lang.NullPointerException > at > com.sun.media.imageioimpl.common.ImageUtil.getJDKImageReaderWriterSPI > (ImageUtil.java:1366) > at > com.sun.media.imageioimpl.plugins.jpeg.CLibJPEGImageReaderSpi.onRegis
Ah, that's probably GEOT-1134 (http://jira.codehaus.org/browse/GEOT-1134). I guess on Windows you did not install JAI and JAI image i/o in your jdk and jre, but have them in the classpath instead? The stack trace I was getting when that issue appeared was exactly the same. It has been fixed in 2.3.x branch, which will be released as 2.3.1 (maybe in a couple of weeks?). You can try and download a recent nightly here: http://www.geo-solutions.it/gt2_nightly/ Let me know if this fixes your problem. Cheers Andrea ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
