Kein Serializer für die Klasse org.hibernate.proxy.pojo.Bytebuddy.BytebuddyInterceptorJava

Java-Forum
Anonymous
 Kein Serializer für die Klasse org.hibernate.proxy.pojo.Bytebuddy.BytebuddyInterceptor

Post by Anonymous »

Wenn ich versuche, zu einem Endpunkt zu navigieren, erhalte ich den folgenden Fehler < /p>

Code: Select all

Type definition error: [simple type, class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS)
< /code>
Ich habe alle meine Modelle überprüft und alle Attribute haben Getter und Setter. Also, was ist das Problem?Product
Modell:

Code: Select all

@Entity
public class Product {
private int id;
private String name;
private String photo;
private double price;
private int quantity;
private Double rating;
private Provider provider;
private String description;
private List categories = new ArrayList();
private List
 photos = new ArrayList();

// Getters & Setters
}
< /code>
PagedResponse
Klasse:

Code: Select all

public class PagedResponse {

private List content;
private int page;
private int size;
private long totalElements;
private int totalPages;
private boolean last;

// Getters & Setters
}
< /code>
RestResponse
Klasse:

Code: Select all

public class RestResponse {
private String status;
private int code;
private String message;
private T result;

// Getters & Setters
}
< /code>
In my controller i'm returning [b]ResponseEntity>
[/b]

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post