java.lang.NullPointerException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Take a look at this blog post on how to set up Grid2 https://goo.gl/rxzbE6. A user related (in the email group on the source) that using older selenium libs solves this exception.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • 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.
    via by Rafael Sperafico [Atlassian],
  • 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.
    via by Rafael Sperafico,
  • {noformat} 2016-01-25 15:08:10,306 WARN [13-BAM::Default Agent::Agent:pool-28-thread-1] [BuildAgentControllerImpl] Error occurred while executing the build for Interaction Check Service 2.0 - Master - Build, test, analyze #191 (ICS2-MAS-JOB1-191) java.lang.NullPointerException: Log entry can't be null at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:226) at com.atlassian.bamboo.build.SimpleLogEntry.<init>(SimpleLogEntry.java:36) at com.atlassian.bamboo.build.SimpleLogEntry.<init>(SimpleLogEntry.java:30) at com.atlassian.bamboo.build.logger.AbstractBuildLogger.addBuildLogEntry(AbstractBuildLogger.java:163) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:138) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:130) at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:215) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:129) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:136) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) at java.lang.Thread.run(Thread.java:744) {noformat}
    via by Krystian Brazulewicz [Atlassian],
  • {noformat} 2016-01-25 15:08:10,306 WARN [13-BAM::Default Agent::Agent:pool-28-thread-1] [BuildAgentControllerImpl] Error occurred while executing the build for Interaction Check Service 2.0 - Master - Build, test, analyze #191 (ICS2-MAS-JOB1-191) java.lang.NullPointerException: Log entry can't be null at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:226) at com.atlassian.bamboo.build.SimpleLogEntry.<init>(SimpleLogEntry.java:36) at com.atlassian.bamboo.build.SimpleLogEntry.<init>(SimpleLogEntry.java:30) at com.atlassian.bamboo.build.logger.AbstractBuildLogger.addBuildLogEntry(AbstractBuildLogger.java:163) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:138) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:130) at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:215) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:129) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:136) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) at java.lang.Thread.run(Thread.java:744) {noformat}
    via by Krystian Brazulewicz [Atlassian],
  • GitHub comment 86#65794283
    via GitHub by olisun
    ,
  • Bamboo Nunit test exception
    via Stack Overflow by bobpat
    ,
    • 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) at com.atlassian.bamboo.task.TaskExecutorImpl$3.call(TaskExecutorImpl.java:281) at com.atlassian.bamboo.task.TaskExecutorImpl$3.call(TaskExecutorImpl.java:278) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:198) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:278) at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:105) at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:188) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:112) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:110) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) at java.lang.Thread.run(Thread.java:745)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    83 more bugmates