I've got an application, which retrieves entities from Neo4j datastore and sends them as JSON. However, instead of seeing nice JSON output I was greeted with an exception (similar to listed below). I've simplified the code to this:
Handler mapping
Video classCode:@RequestMapping("/test") public @ResponseBody Video test () { Video v = new Video(); v.setTitle("title"); v.setId(1L); return v; }
If I disable AspectJ weaver everything works fine, but otherwise I get thisCode:@NodeEntity public class Video { @GraphId private Long id; private String title; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getTitle() { return title; } public void setTitle(String title) { this.title = title; } }
I would like to know if it's my fault or the bytecode enhancer is to blameNo serializer found for class org.springframework.core.convert.support.GenericCo nversionService and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationConfig.Feature.FAIL_ON_EMPTY_BEANS) ) (through reference chain: spektrum.limelight.domain.Video["entityState"]->org.springframework.data.neo4j.fieldaccess.Detach edEntityState["template"]->org.springframework.data.neo4j.support.Neo4jTempl ate["infrastructure"]->org.springframework.data.neo4j.support.MappingInf rastructure["conversionService"])


Reply With Quote
. Or an DTO for the JSON. (probably also a superclass, where only the subclass contains @NodeEntity).
