Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
7.2.0
-
None
-
Wicket : 7.2.0
Jackson : 2.7.1
OSX
JKD 8
Description
The JsonRequestLogger is not working correctly:
JsonRequestLogger --> JsonMappingException --> StackOverflowError Infinite recursion
Wicket : 7.2.0
Jackson : 2.7.1
JsonRequestLogger throw a JsonMappingException when executing getMapper().writeValueAsString(new RequestSessionTuple(rd, sd));
java.lang.RuntimeException: com.fasterxml.jackson.databind.JsonMappingException:
Infinite recursion (StackOverflowError)
(through reference chain: org.apache.wicket.PageReference["page"]>com.mycompany.SimplePage["pageReference"]>org.apache.wicket.PageReference["page"]>com.mycompany.SimplePage["pageReference"]>org.apache.wicket.PageReference["page"]->....
at org.apache.wicket.extensions.requestlogger.JsonRequestLogger.getLogString(JsonRequestLogger.java:141) ~[wicket-extensions-7.2.0.jar:7.2.0]
at org.apache.wicket.extensions.requestlogger.JsonRequestLogger.log(JsonRequestLogger.java:125) ~[wicket-extensions-7.2.0.jar:7.2.0]
at org.apache.wicket.protocol.http.AbstractRequestLogger.performLogging(AbstractRequestLogger.java:325) ~[wicket-core-7.2.0.jar:7.2.0]
at org.apache.wicket.request.cycle.RequestCycle.onInternalDetach(RequestCycle.java:620) ~[wicket-core-7.2.0.jar:7.2.0]
at org.apache.wicket.request.cycle.RequestCycle.detach(RequestCycle.java:600) ~[wicket-core-7.2.0.jar:7.2.0]
at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:297) ~[wicket-core-7.2.0.jar:7.2.0]
at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261) ~[wicket-core-7.2.0.jar:7.2.0]
at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:694) ~[jackson-databind-2.7.1.jar:2.7.1]
at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:157) ~[jackson-databind-2.7.1.jar:2.7.1]
at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:672) ~[jackson-databind-2.7.1.jar:2.7.1]
at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:678) ~[jackson-databind-2.7.1.jar:2.7.1]
at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:157) ~[jackson-databind-2.7.1.jar:2.7.1]
at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:672) ~[jackson-databind-2.7.1.jar:2.7.1]
at com.fasterxml.jackson.databind.ser.std.BeanSerializerBase.serializeFields(BeanSerializerBase.java:678) ~[jackson-databind-2.7.1.jar:2.7.1]
at com.fasterxml.jackson.databind.ser.BeanSerializer.serialize(BeanSerializer.java:157) ~[jackson-databind-2.7.1.jar:2.7.1]
at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(BeanPropertyWriter.java:672) ~[jackson-databind-2.7.1.jar:2.7.1]