java.lang.OutOfMemoryError: Java heap space

Jenkins JIRA | dali_abas | 9 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    When i click on the people link of our hudson (1.184, with approx. 15 users known), i get an OutOfMemoryException. The hudson instance isn't alive afterwards. Status Code: 500 Exception: Stacktrace: java.lang.OutOfMemoryError: Java heap space at org.dom4j.DocumentFactory.createText(DocumentFactory.java:177) at org.dom4j.tree.AbstractElement.addText(AbstractElement.java:899) at org.dom4j.io.SAXContentHandler.characters(SAXContentHandler.java:299) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.characters(AbstractSAXParser.java:538) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:461) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) at org.dom4j.io.SAXReader.read(SAXReader.java:465) at org.dom4j.io.SAXReader.read(SAXReader.java:343) at hudson.plugins.perforce.PerforceChangeLogSet.parse(PerforceChangeLogSet.java:81) at hudson.plugins.perforce.PerforceChangeLogParser.parse(PerforceChangeLogParser.java:18) at hudson.model.AbstractBuild.calcChangeSet(AbstractBuild.java:307) at hudson.model.AbstractBuild.getChangeSet(AbstractBuild.java:289) at hudson.model.View$People.(View.java:193) at hudson.model.View.getPeople(View.java:178) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:103) at org.kohsuke.stapler.MetaClass$7.doDispatch(MetaClass.java:208) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:361) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:298) at org.kohsuke.stapler.Stapler.service(Stapler.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:45) at winstone.ServletConfiguration.execute(ServletConfiguration.java:249) at winstone.RequestDispatcher.forward(RequestDispatcher.java:335) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378) From looking at the console output, there seems to be a infinite recursion in the jelly tag section: at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65) at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:112) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65) at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:112) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262) at org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:80) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262) at org.kohsuke.stapler.jelly.JellyClassTearOff.invokeScript(JellyClassTearOff.java:78) at org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClassTearOff.java:93) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:344) at org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:240) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:361) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:298) at org.kohsuke.stapler.Stapler.service(Stapler.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:45) at winstone.ServletConfiguration.execute(ServletConfiguration.java:249) at winstone.RequestDispatcher.forward(RequestDispatcher.java:335) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:88) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at winstone.RequestDispatcher.forward(RequestDispatcher.java:333) at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.IllegalArgumentException: Property 'var' has no write method at org.apache.commons.beanutils.ConvertingWrapDynaBean.set(ConvertingWrapDynaBean.java:71) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:258) ... 110 more javax.servlet.ServletException: jar:file:/tmp/winstone/ebci/hudson-1.184.war/WEB-INF/lib/hudson-core-1.184.jar!/lib/layout/task.jelly:19:92: <j:invokeStatic> Property 'var' has no write method

    Jenkins JIRA | 9 years ago | dali_abas
    java.lang.OutOfMemoryError: Java heap space
  2. 0

    When i click on the people link of our hudson (1.184, with approx. 15 users known), i get an OutOfMemoryException. The hudson instance isn't alive afterwards. Status Code: 500 Exception: Stacktrace: java.lang.OutOfMemoryError: Java heap space at org.dom4j.DocumentFactory.createText(DocumentFactory.java:177) at org.dom4j.tree.AbstractElement.addText(AbstractElement.java:899) at org.dom4j.io.SAXContentHandler.characters(SAXContentHandler.java:299) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.characters(AbstractSAXParser.java:538) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:461) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:807) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:107) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1205) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:522) at org.dom4j.io.SAXReader.read(SAXReader.java:465) at org.dom4j.io.SAXReader.read(SAXReader.java:343) at hudson.plugins.perforce.PerforceChangeLogSet.parse(PerforceChangeLogSet.java:81) at hudson.plugins.perforce.PerforceChangeLogParser.parse(PerforceChangeLogParser.java:18) at hudson.model.AbstractBuild.calcChangeSet(AbstractBuild.java:307) at hudson.model.AbstractBuild.getChangeSet(AbstractBuild.java:289) at hudson.model.View$People.(View.java:193) at hudson.model.View.getPeople(View.java:178) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:103) at org.kohsuke.stapler.MetaClass$7.doDispatch(MetaClass.java:208) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:361) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:298) at org.kohsuke.stapler.Stapler.service(Stapler.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:45) at winstone.ServletConfiguration.execute(ServletConfiguration.java:249) at winstone.RequestDispatcher.forward(RequestDispatcher.java:335) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378) From looking at the console output, there seems to be a infinite recursion in the jelly tag section: at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65) at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:112) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at org.apache.commons.jelly.impl.StaticTag.doTag(StaticTag.java:65) at org.apache.commons.jelly.impl.StaticTagScript.run(StaticTagScript.java:112) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262) at org.apache.commons.jelly.impl.DynamicTag.doTag(DynamicTag.java:80) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262) at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:186) at org.apache.commons.jelly.tags.core.JellyTag.doTag(JellyTag.java:45) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:262) at org.kohsuke.stapler.jelly.JellyClassTearOff.invokeScript(JellyClassTearOff.java:78) at org.kohsuke.stapler.jelly.JellyClassTearOff.serveIndexJelly(JellyClassTearOff.java:93) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:344) at org.kohsuke.stapler.MetaClass$9.doDispatch(MetaClass.java:240) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:361) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:298) at org.kohsuke.stapler.Stapler.service(Stapler.java:98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:45) at winstone.ServletConfiguration.execute(ServletConfiguration.java:249) at winstone.RequestDispatcher.forward(RequestDispatcher.java:335) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:378) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:88) at winstone.FilterConfiguration.execute(FilterConfiguration.java:195) at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:368) at winstone.RequestDispatcher.forward(RequestDispatcher.java:333) at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:244) at winstone.RequestHandlerThread.run(RequestHandlerThread.java:150) at java.lang.Thread.run(Thread.java:619) Caused by: java.lang.IllegalArgumentException: Property 'var' has no write method at org.apache.commons.beanutils.ConvertingWrapDynaBean.set(ConvertingWrapDynaBean.java:71) at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:258) ... 110 more javax.servlet.ServletException: jar:file:/tmp/winstone/ebci/hudson-1.184.war/WEB-INF/lib/hudson-core-1.184.jar!/lib/layout/task.jelly:19:92: <j:invokeStatic> Property 'var' has no write method

    Jenkins JIRA | 9 years ago | dali_abas
    java.lang.OutOfMemoryError: Java heap space

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      Java heap space

      at org.dom4j.DocumentFactory.createText()
    2. dom4j
      SAXContentHandler.characters
      1. org.dom4j.DocumentFactory.createText(DocumentFactory.java:177)
      2. org.dom4j.tree.AbstractElement.addText(AbstractElement.java:899)
      3. org.dom4j.io.SAXContentHandler.characters(SAXContentHandler.java:299)
      3 frames