Do you have the Jackson libraries included in your project? They are normally needed for JSON serialization/deserialization.
On Mon, Jan 8, 2018 at 4:52 PM, Fredrik Widengren < [email protected]> wrote: > Hello, > > I'm testing to setup Cayenne with Spring Boot. I have created a simple > REST service. Spring is working fine with a Hello World example from > Spring.io. > > When I try to send back my cayenne objects that I have generated from > the Cayenne modeller, I get an exception that it can’t find a JSON > serializer. > > Error: > Could not write JSON: No serializer found for class > org.apache.cayenne.tx.TransactionFilter > > I have read that a common reason for this is that the class that you > try to serialize does not have any public getters/setters. The > generated classes (in the auto package) from the modeller that extends > CayenneDataObject do have these public getters/setters. The class is > however abstract, but I'm using the class created by the modeller that > extends the abstract modeller class. > > Anyone that have any experience from Cayenne and Spring that have some > input? > > Many thanks! > > /Fredrik > -- FRANK HERRMANN SENIOR SOFTWARE ENGINEER T: 561-880-2998 x1563 E: [email protected] [image: [ Modernizing Medicine ]] <https://www.modmed.com/> [image: [ Facebook ]] <https://www.facebook.com/modernizingmedicine> [image: [ LinkedIn ]] <https://www.linkedin.com/company/modernizing-medicine/> [image: [ YouTube ]] <https://www.youtube.com/user/modernizingmedicine> [image: [ Twitter ]] <https://twitter.com/modmed> [image: [ Blog ]] <https://www.modmed.com/BlogBeyondEMR> [image: [ Instagram ]] <https://instagram.com/modernizing_medicine> [image: [ MOMENTUM 2017 ]] <https://www.eventproducers.events/momentum2017/>
