Getting A sun.java2d.HeadlessGraphicsEnvironment cannot be cast to sun.awt.Win32GraphicsEnvironment Error on Startup
症状
The following error is logged on startup:
Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: sun.java2d.HeadlessGraphicsEnvironment cannot be cast to sun.awt.Win32GraphicsEnvironment
at sun.awt.windows.WToolkit$4.run(WToolkit.java:735)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
:
原因
This is caused by a Sun JVM bug. (Fixed in all currently supported versions)
ソリューション
While the error message can be safely ignored, the problem can be fixed by removing this JVM parameter from <Fisheye installation>/bin/fisheyectl.bat
:
-Djava.awt.headless=true
以下の手順を実行します。
Edit
bin/fisheyectl.bat
. Change the following line from:%_EXECCMD% %FISHEYE_OPTS% "-Dfisheye.library.path=%FISHEYE_LIBRARY_PATH%" "-Dfisheye.inst=%FISHEYE_INST%" -Djava.awt.headless=true "-Djava.endorsed.dirs=%FISHEYE_HOME%\lib\endorsed" -jar "%FISHEYE_HOME%\fisheyeboot.jar" %* %FISHEYE_ARGS%
変更後:
%_EXECCMD% %FISHEYE_OPTS% "-Dfisheye.library.path=%FISHEYE_LIBRARY_PATH%" "-Dfisheye.inst=%FISHEYE_INST%" "-Djava.endorsed.dirs=%FISHEYE_HOME%\lib\endorsed" -jar "%FISHEYE_HOME%\fisheyeboot.jar" %* %FISHEYE_ARGS%
- Restart Fisheye.
最終更新日 2018 年 7 月 31 日
Powered by Confluence and Scroll Viewport.