BitBucket captcha does not display correctly

Hi,

Recently we have started to see an issue where if a user fails to log in a number of times the captcha does not load correctly, as shown below:

IE:                                          Chrome:

bb3.PNGbb2.PNG

I have looked in the Atlassian-bitbucket.log and can see the following error:

 

Error creating bean with name 'imageCaptchaServicePrototype' defined in class path resource [stash-context.xml]: Cannot create inner bean 'com.atlassian.stash.internal.web.util.captcha.StashCaptchaEngine#34b267ce' 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#34b267ce' defined in class path resource [stash-context.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.atlassian.stash.internal.web.util.captcha.StashCaptchaEngine]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: Could not initialize class sun.awt.Win32FontManager

 

Bitbucket version: 4.9.1

Java version: 1.8.0_111

 

Any information much appreciated.

 

2 answers

0 vote

We've just tried Captchas in 4.9.1 on Windows, and there was no issues as far as we could tell. 

I'd recommend you open a support case at https://support.atlassian.com to allow our support engineers to troubleshoot your problem.

 

Cheers, 

Felix

Divayth, did you ever find a cause or fix for this issue? I have a client that is having the same problem.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,747 views 1 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you