java.lang.IllegalArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • *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}
    via by Jeff Kirby,
  • *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}
    via by Jeff Kirby,
  • IllegalArgumentException error..
    via by Unknown author,
  • IllegalArgumentException error.
    via by Unknown author,
  • Error showing image on jdialog form
    via Stack Overflow by Pedro
    ,
    • 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)

    Users with the same issue

    Unknown visitor1 times, last one,