java.lang.NullPointerException: Capability

Atlassian JIRA | Rafael Sperafico | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Agents have the option to have their own capabilities set up and those to be selected by a task in a later stage. However, even if the agent is not available (offline, for instance) Bamboo continues on displaying the capability to be selected in the task configuration, in which can cause the following error: {noformat} # log extracted from "catalina.out" # 2015-09-21 11:24:16,194 ERROR [11-BAM::[AGENT-NAME]::Agent:pool-26-thread-1] [TaskExecutorImpl] Error occurred while running Task 'My Microsoft build task' of type com.atlassian.bamboo.plugin.dotnet:msbuild. java.lang.NullPointerException: Capability at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204) at com.atlassian.bamboo.plugin.dotnet.msbuild.MsBuildConfig.build(MsBuildConfig.java:69) at com.atlassian.bamboo.plugin.dotnet.msbuild.MsBuildTaskType.execute(MsBuildTaskType.java:75) ... {noformat} {noformat} # log extracted from "build log" # simple 21-Sep-2015 11:23:14 Build [PROJECT] - [PLAN] - [JOB] #1 (PROJ-PLAN-JOB1-1) started building on agent [AGENT] ... simple 21-Sep-2015 11:24:16 Starting task 'My Microsoft build task' of type 'com.atlassian.bamboo.plugin.dotnet:msbuild' error 21-Sep-2015 11:24:16 Error occurred while running Task 'My Microsoft build task' of type com.atlassian.bamboo.plugin.dotnet:msbuild. error 21-Sep-2015 11:24:16 java.lang.NullPointerException: Capability error 21-Sep-2015 11:24:16 at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204) error 21-Sep-2015 11:24:16 at com.atlassian.bamboo.plugin.dotnet.msbuild.MsBuildConfig.build(MsBuildConfig.java:69) error 21-Sep-2015 11:24:16 at com.atlassian.bamboo.plugin.dotnet.msbuild.MsBuildTaskType.execute(MsBuildTaskType.java:75) error 21-Sep-2015 11:24:16 at com.atlassian.bamboo.task.TaskExecutorImpl$3.call(TaskExecutorImpl.java:281) error 21-Sep-2015 11:24:16 at com.atlassian.bamboo.task.TaskExecutorImpl$3.call(TaskExecutorImpl.java:278) error 21-Sep-2015 11:24:16 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:198) error 21-Sep-2015 11:24:16 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:278) error 21-Sep-2015 11:24:16 at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:105) error 21-Sep-2015 11:24:16 at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75) error 21-Sep-2015 11:24:16 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:188) error 21-Sep-2015 11:24:16 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:112) error 21-Sep-2015 11:24:16 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:110) error 21-Sep-2015 11:24:16 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) error 21-Sep-2015 11:24:16 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) error 21-Sep-2015 11:24:16 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) error 21-Sep-2015 11:24:16 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) error 21-Sep-2015 11:24:16 at java.lang.Thread.run(Thread.java:745) {noformat} It would be interesting on having: * Bamboo filtering capabilities that can be used at the moment plan configuration is being set up or; * a UI notification under the "{{Agents with capabilities}}" and/or "{{Job with requirements}}" warning that the particular JOB will not run as agents do not match requirements.

    Atlassian JIRA | 2 years ago | Rafael Sperafico [Atlassian]
    java.lang.NullPointerException: Capability
  2. 0

    Agents have the option to have their own capabilities set up and those to be selected by a task in a later stage. However, even if the agent is not available (offline, for instance) Bamboo continues on displaying the capability to be selected in the task configuration, in which can cause the following error: {noformat} # log extracted from "catalina.out" # 2015-09-21 11:24:16,194 ERROR [11-BAM::[AGENT-NAME]::Agent:pool-26-thread-1] [TaskExecutorImpl] Error occurred while running Task 'My Microsoft build task' of type com.atlassian.bamboo.plugin.dotnet:msbuild. java.lang.NullPointerException: Capability at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204) at com.atlassian.bamboo.plugin.dotnet.msbuild.MsBuildConfig.build(MsBuildConfig.java:69) at com.atlassian.bamboo.plugin.dotnet.msbuild.MsBuildTaskType.execute(MsBuildTaskType.java:75) ... {noformat} {noformat} # log extracted from "build log" # simple 21-Sep-2015 11:23:14 Build [PROJECT] - [PLAN] - [JOB] #1 (PROJ-PLAN-JOB1-1) started building on agent [AGENT] ... simple 21-Sep-2015 11:24:16 Starting task 'My Microsoft build task' of type 'com.atlassian.bamboo.plugin.dotnet:msbuild' error 21-Sep-2015 11:24:16 Error occurred while running Task 'My Microsoft build task' of type com.atlassian.bamboo.plugin.dotnet:msbuild. error 21-Sep-2015 11:24:16 java.lang.NullPointerException: Capability error 21-Sep-2015 11:24:16 at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204) error 21-Sep-2015 11:24:16 at com.atlassian.bamboo.plugin.dotnet.msbuild.MsBuildConfig.build(MsBuildConfig.java:69) error 21-Sep-2015 11:24:16 at com.atlassian.bamboo.plugin.dotnet.msbuild.MsBuildTaskType.execute(MsBuildTaskType.java:75) error 21-Sep-2015 11:24:16 at com.atlassian.bamboo.task.TaskExecutorImpl$3.call(TaskExecutorImpl.java:281) error 21-Sep-2015 11:24:16 at com.atlassian.bamboo.task.TaskExecutorImpl$3.call(TaskExecutorImpl.java:278) error 21-Sep-2015 11:24:16 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:198) error 21-Sep-2015 11:24:16 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:278) error 21-Sep-2015 11:24:16 at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:105) error 21-Sep-2015 11:24:16 at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75) error 21-Sep-2015 11:24:16 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:188) error 21-Sep-2015 11:24:16 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:112) error 21-Sep-2015 11:24:16 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:110) error 21-Sep-2015 11:24:16 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) error 21-Sep-2015 11:24:16 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) error 21-Sep-2015 11:24:16 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) error 21-Sep-2015 11:24:16 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) error 21-Sep-2015 11:24:16 at java.lang.Thread.run(Thread.java:745) {noformat} It would be interesting on having: * Bamboo filtering capabilities that can be used at the moment plan configuration is being set up or; * a UI notification under the "{{Agents with capabilities}}" and/or "{{Job with requirements}}" warning that the particular JOB will not run as agents do not match requirements.

    Atlassian JIRA | 2 years ago | Rafael Sperafico
    java.lang.NullPointerException: Capability
  3. 0

    Capability detection on remote agents.

    GitHub | 2 years ago | olisun
    java.lang.NullPointerException: Capability
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    bamboo 5.7.0 compatibilty

    GitHub | 2 years ago | jUsjDnr9vNok4kelSGyl
    java.lang.NullPointerException: Capability
  6. 0

    GitHub comment 86#65794283

    GitHub | 2 years ago | olisun
    java.lang.NullPointerException: Capability

  1. Andreas Häber 2 times, last 5 days ago
  2. xiaokangwang 1 times, last 1 month ago
  3. stigkj 2 times, last 2 months ago
  4. fervidnerd 1 times, last 3 months ago
  5. batwalrus76 3 times, last 4 months ago
14 more registered users
48 unregistered visitors
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.NullPointerException

    Capability

    at com.google.common.base.Preconditions.checkNotNull()
  2. Guava
    Preconditions.checkNotNull
    1. com.google.common.base.Preconditions.checkNotNull(Preconditions.java:204)
    1 frame
  3. com.atlassian.bamboo
    MsBuildTaskType.execute
    1. com.atlassian.bamboo.plugin.dotnet.msbuild.MsBuildConfig.build(MsBuildConfig.java:69)
    2. com.atlassian.bamboo.plugin.dotnet.msbuild.MsBuildTaskType.execute(MsBuildTaskType.java:75)
    2 frames