java.lang.OutOfMemoryError: Java heap space

Atlassian JIRA | David Rizzuto [Atlassian] | 1 year ago
  1. 0

    We had a situation where a user commented on a jira issue with a text 25MB comment. This was sent as a workbox notification to Confluence, which promptly died trying to sanitise the string: {code} 2015-07-24 00:35:17,952 ERROR [catalina-exec-33] [common.error.jersey.ThrowableExceptionMapper] toResponse Uncaught exception thrown by REST service: Java heap space -- url: /rest/mywork/1/notification | userName: <REDACTED> java.lang.OutOfMemoryError: Java heap space at org.apache.xerces.dom.CharacterDataImpl.appendData(Unknown Source) at org.cyberneko.html.parsers.DOMFragmentParser.characters(DOMFragmentParser.java:465) at org.cyberneko.html.HTMLTagBalancer.characters(HTMLTagBalancer.java:798) at com.atlassian.xhtml.parsing.BlockIsolatingTagBalancer.characters(BlockIsolatingTagBalancer.java:171) at org.cyberneko.html.filters.DefaultFilter.characters(DefaultFilter.java:156) at org.cyberneko.html.HTMLScanner$ContentScanner.scanCharacters(HTMLScanner.java:2059) at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1910) at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:877) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:495) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:448) at org.cyberneko.html.parsers.DOMFragmentParser.parse(DOMFragmentParser.java:166) at org.owasp.validator.html.scan.AntiSamyDOMScanner.scan(AntiSamyDOMScanner.java:172) at org.owasp.validator.html.AntiSamy.scan(AntiSamy.java:113) at org.owasp.validator.html.AntiSamy.scan(AntiSamy.java:92) at com.atlassian.mywork.host.service.HTMLServiceImpl.clean(HTMLServiceImpl.java:28) at com.atlassian.mywork.host.service.LocalNotificationServiceImpl.createOrUpdate(LocalNotificationServiceImpl.java:164) {code} We should have some sort of safeguard that limits the size of notifications

    Atlassian JIRA | 1 year ago | David Rizzuto [Atlassian]
    java.lang.OutOfMemoryError: Java heap space
  2. 0

    We had a situation where a user commented on a jira issue with a text 25MB comment. This was sent as a workbox notification to Confluence, which promptly died trying to sanitise the string: {code} 2015-07-24 00:35:17,952 ERROR [catalina-exec-33] [common.error.jersey.ThrowableExceptionMapper] toResponse Uncaught exception thrown by REST service: Java heap space -- url: /rest/mywork/1/notification | userName: <REDACTED> java.lang.OutOfMemoryError: Java heap space at org.apache.xerces.dom.CharacterDataImpl.appendData(Unknown Source) at org.cyberneko.html.parsers.DOMFragmentParser.characters(DOMFragmentParser.java:465) at org.cyberneko.html.HTMLTagBalancer.characters(HTMLTagBalancer.java:798) at com.atlassian.xhtml.parsing.BlockIsolatingTagBalancer.characters(BlockIsolatingTagBalancer.java:171) at org.cyberneko.html.filters.DefaultFilter.characters(DefaultFilter.java:156) at org.cyberneko.html.HTMLScanner$ContentScanner.scanCharacters(HTMLScanner.java:2059) at org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1910) at org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:877) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:495) at org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:448) at org.cyberneko.html.parsers.DOMFragmentParser.parse(DOMFragmentParser.java:166) at org.owasp.validator.html.scan.AntiSamyDOMScanner.scan(AntiSamyDOMScanner.java:172) at org.owasp.validator.html.AntiSamy.scan(AntiSamy.java:113) at org.owasp.validator.html.AntiSamy.scan(AntiSamy.java:92) at com.atlassian.mywork.host.service.HTMLServiceImpl.clean(HTMLServiceImpl.java:28) at com.atlassian.mywork.host.service.LocalNotificationServiceImpl.createOrUpdate(LocalNotificationServiceImpl.java:164) {code} We should have some sort of safeguard that limits the size of notifications

    Atlassian JIRA | 1 year ago | David Rizzuto [Atlassian]
    java.lang.OutOfMemoryError: Java heap space
  3. 0

    OutOfMemory Exception : java heap space

    Google Groups | 6 months ago | deepak singh
    java.lang.OutOfMemoryError: Java heap space* *java.lang.OutOfMemoryError: Java heap space*
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    OutOfMemory Exception : java heap space

    Google Groups | 6 months ago | deepak singh
    java.lang.OutOfMemoryError: Java heap space* *java.lang.OutOfMemoryError: Java heap space*
  6. 0

    [exoplatform] [explatform] Memory requirements

    ow2.org | 1 year ago
    java.lang.OutOfMemoryError: Java heap space>java.lang.OutOfMemoryError: Java heap space

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.OutOfMemoryError

      Java heap space

      at org.apache.xerces.dom.CharacterDataImpl.appendData()
    2. Xerces2-j
      CharacterDataImpl.appendData
      1. org.apache.xerces.dom.CharacterDataImpl.appendData(Unknown Source)
      1 frame
    3. Maven
      HTMLTagBalancer.characters
      1. org.cyberneko.html.parsers.DOMFragmentParser.characters(DOMFragmentParser.java:465)
      2. org.cyberneko.html.HTMLTagBalancer.characters(HTMLTagBalancer.java:798)
      2 frames
    4. com.atlassian.xhtml
      BlockIsolatingTagBalancer.characters
      1. com.atlassian.xhtml.parsing.BlockIsolatingTagBalancer.characters(BlockIsolatingTagBalancer.java:171)
      1 frame
    5. Maven
      DOMFragmentParser.parse
      1. org.cyberneko.html.filters.DefaultFilter.characters(DefaultFilter.java:156)
      2. org.cyberneko.html.HTMLScanner$ContentScanner.scanCharacters(HTMLScanner.java:2059)
      3. org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:1910)
      4. org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:877)
      5. org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:495)
      6. org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:448)
      7. org.cyberneko.html.parsers.DOMFragmentParser.parse(DOMFragmentParser.java:166)
      7 frames
    6. OWASP AntiSamy
      AntiSamy.scan
      1. org.owasp.validator.html.scan.AntiSamyDOMScanner.scan(AntiSamyDOMScanner.java:172)
      2. org.owasp.validator.html.AntiSamy.scan(AntiSamy.java:113)
      3. org.owasp.validator.html.AntiSamy.scan(AntiSamy.java:92)
      3 frames
    7. com.atlassian.mywork
      LocalNotificationServiceImpl.createOrUpdate
      1. com.atlassian.mywork.host.service.HTMLServiceImpl.clean(HTMLServiceImpl.java:28)
      2. com.atlassian.mywork.host.service.LocalNotificationServiceImpl.createOrUpdate(LocalNotificationServiceImpl.java:164)
      2 frames