Activity Stream Throws 'getOrphanedTrustCertificates'
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
JIRA has an application link to another application configured and the Activity Stream does not work.
The following stack trace can be found in the atlassian-jira.log
:
1
com.atlassian.templaterenderer.RenderingException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getOrphanedTrustCertificates' in class com.atlassian.applinks.ui.velocity.ListApplicationLinksContext threw exception java.lang.NullPointerException at com/atlassian/applinks/ui/admin/list_application_links.vm[line 80, column 20]
Cause
When the Application Link was deleted, the database was not updated correctly, leaving the Application Link configuration in an inconsistent state.
Resolution
Always back up your data before making any database modifications. If possible, test any alter, insert, update, or delete SQL commands on a staging server first.
Shutdown JIRA.
Check if there are entries for application link in the global level:
1
select * from propertyentry where property_key like 'applinks.global%';
If the query above return any entries, run the following SQL update:
1
UPDATE propertystring SET propertyvalue = '#java.util.List' where id in (select id from propertyentry where property_key like 'applinks.global%');
Restart JIRA.
Check if the Activity Stream works.
Create a new Application Link.
Was this helpful?