Jira Issues Calendar Dashboard gadget throws NoSuchMethodError

Alexandra Atanasiu
Contributor
October 29, 2024

Hi,

I am using the Jira Issues Calendar gadget in a dashboard and no mater which filter I use, I get "An internal server error occurred when requesting resource" upon saving it (Jira Data Center v 9.12.14).

By checking the Jira logs, there is a NoSuchMethodError error logged (see below).

 

If I check the ConstantsManager class in the Jira API, the getPriorityObjects() method appears to be deprecated in 7.2.0 so I would assume it has been removed in the meantime, given the error. 

Is there an alternative to the Jira Issues Calendar dashboard gadget which we can use instead? Or am I missing something else?

/rest/calendar-plugin/1.0/calendar/htmlcalendar.html [c.a.p.r.c.error.jersey.ThrowableExceptionMapper] Uncaught exception thrown by REST service: 'java.util.Collection com.atlassian.jira.config.ConstantsManager.getPriorityObjects()'
java.lang.NoSuchMethodError: 'java.util.Collection com.atlassian.jira.config.ConstantsManager.getPriorityObjects()'
  at com.atlassian.jira.ext.calendar.HtmlCalendar.getBasicParameters(HtmlCalendar.java:104)
  at com.atlassian.jira.ext.calendar.HtmlCalendar.getParameters(HtmlCalendar.java:88)
  at com.atlassian.jira.ext.calendar.rest.CalendarResource.getCalendar(CalendarResource.java:205)

1 answer

1 accepted

3 votes
Answer accepted
Dick
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 29, 2024

Hi @Alexandra Atanasiu 

It seems that Atlassian has put the calendar into a plugin:
https://marketplace.atlassian.com/apps/293/jira-calendar-plugin?tab=overview&hosting=datacenter 

 

Hope that this helps,

Dick

By voting for helpful posts and marking answers to your question, you're helping people with similar questions find a solution more quickly. Sharing is caring applies to knowledge as well :)

Alexandra Atanasiu
Contributor
October 30, 2024

Thank you, @Dick!

Indeed, it seems that we had the Jira Calendar Plugin installed but it was at v.6.1.2, incompatible with Data Center. Couldn't upgrade it to from UPM so we manually replaced the .jar plugin file with the one for v.6.1.3 and it is now working as expected.

Like Dick likes this
Dick
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 4, 2024

You're welcome @Alexandra Atanasiu 

Please know that it is possible to check plug-in compatibility prior to updating Jira. 

Dick

Alexandra Atanasiu
Contributor
November 4, 2024

Hi @Dick, thanks for mentioning it.

We are currently in development, testing a future Jira update so we only verified the "main" plugins upfront and are fixing on the fly, directly in the testing environment, the other ones :-).

Like Dick likes this

Suggest an answer

Log in or Sign up to answer