Hi,

World Image reader is throwing an exception while setting up the ParameterBlockJAI. I suspect it is because of incorrect setup of JAI or something like that. Here's the exception:


java.lang.IllegalArgumentException: The input argument(s) may not be null.
   at javax.media.jai.ParameterBlockJAI.<init>(ParameterBlockJAI.java:208)
   at javax.media.jai.ParameterBlockJAI.<init>(ParameterBlockJAI.java:250)
at org.geotools.gce.image.WorldImageReader.readSourceImage(WorldImageReader.java:464) at org.geotools.gce.image.WorldImageReader.read(WorldImageReader.java:301) at net.refractions.udig.catalog.rasterings.AbstractRasterGeoResource.findResource(AbstractRasterGeoResource.java:122) at net.refractions.udig.catalog.rasterings.AbstractRasterGeoResource.resolve(AbstractRasterGeoResource.java:146) at net.refractions.udig.project.internal.impl.LayerResource.resolve(LayerResource.java:122) at net.refractions.udig.render.internal.gridcoverage.basic.BasicGridCoverageRenderer.prepareRender(BasicGridCoverageRenderer.java:167) at net.refractions.udig.render.internal.gridcoverage.basic.BasicGridCoverageRenderer.render(BasicGridCoverageRenderer.java:55)
   at net.refractions.udig.render.internal.

Here's the lines were the exception is thrown:

   private void readSourceImage() throws IOException {
       if (source == null) {
           throw new IOException(
               "WorldImage:No source set to read this coverage.");
       }

       //preparing the parameteres to read the images using a file channel
ParameterBlockJAI readParams = new ParameterBlockJAI("ImageRead", // this is line 464
               "rendered");

This is happening in uDig so it is possible that it is a classloader problem... But GridCoverage reprojection is working when I create a GridCoverage by hand.

Any ideas would be great!

Jesse


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to