java.lang.IllegalArgumentException: Width (-1) and height (0) must be > 0

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 843797, 1 year ago
Width (-1) and height (0) must be > 0
via Oracle Community by 843799, 4 months ago
Width (-1) and height (0) must be > 0
via Google Groups by Unknown author, 3 months ago
Dimensions (width=10837463 height= 2023) are too large
via Google Groups by Steve Menard, 1 month ago
Width (4) and height (0) must be > 0
via Oracle Community by 807582, 1 year ago
Width (800) and height (0) must be > 0
via Oracle Community by 807582, 1 year ago
Width (800) and height (0) must be > 0
java.lang.IllegalArgumentException: Width (-1) and height (0) must be > 0
at java.awt.image.SampleModel.(Unknown Source)
at java.awt.image.SinglePixelPackedSampleModel.(Unknown Source)
at java.awt.image.Raster.createPackedRaster(Unknown Source)
at java.awt.image.Raster.createPackedRaster(Unknown Source)
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
at java.awt.image.BufferedImage.(Unknown Source)
at undefined.Convolve2.init(Convolve2.java:22)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
6 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.