Stash Login Verification Code does not display, reported could not initialize class Sun.awt.X11FontManager error

Source: Internet
Author: User

Stash sign in when prompted to enter a verification code, but the verification code does not show, how to solve it?

Error message: 650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/72/85/wKiom1XlXJ_wyyq-AAFhGMLGC1I205.jpg "title=" Login error. png "alt=" wkiom1xlxj_wyyq-aafhgmlgc1i205.jpg "/>

Check out the reasons for the specific error through Chrome's review element:

Error creating Bean with Name ' Imagecaptchaserviceprototype ' defined in class path resource [Stash-context.xml]: Cannot cr Eate 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 beans 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

Baidu is unable to find a solution, and finally through the wall to find the reason, is the font of the problem, but how to install also no use, there are also said JDK problems, various search, the end is steady.


Stash in the CentOS environment of the configuration environment, operate with Xshell.


Solution:

Yum Grouplist

and find Fonts.

Yum Groupinstall Fonts

After loading, and then restart the refresh, the result is not resolved, which prompted a JDK in the directory without a **.so thing, this time directly to install this thing

Yum Install **.so

Restart, refresh, solve the problem again!


This article is from the "Suck on self-renewal" blog, please be sure to keep this source http://wyong.blog.51cto.com/1115465/1690521

Stash Login Verification Code does not display, reported could not initialize class Sun.awt.X11FontManager error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.