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

Build activity broken due to NPE in CurrentlyBuildingJsonDecorator

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 5.8, 5.8-m4
    • 5.8-m2
    • None

    Description

      When opening the build activity on JBAC, the page doesn't load any content

      Looking a bit further, the request for https://jira-bamboo.internal.atlassian.com/build/admin/ajax/getDashboardSummary.action returns a HTTP status code 500.

      The following exception can be seen in the server log

      bamboo-server.log
      2015-01-16 02:36:41,792 INFO [http-bio-8085-exec-200] [AccessLogFilter] xxx GET https://jira-bamboo.internal.atlassian.com/build/admin/ajax/getDashboardSummary.action?_=1421375706593 1165166kb
      2015-01-16 02:36:41,795 ERROR [http-bio-8085-exec-200] [ExceptionMappingInterceptor] null
      Caught an Ognl exception while getting property jsonObject - Class: ognl.OgnlRuntime
      File: OgnlRuntime.java
      Method: getMethodValue
      Line: 1456 - ognl/OgnlRuntime.java:1456:-1
      	at com.opensymphony.xwork2.ognl.OgnlValueStack.handleOtherException(OgnlValueStack.java:264)
      	at com.opensymphony.xwork2.ognl.OgnlValueStack.findValue(OgnlValueStack.java:241)
      	at com.opensymphony.webwork.dispatcher.json.JSONResult.getJSONObject(JSONResult.java:172)
      	at com.opensymphony.webwork.dispatcher.json.JSONResult.execute(JSONResult.java:137)
      	at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:371)
      	at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:275)
      	at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:168)
      	at com.atlassian.bamboo.ww2.interceptors.BambooWorkflowInterceptor.validateWorkflow(BambooWorkflowInterceptor.java:54)
      ...
      	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1008)
      	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
      	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: Caught an Ognl exception while getting property jsonObject - Class: ognl.OgnlRuntime
      File: OgnlRuntime.java
      Method: getMethodValue
      Line: 1456 - ognl/OgnlRuntime.java:1456:-1
      	at com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.getProperty(CompoundRootAccessor.java:143)
      	at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:2317)
      	at ognl.ASTProperty.getValueBody(ASTProperty.java:114)
      	at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)
      	at ognl.SimpleNode.getValue(SimpleNode.java:258)
      	at ognl.Ognl.getValue(Ognl.java:494)
      	at ognl.Ognl.getValue(Ognl.java:458)
      	at com.opensymphony.xwork2.ognl.OgnlUtil.getValue(OgnlUtil.java:251)
      	at com.opensymphony.xwork2.ognl.OgnlValueStack.getValueUsingOgnl(OgnlValueStack.java:292)
      	at com.opensymphony.xwork2.ognl.OgnlValueStack.tryFindValue(OgnlValueStack.java:275)
      	at com.opensymphony.xwork2.ognl.OgnlValueStack.tryFindValueWhenExpressionIsNotNull(OgnlValueStack.java:257)
      	at com.opensymphony.xwork2.ognl.OgnlValueStack.findValue(OgnlValueStack.java:237)
      	... 243 more
      Caused by: ognl.OgnlException: jsonObject [java.lang.NullPointerException]
      	at ognl.OgnlRuntime.getMethodValue(OgnlRuntime.java:1456)
      	at ognl.ObjectPropertyAccessor.getPossibleProperty(ObjectPropertyAccessor.java:60)
      	at ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:147)
      	at com.opensymphony.xwork2.ognl.accessor.ObjectAccessor.getProperty(ObjectAccessor.java:17)
      	at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:2317)
      	at com.opensymphony.xwork2.ognl.accessor.CompoundRootAccessor.getProperty(CompoundRootAccessor.java:138)
      	... 254 more
      Caused by: java.lang.NullPointerException
      	at com.atlassian.bamboo.ww2.actions.build.CurrentlyBuildingJsonDecorator.<init>(CurrentlyBuildingJsonDecorator.java:44)
      	at com.atlassian.bamboo.ww2.actions.build.BuildJsonProviderAction.getJsonObject(BuildJsonProviderAction.java:170)
      	at com.atlassian.bamboo.ww2.actions.build.DashboardSummaryAction.getJsonObject(DashboardSummaryAction.java:29)
      	at sun.reflect.GeneratedMethodAccessor5283.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:891)
      	at ognl.OgnlRuntime.getMethodValue(OgnlRuntime.java:1454)
      	... 259 more
      

      Attachments

        1. exception.log
          54 kB
        2. screenshot-1.png
          screenshot-1.png
          70 kB

        Activity

          People

            Unassigned Unassigned
            mmeinhold Martin Meinhold
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: