java.lang.IllegalArgumentException: Empty region!

Oracle Community | 843851 | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Changing the icon of my application

    Oracle Community | 7 years ago | 843851
    java.lang.IllegalArgumentException: Empty region!

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Empty region!

      at javax.imageio.ImageReader.computeRegions()
    2. Java RT
      WBMPImageReader.read
      1. javax.imageio.ImageReader.computeRegions(ImageReader.java:2689)
      2. com.sun.imageio.plugins.wbmp.WBMPImageReader.read(WBMPImageReader.java:184)
      2 frames
    3. com.sun.javafx
      SwingToolkit.loadImage
      1. com.sun.javafx.tk.desktop.AWTImageLoader.readImageFromStream(AWTImageLoader.java:524)
      2. com.sun.javafx.tk.desktop.AWTImageLoader.readImage(AWTImageLoader.java:580)
      3. com.sun.javafx.tk.desktop.AWTImageLoader.<init>(AWTImageLoader.java:118)
      4. com.sun.javafx.tk.swing.SwingToolkit.loadImage(SwingToolkit.fx:163)
      4 frames
    4. javafx.scene.image
      Image.postInit$
      1. javafx.scene.image.Image.initialize(Image.fx:288)
      2. javafx.scene.image.Image.postInit$(Image.fx:262)
      2 frames
    5. com.sun.javafx
      FXBase.complete$
      1. com.sun.javafx.runtime.FXBase.complete$(FXBase.java:57)
      1 frame
    6. proyecto
      Main.javafx$run$
      1. proyecto.Main.javafx$run$(Main.fx:52)
      1 frame