Hi Fabio,
I can confirm the same exception. The detailed stack trace ( which
should have been available from your console? ) is:
java.lang.NullPointerException at
org.geotools.gce.geotiff.GeoTiffException.getMessage(GeoTiffException.java:158)
at
org.geotools.data.DataSourceException.<init>(DataSourceException.java:47)
at
org.geotools.gce.geotiff.GeoTiffReader.<init>(GeoTiffReader.java:222)
at org.geotools.gce.geotiff.GeoTiffFormat.getReader(GeoTiffFormat.java:252)
...
Which hides the original exception, for which I got a message of:
"Unknown Raster to Model configuration."
Which occurs when the geotiff reader is trying to compute the raster to
world transformation. From what I can tell ( and i am by no means an
expert so apologies of what i am saying does not make sense or is
obvious ), but the raster metadata does not specify the tie points or
pixel scales needed to perform the transformation. Which is actually the
problem that is causing the exception above. So perhaps the metadata for
the resulting tif has gone wacky?
I think the GeoTiffException class needs to be a bit more careful about
looking up information to report in an exception message?
I am sure someone more knowledgeable can provide more useful information.
-Justin
Fabio Da Soghe wrote:
Hello.
I'm trying to publish a geotiff raster with Geoserver 1.5.0-RC1.
This raster is created from a tif+tfw+prj file, using the utility gdal_translate (as Andrea Aime suggested me some time ago 
After several tries I managed to get a (apparently) correct geotiff: the command gdalinfo tells me info that seems right (except that the original raster has 2 entry in the rgb table, while the geotiff version has 256 entry - the last 254 are all 0s).
The CoverageStore creation is ok. But when I create the coverage, I get this page:
GeoServer - Exception
The following exception was thrown:
java.lang.NullPointerException
I read the tomcat log, there's nothing more, neither in the geoserver log (into the data/logs).
The command which with I created the raster is this:
gdal_translate -of GTiff -b 1 -co "PROFILE=GeoTIFF" -co "INTERLEAVE=PIXEL" -co "COMPRESS=LZW" -co "TILED=YES" -a_srs EPSG:3003 cascinanuova2.tif provagt_3003.tif
Of course I can supply the original raster and the geotiff version, if desired.
Thanks for any hint.
Cheers,
Fabio
-------------------------------------------------------------------------
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
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users
!DSPAM:1004,45eef92c237372051017194!
--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org