on-internet
← Community

Java Spring HttpMessageNotWritableException/JsonMappingException with Hibernate FetchType.LAZY in Jackson serialization process

Stack Overflow ·

I use Java Spring web controller And jackson for parsing responses. Also I have four Java Hibernate entities: User Filter Make Model, with bidirectional relation in Make -> Model(s): GeUser.getFilters().get(0).getModel().getMake().getModels().get(0).getMake()... I tried add @JsonIgnoreProperties(value = "models") in Model class but still get exception: WARNING: Failed to write HTTP message: org.springframework.http.converter.HttpMessageNotWritableException: Could not write content: No serializer found for class org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer and no properties disco

Comments

Sign in or sign up to comment and upvote.

No comments yet.