NullPointerException thrown when trying to perform a Maven Release

Article ID:204754560
1 minute readKnowledge base


When you press "Schedule Release Build", this exception is thrown:

javax.servlet.ServletException: java.lang.NullPointerException at org.kohsuke.stapler.Stapler.tryInvoke( at org.kohsuke.stapler.Stapler.invoke( at org.kohsuke.stapler.MetaClass$12.dispatch( …​ Caused by: java.lang.NullPointerException at org.jvnet.hudson.plugins.m2release.M2ReleaseAction.getString( at org.jvnet.hudson.plugins.m2release.M2ReleaseAction.doSubmit(


  • CloudBees Jenkins Enterprise

  • M2 Release plugin <= 0.14


You should upgrade to version 0.15 or upper of M2 release plugin.