Archives for the 'Bug fixes' Category

Headless Exception Work-Around

On upgrading a piece of (1.4-dependent) server-side software from 1.4.2_01 to 1.4.2_14, I began seeing errors that looked like: java.awt.HeadlessException at sun.java2d.HeadlessGraphicsEnvironment.getDefaultScreenDevice ( at javax.swing.RepaintManager.getVolatileOffscreenBuffer ( at javax.swing.JComponent.paintDoubleBuffered( at javax.swing.JComponent.paint( at edu.vt.cs.collab.cork.impl.servlet.CORKServlet.encodeComponentAsJPEG ( at at at edu.vt.cs.collab.bridge.DefaultWebViewServlet.doGet( at edu.vt.cs.collab.cork.impl.servlet.CORKServlet.doGet( at javax.servlet.http.HttpServlet.service( …. The offending code segment was: img = new BufferedImage(sz.width, sz.height, BufferedImage.TYPE_INT_RGB); [...]

16 June 2007 | Bug fixes | No Comments




Copyright 2003-2016 - Philip Isenhour - All code samples may be freely used under the MIT Open-Source License