[Ejtools-developers] [ ejtools-Bugs-633317 ] Needs an X server running
Brought to you by:
letiemble
From: <no...@so...> - 2002-11-06 21:03:25
|
Bugs item #633317, was opened at 2002-11-04 16:15 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=455072&aid=633317&group_id=49088 Category: JMX Browser (Web App) Group: 1.0.0-preview Status: Open Resolution: None Priority: 5 Submitted By: Chris O'Byrne (chrisobyrne) Assigned to: Laurent Etiemble (letiemble) Summary: Needs an X server running Initial Comment: I'm running jboss-3.0.2 on a headless Unix server that is NOT running X. I get - WARNING: Exception for /jmx-browser/detail.do;jsessionid=xxxxx?reference=xxxxxxxxx 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.<clinit>(X11GraphicsEnvironment.java:54) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:115) at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:53) at sun.awt.motif.MToolkit.<clinit>(MToolkit.java:52) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:115) at java.awt.Toolkit$2.run(Toolkit.java:507) at java.security.AccessController.doPrivileged(Native Method) at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:498) at java.beans.SimpleBeanInfo.loadImage(SimpleBeanInfo.java:119) at net.sourceforge.ejtools.jmxbrowser.model.ResourceBeanInfo.<init>(ResourceBeanInfo.java:29) at java.lang.Class.newInstance0(Native Method) at java.lang.Class.newInstance(Class.java:232) ... It seems that loadImage() needs an X server to be running... ---------------------------------------------------------------------- >Comment By: Laurent Etiemble (letiemble) Date: 2002-11-06 22:03 Message: Logged In: YES user_id=437455 It's a common issue in Java. If you access graphic related classes or methods which need some native functions, a graphical layer is required (a X11 server in this case). See http://developer.java.sun.com/developer/bugParade/bugs/4281 163.html for the description. Short term workarounds : - install a X11 server (I guess you won't) - install the xvbf utility. It simulates a graphical buffer which satisfies Java graphical method. In the JMX browser, there is a shared code base between the Web version and the Swing version. In this code, there are some BeanInfo classes that load eagerly icons, when the classes are loaded. So a possible work around is to load lazily the icons, only when needed (not needed in Web version). I plan to release a new version of the Web version by the end of November that will correct this bug, so I hope you will be patient. Regards. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=455072&aid=633317&group_id=49088 |