Why am I getting a StackOverflow Exception when saving Jenkins global configuration?

Article ID:115003581772
1 minute readKnowledge base

Issue

  • When I am trying to update the Jenkins configuration and hit save, I am getting a StackOverflow exception as shown below:

WARNING	o.e.j.s.h.ContextHandler$Context#log: Error while serving https://jenkinsurl:8080/configSubmit
java.lang.StackOverflowError
	at java.lang.System.getProperty(System.java:714)
	at sun.security.action.GetPropertyAction.run(GetPropertyAction.java:84)
	at sun.security.action.GetPropertyAction.run(GetPropertyAction.java:49)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.io.BufferedWriter.<init>(BufferedWriter.java:109)
	at java.io.BufferedWriter.<init>(BufferedWriter.java:88)
	at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:76)
	at hudson.util.AtomicFileWriter.<init>(AtomicFileWriter.java:57)
	at hudson.XmlFile.write(XmlFile.java:168)
	at hudson.model.Descriptor.save(Descriptor.java:872)
	at hudson.model.Saveable$save.callCurrent(Unknown Source)

Resolution

This is a known Jenkins issue Jenkins-39096 which is fixed in versions of the Jira Trigger plugin equal or higher than 0.2.4.

You can check the plugin changelog to get additional information on the changes included in the different versions.