Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-18637

Java method com.atlassian.bamboo.webwork.StarterAction.isFavourite throws an exception when opening myBamboo.action page

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 5.15.7
    • None
    • None
    • None

    Description

      Problem

      A stack trace similar to the following is thrown in the logs every time the page <Bamboo_URL>/myBamboo.action is loaded

      2017-08-23 13:36:06,400 INFO [http-nio-8086-exec-7] [AccessLogFilter] enguser GET <Bamboo_URL>/myBamboo.action 586054kb
      2017-08-23 13:36:06,432 ERROR [http-nio-8086-exec-7] [runtime] Error executing FreeMarker template
      FreeMarker template error:
      Java method "com.atlassian.bamboo.webwork.StarterAction.isFavourite(com.atlassian.bamboo.plan.cache.ImmutableChain)" threw an exception when invoked on com.atlassian.bamboo.brokenbuildtracker.ui.ViewResponsibilitiesForUser object "com.atlassian.bamboo.brokenbuildtracker.ui.ViewResponsibilitiesForUser@3507a4b2"; see cause exception in the Java stack trace.
      
      ----
      FTL stack trace ("~" means nesting-related):
              - Failed at: #assign isFavourite = action.isFavour...  [in template "lib/components.ftl" in macro "favouriteIcon" at line 160, column 13]
              - Reached through: @compress single_line=true  [in template "lib/components.ftl" in macro "favouriteIcon" at line 158, column 9]
              - Reached through: @cp.favouriteIcon plan=build operatio...  [in template "fragments/plan/displayBuildPlansList.ftl" in macro "displayPlanListOperations" at line 102, column 1]
              - Reached through: @displayPlanListOperations id, build,...  [in template "fragments/plan/displayBuildPlansList.ftl" in macro "displayBuildPlansList" at line 77, column 13]
              - Reached through: @planList.displayBuildPlansList id="f...  [in template "panels/myResponsibilities.ftl" at line 4, column 5]
      ----
      
      Java stack trace (for programmers):
      ----
      freemarker.core._TemplateModelException: [... Exception message was already printed; see it above ...]
              at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:285)
              at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:252)
              at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:74)
              at freemarker.core.MethodCall._eval(MethodCall.java:76)
              at freemarker.core.Expression.eval(Expression.java:81)
              at freemarker.core.Assignment.accept(Assignment.java:134)
              at freemarker.core.Environment.visit(Environment.java:362)
              at freemarker.core.Environment.visitAndTransform(Environment.java:460)
              at freemarker.core.UnifiedCall.accept(UnifiedCall.java:129)
              at freemarker.core.Environment.visit(Environment.java:326)
              at freemarker.core.Environment.visit(Environment.java:368)
              at freemarker.core.Environment.invoke(Environment.java:714)
              at freemarker.core.UnifiedCall.accept(UnifiedCall.java:86)
              at freemarker.core.Environment.visit(Environment.java:362)
              at freemarker.core.Environment.invoke(Environment.java:714)
              at freemarker.core.UnifiedCall.accept(UnifiedCall.java:86)
              at freemarker.core.Environment.visit(Environment.java:362)
              at freemarker.core.IteratorBlock$IterationContext.executeNestedContent(IteratorBlock.java:239)
              at freemarker.core.IteratorBlock$IterationContext.accept(IteratorBlock.java:200)
              at freemarker.core.Environment.visitIteratorBlock(Environment.java:595)
              at freemarker.core.IteratorBlock.acceptWithResult(IteratorBlock.java:81)
              at freemarker.core.IteratorBlock.accept(IteratorBlock.java:67)
              at freemarker.core.Environment.visit(Environment.java:362)
              at freemarker.core.Environment.invoke(Environment.java:714)
              at freemarker.core.UnifiedCall.accept(UnifiedCall.java:86)
              at freemarker.core.Environment.visit(Environment.java:326)
              at freemarker.core.Environment.visit(Environment.java:332)
              at freemarker.core.Environment.visit(Environment.java:332)
              at freemarker.core.Environment.process(Environment.java:305)
              at freemarker.template.Template.process(Template.java:384)
              at org.apache.struts2.views.freemarker.FreemarkerResult.doExecute(FreemarkerResult.java:233)
              at org.apache.struts2.result.StrutsResultSupport.execute(StrutsResultSupport.java:208)
      

      Steps to Reproduce

      1. Create a broken build result
      2. Assign the resposibility to the logged user
      3. Access the page <Bamboo_URL>/myBamboo.action

      Attachments

        Activity

          People

            mgardias Marcin Gardias
            mgardias Marcin Gardias
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: