Hi all,
I think that MosaicIndexBuilder does not support bmp because i get this error:
Now indexing file bitmap_67-97.bmp
for C:\tmp\testData\iraklio\bitmap_67-97.bmp
Exception in thread “MosaicIndexBuilder” java.lang.NullPointerException
at it.geosolutions.utils.imagemosaic.MosaicIndexBuilder.run(MosaicIndexBuilder.java:363)
at java.lang.Thread.run(Unknown Source)
and after litle debuging i discovered that :
that the format.getString() produces this message
org.geotools.data.coverage.grid.UnknownFormat@anonymised.com
If this is the case what are my alternatives ?
thx
gp
×ñçóéìïðïéåßôå Yahoo!
ÂáñåèÞêáôå ôá åíï÷ëçôéêÜ ìçíý ìáôá (spam); Ôï Yahoo! Mail äéáèÝôåé ôçí êáëýôåñç äõíáôÞ ðñïóôáóßá êáôÜ ôùí åíï÷ëçôéêþí ìçíõìÜôùí
http://login.yahoo.com/config/mail?.intl=gr
gpio Oxxce ha scritto:
Hi all,
I think that MosaicIndexBuilder does not support bmp because i get this error:
Now indexing file bitmap_67-97.bmp
for C:\tmp\testData\iraklio\bitmap_67-97.bmp
Exception in thread "MosaicIndexBuilder" java.lang.NullPointerException
at it.geosolutions.utils.imagemosaic.MosaicIndexBuilder.run(MosaicIndexBuilder.java:363)
at java.lang.Thread.run(Unknown Source)
and after litle debuging i discovered that :
that the format.getString() produces this message
org.geotools.data.coverage.grid.UnknownFormat@anonymised.com
If this is the case what are my alternatives ?
Theoretically the world image plugin is able to load bmp + bmpw.
Is the world image plugin in your classpath? Is so, and since you're
already debugging, you can check out what's going on when WorldImagefo.accepts(Object) is called (and why it refuses your data)
Cheers
Andrea
Hi Andrea, All,
I tried also the MosaicIndexBuilder with the mosaic_sample folder located in the coverage folder of the geoserver, and again it complains :
Now indexing file global_mosaic_0.png
for C:\tmp\testData\mosaic_sample\global_mosaic_0.png
Exception in thread “MosaicIndexBuilder” java.lang.NullPointerException
at it.geosolutions.utils.imagemosaic.MosaicIndexBuilder.run(MosaicIndexBuilder.java:367)
at java.lang.Thread.run(Unknown Source)
And again the Debug message format.getString() return an UnknowFormat error.
So it is not about bmps or png but something more basic.
Also in the geoserver map preview page I am not able to see the ImageMosaic predefined example, and a series of errors/exceptions are produced
…
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
…
Caused by: java.lang.RuntimeException: javax.imageio.IIOException: I/O error reading PNG header!
at com.sun.media.jai.imageioimpl.ImageReadCRIF.create(ImageReadCRIF.java:317)
…51 more
Caused by: javax.imageio.IIOException: I/O error reading PNG header!
…
Caused by: javax.imageio.IIOException: Bad length for IHDR chunk!
… 57 more
Andrea Aime aaime@anonymised.com Ýãñáøå:
gpio Oxxce ha scritto:
Hi all,
I think that MosaicIndexBuilder does not support bmp because i get this
error:
Now indexing file bitmap_67-97.bmp
for C:\tmp\testData\iraklio\bitmap_67-97.bmp
Exception in thread “MosaicIndexBuilder” java.lang.NullPointerException
at
it.geosolutions.utils.imagemosaic.MosaicIndexBuilder.run(MosaicIndexBuilder.java:363)
at java.lang.Thread.run(Unknown Source)
and after litle debuging i discovered that :
that the format.getString() produces this message
org.geotools.data.coverage.grid.UnknownFormat@anonymised.com
If this is the case what are my alternatives ?
Theoretically the world image plugin is able to load bmp + bmpw.
Is the world image plugin in your classpath? Is so, and since you’re
already debugging, you can check out what’s going on when
WorldImagefo.accepts(Object) is called (and why it refuses your data)
Cheers
Andrea
×ñçóéìïðïéåßôå Yahoo!
ÂáñåèÞêáôå ôá åíï÷ëçôéêÜ ìçíý ìáôá (spam); Ôï Yahoo! Mail äéáèÝôåé ôçí êáëýôåñç äõíáôÞ ðñïóôáóßá êáôÜ ôùí åíï÷ëçôéêþí ìçíõìÜôùí
http://login.yahoo.com/config/mail?.intl=gr
gpio Oxxce ha scritto:
Hi Andrea, All,
I tried also the MosaicIndexBuilder with the mosaic_sample folder located in the coverage folder of the geoserver, and again it complains :
Now indexing file global_mosaic_0.png
for C:\tmp\testData\mosaic_sample\global_mosaic_0.png
Exception in thread "MosaicIndexBuilder" java.lang.NullPointerException
at it.geosolutions.utils.imagemosaic.MosaicIndexBuilder.run(MosaicIndexBuilder.java:367)
at java.lang.Thread.run(Unknown Source)
And again the Debug message format.getString() return an UnknowFormat error.
So it is not about bmps or png but something more basic.
Hmmm.... Alessio, Simone, any idea here?
Also in the geoserver map preview page I am not able to see the ImageMosaic predefined example, and a series of errors/exceptions are produced
..
java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
....
Caused by: java.lang.RuntimeException: javax.imageio.IIOException: I/O error reading PNG header!
at com.sun.media.jai.imageioimpl.ImageReadCRIF.create(ImageReadCRIF.java:317)
..51 more
Caused by: javax.imageio.IIOException: I/O error reading PNG header!
...
Caused by: javax.imageio.IIOException: Bad length for IHDR chunk!
... 57 more
Ah, yeah, this is a problem with Jetty broken classloader that occurs only if you are using jdk 1.4.12 and have native JAI installed.
We solved it in 1.5.0rc3 by disabling native library usage if running on a 1.4 jdk. I warmly suggest to use a jdk 1.5 and use Tomcat, or stick
with Jetty but apply the fixes I described here:
http://www.nabble.com/Image-I-O-problems-tf3451549.html
We're going to document this before releasing geoserver 1.5.0
Cheers
Andrea