Adding keystore file path breaks JEMH

Hi,

To add app link to JIRA, I need to pass following ARGS to Tomcat:

-Djavax.net.ssl.trustStore=/usr/java/default/jre/lib/security/cacerts -Djavax.net.ssl.trustStorePassword=changeit

However, above link breaks JEMH so comment can't update an issue's status.

Here is the error logged:

2013-02-05 04:54:01,635 TP-Processor10 ERROR hege 294x2965x1 633jmn
50.193.217.217
/secure/com.metainf.jira.plugin.emailissue.action.EmailThisIssue.jspa
[atlassian.event.internal.EventPublisherImpl] There was an exception thrown
trying to dispatch event 'com.atlassian.jira.event.issue.IssueEvent@7d33e982
[issue=SUPPORT-47766,comment=com.atlassian.jira.issue.comments.CommentImpl@4cf0c128,worklog=<null>,changelog=<null>,eventTypeId=6,sendMail=true,params={eventsource=action, baseurl=https://jira.schrodinger.com},subtasksUpdated=false]' from the
invoker
'com.atlassian.event.internal.SingleParameterMethodListenerInvoker@503ca641
'.
java.lang.RuntimeException: java.lang.RuntimeException: Unexpected error:
java.security.InvalidAlgorithmParameterException: the trustAnchors
parameter must be non-empty

Where does JEMH process retrieve SSL cert from? Where is the default SSL keystore for JIRA?

Thanks,

Simon

2 answers

Simon, please review the many questions I have already answered, if they are correct, please mark them as such. Leaving questions open means Im usure if my previous advice helped or not and whether or not you still have a problem?

As an aside, what makes you think JEMH has problem? the above stack seems to refer to JETI?

Regarding the underlying question though, it would appear that the JVM you are using has a problem with its cacerts.

You need to diagnose your actual JRE's ability to open an SSL connection, see: https://confluence.atlassian.com/display/JIRA/Connecting+to+SSL+services#ConnectingtoSSLservices-UsingJava

Also. for background: http://stackoverflow.com/questions/4764611/java-security-invalidalgorithmparameterexception-the-trustanchors-parameter-mus

Check your application environment reports the cacerts file you expect, check that user of the java process has access to the file. More feedback required.

Thanks. My question is answered.

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
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

197 views 1 18
Join discussion

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