GeoTools
  1. GeoTools
  2. GEOT-1862

Build Failure of JDK1.6.0_06 with no JAI or ImageIO

    Details

    • Type: Bug Bug
    • Status: Open Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 2.5.9
    • Component/s: referencing, render
    • Labels:
      None
    • Environment:
      Various JDKs, Win32, Vista

      Description

      Testing the build with various plain JDKs:

      • JDK 1.5.0_15 (fresh)
      • JDK 1.5.0_15 with JAI and ImageIO
      • JDK 1.5.0_15 with native DLLS for JAI and ImageIO
      • JDK 1.6.0_06 (fresh)
      • JDK 1.6.0_06 with JAI and ImageIO - UNTESTED
      • JDK 1.6.0_06 with native DLLS for JAI and ImageIO

      My guess here is that whatever ships "inside" JDK 1.6.0_06 is incompatible with our needs; at a very scary level. By installing JAI and ImageIO over top we are back to a known state?!?

      Test failure shows up as the following:

      Running org.geotools.renderer.lite.gridcoverage2d.RasterSymbolizerTest
      23-Jun-2008 11:08:02 PM org.geotools.styling.SLDParser parseUserLayer
      INFO: layer name: raster_layer
      23-Jun-2008 11:08:02 PM org.geotools.styling.SLDParser parseUserLayer
      INFO: layer name: raster_layer
      23-Jun-2008 11:08:03 PM org.geotools.styling.SLDParser parseUserLayer
      INFO: layer name: raster_layer
      23-Jun-2008 11:08:03 PM org.geotools.styling.SLDParser parseUserLayer
      INFO: layer name: raster_layer
      23-Jun-2008 11:08:03 PM org.geotools.styling.SLDParser parseUserLayer
      INFO: layer name: raster_layer
      23-Jun-2008 11:08:03 PM org.geotools.styling.SLDParser parseUserLayer
      INFO: layer name: raster_layer
      23-Jun-2008 11:08:03 PM org.geotools.styling.SLDParser parseUserLayer
      INFO: layer name: raster_layer
      23-Jun-2008 11:08:03 PM org.geotools.styling.SLDParser parseUserLayer
      INFO: layer name: raster_layer
      23-Jun-2008 11:08:03 PM org.geotools.styling.SLDParser parseUserLayer
      INFO: layer name: raster_layer
      23-Jun-2008 11:08:03 PM org.geotools.styling.SLDParser parseUserLayer
      INFO: layer name: raster_layer
      23-Jun-2008 11:08:03 PM org.geotools.styling.SLDParser parseUserLayer
      INFO: layer name: raster_layer
      23-Jun-2008 11:08:03 PM org.geotools.styling.SLDParser parseUserLayer
      INFO: layer name: raster_layer
      23-Jun-2008 11:08:03 PM org.geotools.styling.SLDParser parseUserLayer
      INFO: layer name: raster_layer
      Tests run: 10, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 1.603 sec <<< FAILURE!

      This is the kind of test that runs over some files and performs the same kind of work on each; so we need to go check the test results....

      -------------------------------------------------------------------------------
      Test set: org.geotools.renderer.lite.gridcoverage2d.RasterSymbolizerTest
      -------------------------------------------------------------------------------
      Tests run: 10, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 2.172 sec <<< FAILURE!
      test3BandsByte_SLD(org.geotools.renderer.lite.gridcoverage2d.RasterSymbolizerTest) Time elapsed: 0.221 sec <<< ERROR!
      javax.media.jai.util.ImagingException: Exception occurs when computing tiles.
      at com.sun.media.jai.util.SunTileScheduler.scheduleJob(SunTileScheduler.java:1178)
      at com.sun.media.jai.util.SunTileScheduler.scheduleTiles(SunTileScheduler.java:1227)
      at javax.media.jai.OpImage.getTiles(OpImage.java:1450)
      at javax.media.jai.RenderedOp.getTiles(RenderedOp.java:2316)
      at javax.media.jai.PlanarImage.getTiles(PlanarImage.java:2617)
      at org.geotools.renderer.lite.gridcoverage2d.RasterSymbolizerTest.testRasterSymbolizerHelper(RasterSymbolizerTest.java:1170)
      at org.geotools.renderer.lite.gridcoverage2d.RasterSymbolizerTest.test3BandsByte_SLD(RasterSymbolizerTest.java:706)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at junit.framework.TestCase.runTest(TestCase.java:168)
      at junit.framework.TestCase.runBare(TestCase.java:134)
      at junit.framework.TestResult$1.protect(TestResult.java:110)
      at junit.framework.TestResult.runProtected(TestResult.java:128)
      at junit.framework.TestResult.run(TestResult.java:113)
      at junit.framework.TestCase.run(TestCase.java:124)
      at junit.framework.TestSuite.runTest(TestSuite.java:232)
      at junit.framework.TestSuite.run(TestSuite.java:227)
      at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
      at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
      Caused by: java.lang.ArrayIndexOutOfBoundsException: 255
      at javax.media.jai.LookupTableJAI.lookup(LookupTableJAI.java:1244)
      at javax.media.jai.LookupTableJAI.lookup(LookupTableJAI.java:1016)
      at com.sun.media.jai.opimage.LookupOpImage.computeRect(LookupOpImage.java:173)
      at javax.media.jai.PointOpImage.computeTile(PointOpImage.java:914)
      at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:904)
      at javax.media.jai.OpImage.getTile(OpImage.java:1129)
      at javax.media.jai.PointOpImage.computeTile(PointOpImage.java:911)
      at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:904)
      at javax.media.jai.OpImage.getTile(OpImage.java:1129)
      at javax.media.jai.PointOpImage.computeTile(PointOpImage.java:911)
      at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:904)
      at javax.media.jai.OpImage.getTile(OpImage.java:1129)
      at javax.media.jai.PointOpImage.computeTile(PointOpImage.java:911)
      at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:904)
      at javax.media.jai.OpImage.getTile(OpImage.java:1129)
      at com.sun.media.jai.util.SunTileScheduler.compute(SunTileScheduler.java:717)
      at com.sun.media.jai.util.TileJob.compute(SunTileScheduler.java:373)
      at com.sun.media.jai.util.WorkerThread.run(SunTileScheduler.java:468)
      Caused by:
      java.lang.ArrayIndexOutOfBoundsException: 255
      at javax.media.jai.LookupTableJAI.lookup(LookupTableJAI.java:1244)
      at javax.media.jai.LookupTableJAI.lookup(LookupTableJAI.java:1016)
      at com.sun.media.jai.opimage.LookupOpImage.computeRect(LookupOpImage.java:173)
      at javax.media.jai.PointOpImage.computeTile(PointOpImage.java:914)
      at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:904)
      at javax.media.jai.OpImage.getTile(OpImage.java:1129)
      at javax.media.jai.PointOpImage.computeTile(PointOpImage.java:911)
      at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:904)
      at javax.media.jai.OpImage.getTile(OpImage.java:1129)
      at javax.media.jai.PointOpImage.computeTile(PointOpImage.java:911)
      at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:904)
      at javax.media.jai.OpImage.getTile(OpImage.java:1129)
      at javax.media.jai.PointOpImage.computeTile(PointOpImage.java:911)
      at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:904)
      at javax.media.jai.OpImage.getTile(OpImage.java:1129)
      at com.sun.media.jai.util.SunTileScheduler.compute(SunTileScheduler.java:717)
      at com.sun.media.jai.util.TileJob.compute(SunTileScheduler.java:373)
      at com.sun.media.jai.util.WorkerThread.run(SunTileScheduler.java:468)

      test4BandsUInt16_SLD(org.geotools.renderer.lite.gridcoverage2d.RasterSymbolizerTest) Time elapsed: 0.25 sec <<< ERROR!
      javax.media.jai.util.ImagingException: Exception occurs when computing tiles.
      at com.sun.media.jai.util.SunTileScheduler.scheduleJob(SunTileScheduler.java:1178)
      at com.sun.media.jai.util.SunTileScheduler.scheduleTiles(SunTileScheduler.java:1227)
      at javax.media.jai.OpImage.getTiles(OpImage.java:1450)
      at javax.media.jai.RenderedOp.getTiles(RenderedOp.java:2316)
      at javax.media.jai.PlanarImage.getTiles(PlanarImage.java:2617)
      at org.geotools.renderer.lite.gridcoverage2d.RasterSymbolizerTest.testRasterSymbolizerHelper(RasterSymbolizerTest.java:1170)
      at org.geotools.renderer.lite.gridcoverage2d.RasterSymbolizerTest.test4BandsUInt16_SLD(RasterSymbolizerTest.java:570)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at junit.framework.TestCase.runTest(TestCase.java:168)
      at junit.framework.TestCase.runBare(TestCase.java:134)
      at junit.framework.TestResult$1.protect(TestResult.java:110)
      at junit.framework.TestResult.runProtected(TestResult.java:128)
      at junit.framework.TestResult.run(TestResult.java:113)
      at junit.framework.TestCase.run(TestCase.java:124)
      at junit.framework.TestSuite.runTest(TestSuite.java:232)
      at junit.framework.TestSuite.run(TestSuite.java:227)
      at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
      at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)
      at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)
      at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:338)
      at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:997)
      Caused by: java.lang.ArrayIndexOutOfBoundsException: 255
      at javax.media.jai.LookupTableJAI.lookup(LookupTableJAI.java:1244)
      at javax.media.jai.LookupTableJAI.lookup(LookupTableJAI.java:1016)
      at com.sun.media.jai.opimage.LookupOpImage.computeRect(LookupOpImage.java:173)
      at javax.media.jai.PointOpImage.computeTile(PointOpImage.java:914)
      at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:904)
      at javax.media.jai.OpImage.getTile(OpImage.java:1129)
      at javax.media.jai.PointOpImage.computeTile(PointOpImage.java:911)
      at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:904)
      at javax.media.jai.OpImage.getTile(OpImage.java:1129)
      at javax.media.jai.PointOpImage.computeTile(PointOpImage.java:911)
      at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:904)
      at javax.media.jai.OpImage.getTile(OpImage.java:1129)
      at com.sun.media.jai.util.SunTileScheduler.compute(SunTileScheduler.java:717)
      at com.sun.media.jai.util.TileJob.compute(SunTileScheduler.java:373)
      at com.sun.media.jai.util.WorkerThread.run(SunTileScheduler.java:468)
      Caused by:
      java.lang.ArrayIndexOutOfBoundsException: 255
      at javax.media.jai.LookupTableJAI.lookup(LookupTableJAI.java:1244)
      at javax.media.jai.LookupTableJAI.lookup(LookupTableJAI.java:1016)
      at com.sun.media.jai.opimage.LookupOpImage.computeRect(LookupOpImage.java:173)
      at javax.media.jai.PointOpImage.computeTile(PointOpImage.java:914)
      at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:904)
      at javax.media.jai.OpImage.getTile(OpImage.java:1129)
      at javax.media.jai.PointOpImage.computeTile(PointOpImage.java:911)
      at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:904)
      at javax.media.jai.OpImage.getTile(OpImage.java:1129)
      at javax.media.jai.PointOpImage.computeTile(PointOpImage.java:911)
      at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:904)
      at javax.media.jai.OpImage.getTile(OpImage.java:1129)
      at com.sun.media.jai.util.SunTileScheduler.compute(SunTileScheduler.java:717)
      at com.sun.media.jai.util.TileJob.compute(SunTileScheduler.java:373)
      at com.sun.media.jai.util.WorkerThread.run(SunTileScheduler.java:468)

        Issue Links

          Activity

          Hide
          Jody Garnett added a comment -
          To get this error I need to clean install from modules/library - this error is not just located in renderer...
          Show
          Jody Garnett added a comment - To get this error I need to clean install from modules/library - this error is not just located in renderer...
          Hide
          Jody Garnett added a comment -
          Related problem is failure to determine JAI Operation:

          Maven version: 2.0.9
          Java version: 1.5.0_14
          OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"

          testSubtract(org.geotools.coverage.processing.OperationsTest) Time elapsed: 0.031 sec <<< FAILURE!
          java.lang.AssertionError:
                  at org.junit.Assert.fail(Assert.java:74)
                  at org.junit.Assert.assertTrue(Assert.java:37)
                  at org.junit.Assert.assertTrue(Assert.java:46)
                  at org.geotools.coverage.processing.OperationsTest.testSubtract(OperationsTest.java:115)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          Show
          Jody Garnett added a comment - Related problem is failure to determine JAI Operation: Maven version: 2.0.9 Java version: 1.5.0_14 OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" testSubtract(org.geotools.coverage.processing.OperationsTest) Time elapsed: 0.031 sec <<< FAILURE! java.lang.AssertionError:         at org.junit.Assert.fail(Assert.java:74)         at org.junit.Assert.assertTrue(Assert.java:37)         at org.junit.Assert.assertTrue(Assert.java:46)         at org.geotools.coverage.processing.OperationsTest.testSubtract(OperationsTest.java:115)         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

            People

            • Assignee:
              Simone Giannecchini
              Reporter:
              Jody Garnett
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: