java.lang.NullPointerException: Log entry can't be null

Atlassian JIRA | Krystian Brazulewicz [Atlassian] | 10 months ago
  1. 0

    {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}

    Atlassian JIRA | 10 months ago | Krystian Brazulewicz [Atlassian]
    java.lang.NullPointerException: Log entry can't be null
  2. 0

    {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}

    Atlassian JIRA | 10 months ago | Krystian Brazulewicz [Atlassian]
    java.lang.NullPointerException: Log entry can't be null
  3. 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 | 1 year ago | Rafael Sperafico [Atlassian]
    java.lang.NullPointerException: Capability
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 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 | 1 year ago | Rafael Sperafico [Atlassian]
    java.lang.NullPointerException: Capability
  6. 0

    Error with nunit task on bamboo (try to run it from nuget packages)

    Stack Overflow | 2 months ago | Tatyana Durova
    java.lang.NullPointerException: Capability

  1. musketyr 2 times, last 3 months ago
  2. Nikolay Rybak 6 times, last 3 months ago
  3. Stefan Braune 1 times, last 5 months ago
  4. adawolfs 39 times, last 4 months ago
  5. brunosatriani 8 times, last 5 months ago
9 more registered users
46 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

    Log entry can't be null

    at com.google.common.base.Preconditions.checkNotNull()
  2. Guava
    Preconditions.checkNotNull
    1. com.google.common.base.Preconditions.checkNotNull(Preconditions.java:226)
    1 frame
  3. com.atlassian.bamboo
    ImpersonationHelper$1.run
    1. com.atlassian.bamboo.build.SimpleLogEntry.<init>(SimpleLogEntry.java:36)
    2. com.atlassian.bamboo.build.SimpleLogEntry.<init>(SimpleLogEntry.java:30)
    3. com.atlassian.bamboo.build.logger.AbstractBuildLogger.addBuildLogEntry(AbstractBuildLogger.java:163)
    4. com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:138)
    5. com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:130)
    6. com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:215)
    7. com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:129)
    8. com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:136)
    9. com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
    10. com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
    11. com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
    12. com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
    12 frames
  4. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:744)
    1 frame