sahaya / rest-assured

Automatically exported from code.google.com/p/rest-assured
0 stars 0 forks source link

StackOverflow Error when using JsonPath #221

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

I'm using rest-assured in an eclipse project.
When I try to use JsonPath, I get a stack overflow error immediately when I try 
to compile. Is this a known issue? Do I need to change something in my setup?

Even just adding the line below results in error:
JsonPath jsonPath = new JsonPath(js);

The stacktrace on the error looks like this:
java.lang.StackOverflowError
    at java.util.regex.Pattern$CharProperty.match(Unknown Source)
    at java.util.regex.Pattern$Curly.match0(Unknown Source)
    at java.util.regex.Pattern$Curly.match(Unknown Source)
        ...

My Json looks like this:
 {
  "data" : {
    "id" : 13,
    "address" : {
      "address1" : "",
      ...
    },
    "businessSectors" : {
      "total" : 0,
      "data" : [ ]
    },

   ....
 }
}

Original issue reported on code.google.com by pmike...@gmail.com on 26 Mar 2013 at 2:47

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 28 Mar 2013 at 3:52

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 28 Mar 2013 at 3:52

GoogleCodeExporter commented 9 years ago
same here :( current "solution" is somewhat dirty...

try {
  String body = new Prettifier().getPrettifiedBodyIfPossible(response);
  ...
} catch (StackOverflowError e) {
  ...
}

Original comment by christop...@gmail.com on 5 Sep 2013 at 7:25