2018-04-26

Jackson ObjectMapper writeValueAsString StackOverflowError



com.fasterxml.jackson.databind.JsonMappingException: Infinite recursion (StackOverflowError) (through reference chain: com.vividsolutions.jts.geom.Point["envelope"]->           repeat 997 times           ->com.vividsolutions.jts.geom.Point["envelope"])



Working solution URL: https://github.com/bedatadriven/jackson-datatype-jts/issues/8





ObjectMapper om = new ObjectMapper();
om.registerModule( new com.bedatadriven.jackson.datatype.jts.JtsModule.JtsModule() );


No comments:

Google Referrals