java.lang.IllegalArgumentException: Width (200) and height (0) must be non-zero

Atlassian JIRA | Jeff Kirby | 7 years ago
  1. 0

    *To Reproduce* 1. attach an image to an issue that is 600x1 (for example, I've attached !wideshort.jpg! to this issue but neither it nor any other image attachment appears in *File Attachments* above) *Expected Result* see a thumbnail of the image on your issue...or at least the name of the file listed in File Attachments *Actual Result* On Jira 4 no attachment appears. On Jira 3.13 a there'll be a thumbnail number with parenthesis () but no link, no file name and no size. !1pix-attach-bug.jpg! And, in Jira 3.13, the logs will get 11 stack traces, the first one starting with {noformat} 2010-02-08 12:31:56,122 TP-Processor3 ERROR [core.util.thumbnail.Thumber] Unable to create thumbnail image of attachment with id:108282 java.lang.IllegalArgumentException: Width (200) and height (0) must be non-zero at java.awt.image.ReplicateScaleFilter.<init>(ReplicateScaleFilter.java:85) at java.awt.image.AreaAveragingScaleFilter.<init>(AreaAveragingScaleFilter.java:60) at com.atlassian.core.util.thumbnail.Thumber.scaleImage(Thumber.java:148) at com.atlassian.core.util.thumbnail.Thumber.createThumbnail(Thumber.java:170) at com.atlassian.core.util.thumbnail.Thumber.retrieveOrCreateThumbNail(Thumber.java:131) at com.atlassian.core.util.thumbnail.Thumber.retrieveOrCreateThumbNail(Thumber.java:91) at com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager.getThumbnail(DefaultThumbnailManager.java:88) at com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager.getThumbnails(DefaultThumbnailManager.java:50) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ... {noformat}

    Atlassian JIRA | 7 years ago | Jeff Kirby
    java.lang.IllegalArgumentException: Width (200) and height (0) must be non-zero
  2. 0

    *To Reproduce* 1. attach an image to an issue that is 600x1 (for example, I've attached !wideshort.jpg! to this issue but neither it nor any other image attachment appears in *File Attachments* above) *Expected Result* see a thumbnail of the image on your issue...or at least the name of the file listed in File Attachments *Actual Result* On Jira 4 no attachment appears. On Jira 3.13 a there'll be a thumbnail number with parenthesis () but no link, no file name and no size. !1pix-attach-bug.jpg! And, in Jira 3.13, the logs will get 11 stack traces, the first one starting with {noformat} 2010-02-08 12:31:56,122 TP-Processor3 ERROR [core.util.thumbnail.Thumber] Unable to create thumbnail image of attachment with id:108282 java.lang.IllegalArgumentException: Width (200) and height (0) must be non-zero at java.awt.image.ReplicateScaleFilter.<init>(ReplicateScaleFilter.java:85) at java.awt.image.AreaAveragingScaleFilter.<init>(AreaAveragingScaleFilter.java:60) at com.atlassian.core.util.thumbnail.Thumber.scaleImage(Thumber.java:148) at com.atlassian.core.util.thumbnail.Thumber.createThumbnail(Thumber.java:170) at com.atlassian.core.util.thumbnail.Thumber.retrieveOrCreateThumbNail(Thumber.java:131) at com.atlassian.core.util.thumbnail.Thumber.retrieveOrCreateThumbNail(Thumber.java:91) at com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager.getThumbnail(DefaultThumbnailManager.java:88) at com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager.getThumbnails(DefaultThumbnailManager.java:50) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ... {noformat}

    Atlassian JIRA | 7 years ago | Jeff Kirby
    java.lang.IllegalArgumentException: Width (200) and height (0) must be non-zero
  3. 0

    JLabel Image Icon Placeholder always return 0 in constructor. Unable to load Blob

    Stack Overflow | 8 months ago | p3ace
    java.lang.IllegalArgumentException: Width (0) and height (0) must be non-zero
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Setting Icons to JButton resulted to IllegalArgumentException 0 width and 0 height

    Stack Overflow | 7 months ago | p3ace
    java.lang.IllegalArgumentException: Width (0) and height (0) must be non-zero
  6. 0

    Encountered Fatal: Launch Error: while launching IGV 2.3/snapshot via direct JNLP or from binary

    Google Groups | 7 months ago | Sharbadeb Kundu
    java.lang.IllegalArgumentException: Width (0) and height (0) must be non-zero

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Width (200) and height (0) must be non-zero

      at java.awt.image.ReplicateScaleFilter.<init>()
    2. Java RT
      AreaAveragingScaleFilter.<init>
      1. java.awt.image.ReplicateScaleFilter.<init>(ReplicateScaleFilter.java:85)
      2. java.awt.image.AreaAveragingScaleFilter.<init>(AreaAveragingScaleFilter.java:60)
      2 frames
    3. com.atlassian.core
      Thumber.retrieveOrCreateThumbNail
      1. com.atlassian.core.util.thumbnail.Thumber.scaleImage(Thumber.java:148)
      2. com.atlassian.core.util.thumbnail.Thumber.createThumbnail(Thumber.java:170)
      3. com.atlassian.core.util.thumbnail.Thumber.retrieveOrCreateThumbNail(Thumber.java:131)
      4. com.atlassian.core.util.thumbnail.Thumber.retrieveOrCreateThumbNail(Thumber.java:91)
      4 frames
    4. com.atlassian.jira
      DefaultThumbnailManager.getThumbnails
      1. com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager.getThumbnail(DefaultThumbnailManager.java:88)
      2. com.atlassian.jira.issue.thumbnail.DefaultThumbnailManager.getThumbnails(DefaultThumbnailManager.java:50)
      2 frames
    5. Java RT
      NativeMethodAccessorImpl.invoke0
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      1 frame