java.awt.image.RasterFormatException: negative or zero height

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 GitHub by lo1tuma
, 1 year ago
negative or zero height
via GitHub by Omertron
, 2 years ago
via Stack Overflow by Ioan
, 1 year ago
java.awt.image.RasterFormatException: negative or zero height
at java.awt.image.Raster.(Raster.java:1105)
at java.awt.image.WritableRaster.(WritableRaster.java:129)
at sun.awt.image.SunWritableRaster.(SunWritableRaster.java:129)
at sun.awt.image.ByteComponentRaster.(ByteComponentRaster.java:154)
at sun.awt.image.ByteInterleavedRaster.(ByteInterleavedRaster.java:191)
at sun.awt.image.ByteInterleavedRaster.createWritableChild(ByteInterleavedRaster.java:1261)
at java.awt.image.BufferedImage.getSubimage(BufferedImage.java:1202)
at com.galenframework.api.GalenPageDump.exportAllScreenshots(GalenPageDump.java:192)
at com.galenframework.api.GalenPageDump.dumpPage(GalenPageDump.java:121)
at com.galenframework.api.GalenPageDump.dumpPage(GalenPageDump.java:74)
at com.galenframework.suite.actions.GalenPageActionDumpPage.execute(GalenPageActionDumpPage.java:53)
at com.galenframework.runner.GalenPageRunner.executeAction(GalenPageRunner.java:84)
at com.galenframework.runner.GalenPageRunner.run(GalenPageRunner.java:76)
at com.galenframework.runner.GalenBasicTestRunner.runTest(GalenBasicTestRunner.java:76)
at com.galenframework.tests.GalenBasicTest.execute(GalenBasicTest.java:55)
at com.galenframework.TestRunnable.runTest(TestRunnable.java:75)
at com.galenframework.TestRunnable.run(TestRunnable.java:101)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

You are the first who have seen this exception.

Write tip

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