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

Follow these steps:

  1. 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%
    
  2. Restart Fisheye.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

最終更新日 2018 年 7 月 31 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.