Recover gracefully when no graphics display is available --------------------------------------------------------
Key: WICKET-699 URL: https://issues.apache.org/jira/browse/WICKET-699 Project: Wicket Issue Type: Improvement Components: wicket-examples Affects Versions: 1.3.0-beta2 Reporter: Jean-Baptiste Quenot Priority: Minor Fix For: 1.3.0-final When loading the captcha example with no graphics display, here is the error I get: {noformat} Caused by: java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable. at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method) at sun.awt.X11GraphicsEnvironment.access$000(X11GraphicsEnvironment.java:53) at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:142) at java.security.AccessController.doPrivileged(Native Method) at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:131) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:164) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68) at sun.font.FontManager.initSGEnv(FontManager.java:953) at sun.font.FontManager.findFont2D(FontManager.java:1115) at java.awt.Font.getFont2D(Font.java:358) at java.awt.Font.defaultLineMetrics(Font.java:1816) at java.awt.Font.getLineMetrics(Font.java:1902) at java.awt.font.TextLayout.fastInit(TextLayout.java:679) at java.awt.font.TextLayout.<init>(TextLayout.java:480) at org.apache.wicket.extensions.markup.html.captcha.CaptchaImageResource.<init>(CaptchaImageResource.java:192) at org.apache.wicket.extensions.markup.html.captcha.CaptchaImageResource.<init>(CaptchaImageResource.java:155) at org.apache.wicket.examples.captcha.Captcha$CaptchaForm.<init>(Captcha.java:53) at org.apache.wicket.examples.captcha.Captcha.<init>(Captcha.java:116) {noformat} We could intercept this and recover gracefully, to instruct users in the wicket example page how to setup the server for making this work. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.