stash 登录验证码不显示,报Could not initialize class sun.awt.X11FontManager错误

 stash登录时提示输入验证码,可是验证码不显示了,怎么解决了?

 报错信息:wKiom1XlXJ_wyyq-AAFhGMLGC1I205.jpg

  

 再通过chrome的审查元素进行查看具体报错的原因:

Error creating bean with name 'p_w_picpathCaptchaServicePrototype' defined in class path resource [stash-context.xml]: Cannot create inner bean 'com.atlassian.stash.internal.web.util.captcha.StashCaptchaEngine#142e709' of type [com.atlassian.stash.internal.web.util.captcha.StashCaptchaEngine] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.atlassian.stash.internal.web.util.captcha.StashCaptchaEngine#142e709#266' defined in class path resource [stash-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.atlassian.stash.internal.web.util.captcha.StashCaptchaEngine]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager

在百度是没法找到解决方案的,最后通过***找到了原因,是字体的问题,但是怎么装也没有用,也有说的jdk的问题,各种查找,最终是柳暗花明。


stash的配置环境的centos环境下,用xshell进行操作。


解决方案:

yum grouplist

然后找到 Fonts

yum groupinstall Fonts

装完后,再重启一下刷新,结果还是没有解决,其中提示一个JDK中的目录下没有一个 **.so的东西,这时候直接再次装这个东西

yum install **.so 

再次重启、刷新,解决问题!


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章