Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-5552

Stackoverflow in JsonSlurper.parseText

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.8.6
    • 2.0.0, 1.8.7
    • JSON
    • None
    • Groovy Version: 1.8.6 JVM: 1.6.0_33 Vendor: Apple Inc. OS: Mac OS X

    Description

      Jun 27, 2012 1:59:43 PM org.codehaus.groovy.runtime.StackTraceUtils sanitize
      WARNING: Sanitizing stacktrace:

      java.lang.StackOverflowError
      	at java.lang.Character.codePointAt(Character.java:2335)
      	at java.util.regex.Pattern$CharProperty.match(Pattern.java:3344)
      	at java.util.regex.Pattern$Curly.match0(Pattern.java:3760)
      	at java.util.regex.Pattern$Curly.match(Pattern.java:3744)
      	at java.util.regex.Pattern$Branch.match(Pattern.java:4114)
      	at java.util.regex.Pattern$GroupHead.match(Pattern.java:4168)
      	at java.util.regex.Pattern$Loop.match(Pattern.java:4295)
      	at java.util.regex.Pattern$GroupTail.match(Pattern.java:4227)
      	at java.util.regex.Pattern$BranchConn.match(Pattern.java:4078)
      	at java.util.regex.Pattern$Curly.match0(Pattern.java:3782)
      

      This will reproduce the error in the console (the first few times, then i starts to work for no reason):

      def url = new URL("http://vip.regionh.dk/VIP/Redaktoer/133007.nsf/aLoadInfoDokRead?OpenAgent&id=XCA7E63D0762F1706C125791E0045E51B")
      def jsonStr = url.getText("UTF-8")
      def slurper = new groovy.json.JsonSlurper()
      slurper.parseText(jsonStr)
      

      Attachments

        Activity

          People

            guillaume Guillaume Sauthier
            jonnoerrelykke Jon Nørrelykke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: