java.lang.IllegalArgumentException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Jenkins complains of null M2_HOME
    via Stack Overflow by bmargulies
    ,
  • UPDATE: I can circumvent this issue by using /job/JOBNAME/buildWithParameters instead. Deprioritized. When I try to specify the label parameter in launching my jenkins job like this: curl --silent --show-error --data 'json={"parameter":[{"name":"NODE_LABEL","value":"LABEL"}]&Submit=Build' http://jenkins:8888/job/JOBNAME/build It seems to ignore it and I end up with an error message like this: 00:00:00.018 FATAL: Null value not allowed as an environment variable: NODE_LABEL 00:00:00.018 java.lang.IllegalArgumentException: Null value not allowed as an environment variable: NODE_LABEL 00:00:00.019 at hudson.EnvVars.put(EnvVars.java:172) 00:00:00.019 at org.jvnet.jenkins.plugins.nodelabelparameter.LabelParameterValue.buildEnvVars(LabelParameterValue.java:71) 00:00:00.019 at hudson.model.ParametersAction.buildEnvVars(ParametersAction.java:82) 00:00:00.019 at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:961) 00:00:00.019 at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:776) 00:00:00.019 at hudson.model.AbstractProject.checkout(AbstractProject.java:1353) 00:00:00.019 at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:689) 00:00:00.019 at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:88) 00:00:00.019 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:594) 00:00:00.019 at hudson.model.Run.execute(Run.java:1567) 00:00:00.019 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) 00:00:00.019 at hudson.model.ResourceController.execute(ResourceController.java:88) 00:00:00.019 at hudson.model.Executor.run(Executor.java:237)
    via by Ho-Fan Kang,
  • When a build is started by the Gerrit Trigger, it always fails with the error and stack track pasted below: Manually triggered by user admin for Gerrit: http://localhost:8080/79 Building in workspace /mntf/jenkins/jobs/GerritBuilder/workspace Checkout:workspace / /mntf/jenkins/jobs/GerritBuilder/workspace - hudson.remoting.LocalChannel@72cbb9 Using strategy: Gerrit Trigger Checkout:workspace / /mntf/jenkins/jobs/GerritBuilder/workspace - hudson.remoting.LocalChannel@72cbb9 Fetching changes from 1 remote Git repository Fetching upstream changes from ssh://jenkins@localhost:29418/myrepo.git Commencing build of Revision 4514e900f88eb22c7c006aa8b8971f55e08b0324 () FATAL: Null value not allowed as an environment variable: GIT_BRANCH java.lang.IllegalArgumentException: Null value not allowed as an environment variable: GIT_BRANCH at hudson.EnvVars.put(EnvVars.java:162) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1101) at hudson.model.AbstractProject.checkout(AbstractProject.java:1195) at hudson.model.AbstractBuild$AbstractRunner.checkout(AbstractBuild.java:576) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:465) at hudson.model.Run.run(Run.java:1409) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:238) The configuration of the trigger is along the lines given in Alex Blewitt's article (http://www.infoq.com/articles/Gerrit-jenkins-hudson). Specifically, the project and branch are configure as: Path - ** - Path - ** Searching the forums, mailing lists, and irc logs did not yield a solution, so we're assuming it's a bug and not a config issue.
    via by Ron K,
  • Builds are not triggered via Poll SCM. Subversion Polling Log contains the following error: {noformat} Started on Aug 7, 2014 5:21:46 PM ERROR: Failed to record SCM polling for hudson.matrix.MatrixProject@7ad2477b[test] java.lang.IllegalArgumentException: Null value not allowed as an environment variable: TRACKING_SVN_BUILD at hudson.EnvVars.put(EnvVars.java:356) at hudson.plugins.trackingsvn.TrackingSVNAction.buildEnvVars(TrackingSVNAction.java:26) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:919) at hudson.scm.SubversionSCM.compareRemoteRevisionWith(SubversionSCM.java:1355) at hudson.scm.SCM.poll(SCM.java:401) at hudson.model.AbstractProject._poll(AbstractProject.java:1430) at hudson.model.AbstractProject.poll(AbstractProject.java:1333) at jenkins.triggers.SCMTriggerItem$SCMTriggerItems$Bridge.poll(SCMTriggerItem.java:119) at hudson.triggers.SCMTrigger$Runner.runPolling(SCMTrigger.java:509) at hudson.triggers.SCMTrigger$Runner.run(SCMTrigger.java:538) at hudson.util.SequentialExecutionQueue$QueueEntry.run(SequentialExecutionQueue.java:118) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at java.util.concurrent.FutureTask.run(FutureTask.java:262) 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) {noformat} The job is configured in the following way: {noformat} Build Triggers Poll SCM Schedule H 17 * * * {noformat} Version of Jenkins this bug is occurring {noformat} Jenkins ver. 1.574 {noformat} How we are running Jenkins {noformat} /usr/java/latest/bin/java -XX:MaxPermSize=1024M -Dhudson.Functions.autoRefreshSeconds=60 -Dhudson.tasks.Fingerprinter.enableFingerprintsInDependencyGraph=true -Dhudson.upstreamCulprits=true -Xmx3000M -Dhudson.scm.SubversionSCM.pollFromMaster=true -Djava.util.logging.ConsoleHandler.level=FINE -jar lib/jenkins.war --httpPort=18080 --webroot=mst/war --ajp13Port=-1 {noformat} Environment we are using {noformat} System Properties Name ↓ Value awt.toolkit sun.awt.X11.XToolkit executable-war /data/ci/lib/jenkins-1.574.war file.encoding UTF-8 file.encoding.pkg sun.io file.separator / hudson.diyChunking true hudson.Functions.autoRefreshSeconds 60 hudson.scm.SubversionSCM.pollFromMaster true hudson.tasks.Fingerprinter.enableFingerprintsInDependencyGraph true hudson.upstreamCulprits true java.awt.graphicsenv sun.awt.X11GraphicsEnvironment java.awt.headless true java.awt.printerjob sun.print.PSPrinterJob java.class.path lib/jenkins.war java.class.version 51.0 java.endorsed.dirs /usr/java/jdk1.7.0_60/jre/lib/endorsed java.ext.dirs /usr/java/jdk1.7.0_60/jre/lib/ext:/usr/java/packages/lib/ext java.home /usr/java/jdk1.7.0_60/jre java.io.tmpdir /tmp java.library.path /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib java.runtime.name Java(TM) SE Runtime Environment java.runtime.version 1.7.0_60-b19 java.specification.name Java Platform API Specification java.specification.vendor Oracle Corporation java.specification.version 1.7 java.util.logging.ConsoleHandler.level FINE java.vendor Oracle Corporation java.vendor.url http://java.oracle.com/ java.vendor.url.bug http://bugreport.sun.com/bugreport/ java.version 1.7.0_60 java.vm.info mixed mode java.vm.name Java HotSpot(TM) 64-Bit Server VM java.vm.specification.name Java Virtual Machine Specification java.vm.specification.vendor Oracle Corporation java.vm.specification.version 1.7 java.vm.vendor Oracle Corporation java.vm.version 24.60-b09 jna.platform.library.path /usr/lib64:/lib64:/usr/lib:/lib line.separator mail.smtp.sendpartial true mail.smtps.sendpartial true org.apache.commons.logging.Log org.apache.commons.logging.impl.Jdk14Logger os.arch amd64 os.name Linux os.version 2.6.18-308.el5 path.separator : sun.arch.data.model 64 sun.boot.class.path /usr/java/jdk1.7.0_60/jre/lib/resources.jar:/usr/java/jdk1.7.0_60/jre/lib/rt.jar:/usr/java/jdk1.7.0_60/jre/lib/sunrsasign.jar:/usr/java/jdk1.7.0_60/jre/lib/jsse.jar:/usr/java/jdk1.7.0_60/jre/lib/jce.jar:/usr/java/jdk1.7.0_60/jre/lib/charsets.jar:/usr/java/jdk1.7.0_60/jre/lib/jfr.jar:/usr/java/jdk1.7.0_60/jre/classes sun.boot.library.path /usr/java/jdk1.7.0_60/jre/lib/amd64 sun.cpu.endian little sun.cpu.isalist sun.font.fontmanager sun.awt.X11FontManager sun.io.unicode.encoding UnicodeLittle sun.java.command lib/jenkins.war --httpPort=18080 --webroot=mst/war --ajp13Port=-1 sun.java.launcher SUN_STANDARD sun.jnu.encoding UTF-8 sun.management.compiler HotSpot 64-Bit Tiered Compilers sun.os.patch.level unknown svnkit.http.methods Digest,Basic,NTLM,Negotiate svnkit.ssh2.persistent false user.country US user.dir /data/ci user.home /root user.language en user.name root user.timezone Europe/Paris Environment Variables Name ↓ Value _ /usr/bin/nohup ci_root_dir /data/ci CVS_RSH ssh G_BROKEN_FILENAMES 1 HISTSIZE 1000 HOME /root HOSTNAME HTTP_PORT 18080 INPUTRC /etc/inputrc JAVA_HOME /usr/java/latest JENKINS_HOME /data/ci/mst KDE_IS_PRELINKED 1 KDE_NO_IPV6 1 KDEDIR /usr LANG en_US.UTF-8 LESSOPEN |/usr/bin/lesspipe.sh %s LOGNAME root LS_COLORS di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:mi=01;05;37;41:su=37;41:sg=30;43:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.tbz=01;31:*.tbz2=01;31:*.bz=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=01;36:*.au=01;36:*.flac=01;36:*.mid=01;36:*.midi=01;36:*.mka=01;36:*.mp3=01;36:*.mpc=01;36:*.ogg=01;36:*.ra=01;36:*.wav=01;36:*.axa=01;36:*.oga=01;36:*.spx=01;36:*.xspf=01;36: MAIL /var/spool/mail/root MASTER_HOST NLSPATH /usr/dt/lib/nls/msg/%L/%N.cat OLDPWD /data/ci PATH /opt/CollabNet_Subversion/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin PWD /data/ci QTDIR /usr/lib64/qt-3.3 QTINC /usr/lib64/qt-3.3/include QTLIB /usr/lib64/qt-3.3/lib SHELL /bin/bash SHLVL 2 SSH_ASKPASS /usr/libexec/openssh/gnome-ssh-askpass SSH_CLIENT 16.52.177.26 65483 22 SSH_CONNECTION 16.52.177.26 65483 16.17.92.204 22 SSH_TTY /dev/pts/0 TERM xterm USER root XFILESEARCHPATH /usr/dt/app-defaults/%L/Dt Plugins Name ↓ Version Enabled Pinned active-directory 1.38 true false analysis-collector 1.41 true false analysis-core 1.57 true false ant 1.2 true false antisamy-markup-formatter 1.2 true true async-http-client 1.7.8 true false audit-trail 2.0 true false changes-since-last-success 0.5 true false checkstyle 3.39 true false collabnet 1.1.9 true false conditional-buildstep 1.3.3 true false config-file-provider 2.7.4 true false copy-data-to-workspace-plugin 1.0 true false copy-to-slave 1.4.3 true false copyartifact 1.31 true false create-fingerprint 1.2 true false credentials 1.15 true true cvs 2.12 true true dependencyanalyzer 0.6 true false disk-usage 0.23 true false downstream-buildview 1.9 true false downstream-ext 1.8 true false dry 2.40 true false dumpinfo-buildwrapper-plugin 1.1 true false elastic-axis 1.2 true false envinject 1.89 true false extended-read-permission 1.0 true false external-monitor-job 1.2 true false findbugs 4.56 true false git 2.2.4 true false git-client 1.10.1 true false groovy 1.20 true false groovy-postbuild 1.10 true false javadoc 1.2 true true jenkins-multijob-plugin 1.13 true false jquery 1.7.2-1 true false ldap 1.10.2 true true locale 1.2 true false m2-repo-reaper 1.0 true false m2release 0.14.0 true false mailer 1.9 true true mapdb-api 1.0.1.0 true false matrix-auth 1.2 true true matrix-project 1.3 true true matrix-reloaded 1.1.3 true false matrixtieparent 1.2 true false maven-deployment-linker 1.5.1 true false maven-invoker-plugin 1.2 true false maven-plugin 2.5 true true pam-auth 1.1 true false parameterized-trigger 2.25 true false pending-changes 0.3.0 true false platformlabeler 1.1 true false pmd 3.38 true false postbuild-task 1.8 true false PrioritySorter 2.8 true false promoted-builds 2.17 true false release 2.4.1 true false repository 1.2 true false run-condition 1.0 true false scm-api 0.2 true false scoring-load-balancer 1.0.1 true false slave-prerequisites 1.0 true false ssh-agent 1.4.1 true false ssh-credentials 1.7.1 true true ssh-slaves 1.6 true true subversion 2.4.1 true true tasks 4.39 true false token-macro 1.10 true false toolenv 1.1 true false tracking-svn 1.1 true false translation 1.11 true true versionnumber 1.4.1 true false view-job-filters 1.26 true false viewVC 1.7 true false warnings 4.40 true false windows-slaves 1.0 true false {noformat}
    via by Maxim Strygin,
    • java.lang.IllegalArgumentException: Null value not allowed as an environment variable: TESTFLIGHT_CONFIG_URL at hudson.EnvVars.put(EnvVars.java:162) at hudson.EnvVars.put(EnvVars.java:64) at java.util.AbstractMap.putAll(AbstractMap.java:256) at java.util.TreeMap.putAll(TreeMap.java:304) at testflight.TestflightRecorder$EnvAction.buildEnvVars(TestflightRecorder.java:366) at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:867) at hudson.tasks.Mailer.perform(Mailer.java:112) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:717) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:692) at hudson.model.Build$BuildExecution.post2(Build.java:183) at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:639) at hudson.model.Run.execute(Run.java:1527) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:236)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,