java - Jackson object mapper exception -
I have written a CGM server there I Jackson object mapper (Not sure I used the library: Jackson-All 1.9 ). The following exception after running
org.codehaus.jackson.map.JsonMappingException: No serializer found for the search for classroom materials and a property BeanSerializer (to avoid exceptions, passive SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS))
this adds to disable SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS
.
ObjectMapper Mapper = New ObjectMapper (); Mapper Configurable (serializationfeature.fel_on_empTiBENs, incorrect);
The compilation came again again.
SerializationFeature A variable can not be solved.
How to solve this? I think I used the wrong library
When I was a good example GCM server < Trying to use found in / p I had the same problem>
In addition to changing the key and ID, the only thing I had to do to add it to work was to change the " May include public class ... "line:
@JsonAutoDetect (fieldVisibility = Visibility.ANY)
Content.java
and POST2GCM.java
to go to the file it was all good! OK work!
Comments
Post a Comment