Skip to content

[JENKINS-75298] Error at the start and can't build #660

@jenkins-infra-bot

Description

@jenkins-infra-bot

there is an error at the start of jenkins and when i try to build i have an error that probably is for the same problem.

This is at the start of jenkins
feb 18, 2025 2:39:58 P. M. ADVERTENCIA hudson.plugins.gradle.injection.DevelocityComputerListener onOnline
Invocation of onOnline failed for java.lang.NullPointerException: Cannot invoke "java.util.Map.size()" because "map" is null at java.base/java.util.TreeMap.putAll(TreeMap.java:314) at hudson.slaves.EnvironmentVariablesNodeProperty.buildEnvVars(EnvironmentVariablesNodeProperty.java:87) at hudson.model.Computer.buildEnvironment(Computer.java:1190) at PluginClassLoader for gradle//hudson.plugins.gradle.injection.DevelocityComputerListener.onOnline(DevelocityComputerListener.java:58) at jenkins.model.Jenkins.(Jenkins.java:1017) at hudson.model.Hudson.(Hudson.java:102) at hudson.model.Hudson.(Hudson.java:87) at hudson.WebAppMain$3.run(WebAppMain.java:249)

This is when i try to build a project
[EnvInject] - Loading node environment variables.
FATAL: Cannot invoke "java.util.Map.size()" because "m" is null
java.lang.NullPointerException: Cannot invoke "java.util.Map.size()" because "m" is null
at java.base/java.util.HashMap.putMapEntries(HashMap.java:495)
at java.base/java.util.HashMap.putAll(HashMap.java:783)
at PluginClassLoader for envinject//org.jenkinsci.plugins.envinject.service.EnvironmentVariablesNodeLoader.gatherEnvVarsForNode(EnvironmentVariablesNodeLoader.java:68)
at PluginClassLoader for envinject//org.jenkinsci.plugins.envinject.EnvInjectListener.loadEnvironmentVariablesNode(EnvInjectListener.java:78)
at PluginClassLoader for envinject//org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironment(EnvInjectListener.java:42)
at hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:617)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:486)
at hudson.model.Run.execute(Run.java:1833)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44)
at hudson.model.ResourceController.execute(ResourceController.java:101)
at hudson.model.Executor.run(Executor.java:446)


Originally reported by jnavarrete, imported from: Error at the start and can't build
  • assignee: welandaz
  • status: In Progress
  • priority: Major
  • component(s): envinject-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 20251223-165436
Raw content of original issue

there is an error at the start of jenkins and when i try to build i have an error that probably is for the same problem.

This is at the start of jenkins feb 18, 2025 2:39:58 P. M. ADVERTENCIA hudson.plugins.gradle.injection.DevelocityComputerListener onOnline Invocation of onOnline failed for java.lang.NullPointerException: Cannot invoke "java.util.Map.size()" because "map" is null at java.base/java.util.TreeMap.putAll(TreeMap.java:314) at hudson.slaves.EnvironmentVariablesNodeProperty.buildEnvVars(EnvironmentVariablesNodeProperty.java:87) at hudson.model.Computer.buildEnvironment(Computer.java:1190) at PluginClassLoader for gradle//hudson.plugins.gradle.injection.DevelocityComputerListener.onOnline(DevelocityComputerListener.java:58) at jenkins.model.Jenkins.<init>(Jenkins.java:1017) at hudson.model.Hudson.<init>(Hudson.java:102) at hudson.model.Hudson.<init>(Hudson.java:87) at hudson.WebAppMain$3.run(WebAppMain.java:249)

This is when i try to build a project [EnvInject] - Loading node environment variables. FATAL: Cannot invoke "java.util.Map.size()" because "m" is null java.lang.NullPointerException: Cannot invoke "java.util.Map.size()" because "m" is null at java.base/java.util.HashMap.putMapEntries(HashMap.java:495) at java.base/java.util.HashMap.putAll(HashMap.java:783) at PluginClassLoader for envinject//org.jenkinsci.plugins.envinject.service.EnvironmentVariablesNodeLoader.gatherEnvVarsForNode(EnvironmentVariablesNodeLoader.java:68) at PluginClassLoader for envinject//org.jenkinsci.plugins.envinject.EnvInjectListener.loadEnvironmentVariablesNode(EnvInjectListener.java:78) at PluginClassLoader for envinject//org.jenkinsci.plugins.envinject.EnvInjectListener.setUpEnvironment(EnvInjectListener.java:42) at hudson.model.AbstractBuild$AbstractBuildExecution.createLauncher(AbstractBuild.java:617) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:486) at hudson.model.Run.execute(Run.java:1833) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:44) at hudson.model.ResourceController.execute(ResourceController.java:101) at hudson.model.Executor.run(Executor.java:446)

  • environment: linux redhat 9, openjdk 17, jenkins 2.492.1

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions