Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6300036

Using BMP image for customized splash screen, throws IllegalArgumentException

XMLWordPrintable

    • b50
    • generic
    • generic
    • Verified

      JDK-Info:
      ---------
      java version "1.6.0-ea"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-ea-b43)
      Java HotSpot(TM) Client VM (build 1.6.0-ea-b43, mixed mode, sharing)


      Operating System:
      -----------------
      Generic


      Steps to Reproduce:
      -------------------
      1) Install JDK
      2) Clean cache
      3) Launch a JNLP Application which calls for a customized splash screen (BMP image file)
      ./javaws http://ramkumar.india.sun.com:8080/JaWS_mywork/Shammy/ShammyBMPSplashCheck.jnlp


      The following error dialog is displayed; but still the application gets launched.

      "Application Error - Unable to launch the application"

      java.lang.IllegalArgumentException: Width (-1) and height (-1) must be > 0
      at java.awt.image.SampleModel.<init>(Unknown Source)
      at java.awt.image.ComponentSampleModel.<init>(Unknown Source)
      at java.awt.image.PixelInterleavedSampleModel.<init>(Unknown Source)
      at java.awt.image.Raster.createInterleavedRaster(Unknown Source)
      at java.awt.image.Raster.createInterleavedRaster(Unknown Source)


      Snap shot attached (JNLP_with_BMP_Splash.gif). You can see the application launched sucessfully and also the error dialog.

      Though using BMP image for a customized splash screen is not a supported format, the error dialog should not be displayed and the application should be lauched as seen in tiger.


      Expected Behavior:
      ------------------
      When BMP image is used for a customized splash screen which is not a supported format, the application should still be lauched, ignoring the unsupported image format as seen in tiger

      ###@###.### 2005-07-21 14:50:37 GMT

            herrick Andy Herrick (Inactive)
            rkumarsunw Ram Kumar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: