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() );
2018-04-25
Caused by: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Cannot get geometry object from data you send to the GEOMETRY field
Environment:
JDK 1.7.0_80
Tomcat 8.0.36
MySql 5.5.50
Spring 4.3.16.RELEASE
Hibernate 4.3.11.Final
Hibernate Spatial 4.3
Caused by: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Cannot get geometry object from data you send to the GEOMETRY field
Getting fail to store Polygon Shape Object in Geometry Datatype with hibernate spatial API
Check column after insert:
SELECT AsText( geometry_column ) FROM table;
Subscribe to:
Posts (Atom)