java.lang.NoSuchMethodError: com.atlassian.jira.security.JiraAuthenticationContext.getUser()Lcom/atlassian/crowd/embedded/api/User;

Atlassian JIRA | Amanda Wei [Atlassian] | 4 years ago
  1. 0

    JIRA not starting after upgrade to 7 - Atlassian Answers

    atlassian.com | 7 months ago
    java.lang.RuntimeException: javax.servlet.ServletException: java.lang.NoSuchMethodError: com.atlassian.jira.security.JiraAuthenticationContext.getLoggedInUser()Lcom/atlassian/crowd/embedded/api/User;
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    I am evaluating this software, so I don't have a SEN. I wanted to prevent a transition if 'Time Spent' was not entered. I've attached a screenshot of that. When the validation is fired, a Jira debug backtrace is dumped. According to various docs on this issue - this is from an API change in 7.0.0 of Jira Software. Here is the relevant parts of the backtrace: java.lang.NoSuchMethodError: com.atlassian.jira.security.JiraAuthenticationContext.getLoggedInUser()Lcom/atlassian/crowd/embedded/api/User; java.lang.NoSuchMethodError: com.atlassian.jira.security.JiraAuthenticationContext.getLoggedInUser()Lcom/atlassian/crowd/embedded/api/User; at com.innovalog.jmwe.plugins.validators.FieldRequiredValidator.validate(FieldRequiredValidator.java:91) [?:?] at com.innovalog.jmwe.plugins.validators.GenericValidator.validate(GenericValidator.java:94) [?:?] at com.atlassian.jira.workflow.SkippableValidator.validate(SkippableValidator.java:53) [SkippableValidator.class:?] at com.opensymphony.workflow.AbstractWorkflow.verifyInputs(AbstractWorkflow.java:1512) [osworkflow-2.8.1.jar:2.8.1] at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1203) [osworkflow-2.8.1.jar:2.8.1] at com.opensymphony.workflow.AbstractWorkflow.doAction(AbstractWorkflow.java:564) [osworkflow-2.8.1.jar:2.8.1] at com.atlassian.jira.workflow.OSWorkflowManager.doWorkflowActionInsideTxn(OSWorkflowManager.java:991) [OSWorkflowManager.class:?] at com.atlassian.jira.workflow.OSWorkflowManager.doWorkflowAction(OSWorkflowManager.java:943) [OSWorkflowManager.class:?]

    JIRA | 1 year ago | Patrick O'Lone
    java.lang.NoSuchMethodError: com.atlassian.jira.security.JiraAuthenticationContext.getLoggedInUser()Lcom/atlassian/crowd/embedded/api/User;
  4. 0

    h3. Summary When upgrading JIRA to version 7.0, if the older instance had *JIRA Calendar 2.1.11* installed, accessing the dashboard and multiple other pages results in 500 error. !500_error_jiracal.png|thumbnail! The below exception may appear in the {{atlassian-jira.log}}. {noformat} 2015-10-07 21:12:06,293 http-nio-8080-exec-10 ERROR admin 1272x26064x1 1pigghd 192.168.1.100 /secure/Dashboard.jspa [o.a.c.c.C.[.[.[.[jsp.decorators.general_002dhead_002dpre_jsp]] Servlet.service() for servlet jsp.decorators.general_002dhead_002dpre_jsp threw exception java.lang.NoSuchMethodError: com.atlassian.jira.security.JiraAuthenticationContext.getLoggedInUser()Lcom/atlassian/crowd/embedded/api/User; at com.atlassian.jira.ext.calendar.data.TipDataProvider.suppressTip(TipDataProvider.java:49) at com.atlassian.jira.ext.calendar.data.TipDataProvider.access$000(TipDataProvider.java:16) at com.atlassian.jira.ext.calendar.data.TipDataProvider$1.write(TipDataProvider.java:37) at com.atlassian.plugin.webresource.data.DataTagWriter.write(DataTagWriter.java:48) at com.atlassian.plugin.webresource.data.DataTagWriter.write(DataTagWriter.java:33) at com.atlassian.plugin.webresource.assembler.DefaultWebResourceSet.writeHtmlTags(DefaultWebResourceSet.java:82) at com.atlassian.plugin.webresource.assembler.DefaultWebResourceSet.writeHtmlTags(DefaultWebResourceSet.java:69) at com.atlassian.jira.plugin.navigation.HeaderFooterRendering.includeResources(HeaderFooterRendering.java:101) at jsp.decorators.general_002dhead_002dpre_jsp._jspService(general_002dhead_002dpre_jsp.java:122) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) ... 25 filtered at com.atlassian.jira.web.pagebuilder.AbstractJspDecorator.writeTemplate(AbstractJspDecorator.java:111) at com.atlassian.jira.web.pagebuilder.AbstractJspDecorator.writePreHead(AbstractJspDecorator.java:56) at com.atlassian.jira.web.pagebuilder.GeneralJspDecorator.writePreHead(GeneralJspDecorator.java:34) at com.atlassian.jira.web.pagebuilder.DefaultPageBuilder.flush(DefaultPageBuilder.java:87) at com.atlassian.jira.web.action.Dashboard.doExecute(Dashboard.java:195) ... 1 filtered at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:67) ... 7 filtered at javax.servlet.http.HttpServlet.service(HttpServlet.java:725) ... 50 filtered at com.atlassian.greenhopper.jira.filters.ClassicBoardRouter.doFilter(ClassicBoardRouter.java:59) ... 159 filtered at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) {noformat} h3. Expected behavior JIRA should load all pages correctly. h3. Actual behavior Due to something broken in JIRA Calendar's methods, loading pages fail with a {{NoSuchMethodError}} thrown at the logs and a 500 error shown on-screen. h3. Workaround h5. Option #1 # Go to the below address; {noformat} http://<jira-address>/plugins/servlet/upm {noformat} # Update the *JIRA Calendar Plugin* to the latest version available; h5. Option #2 # Go to the below address; {noformat} http://<jira-address>/plugins/servlet/upm {noformat} # Disable the *JIRA Calendar Plugin*;

    Atlassian JIRA | 1 year ago | Pavel Batanov
    java.lang.NoSuchMethodError: com.atlassian.jira.security.JiraAuthenticationContext.getLoggedInUser()Lcom/atlassian/crowd/embedded/api/User;

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      com.atlassian.jira.security.JiraAuthenticationContext.getUser()Lcom/atlassian/crowd/embedded/api/User;

      at com.atlassian.jira.ext.charting.gadgets.ProjectOrFilterIdBasedChartResource.validateProjectOrFilterId()
    2. com.atlassian.jira
      WorkloadPieChartResource.validate
      1. com.atlassian.jira.ext.charting.gadgets.ProjectOrFilterIdBasedChartResource.validateProjectOrFilterId(ProjectOrFilterIdBasedChartResource.java:76)
      2. com.atlassian.jira.ext.charting.gadgets.WorkloadPieChartResource.validate(WorkloadPieChartResource.java:188)
      2 frames
    3. Java RT
      NativeMethodAccessorImpl.invoke0
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      1 frame