Schokea Schokea - 2 years ago 146
Java Question

Spring Boot data-rest Jakson JSONSerializer empty

I've a Spring Boot project 1.3.3-Release that I've deployed on to a Web Logic 12c App Server. This code works fine on the embedded tomcat but not when I deploy on to Web Logic.

I've a Spring Data-Rest Repo

@RepositoryRestResource(collectionResourceRel = "car", path = "car")
public interface CarRepo extends PagingAndSortingRepository<Meter, Long>
List<Car> findall();


public class Car
private Long id;

private String manufacturer;


Everything starts up and the web page loads and when I make the rest call I can see the from SQL output the SQL Query executing fine but I then get the below error in my server logs:

java.lang.AbstractMethodError: com.fasterxml.jackson.databind.JsonSerializer.isEmpty(Ljava/lang/Object;) at com.fasterxml.jackson.databind.ser.BeanPropertyWriter.serializeAsField(

I'm assuming the data-rest is trying to automatically map the JSON Response from the endpoint into the Car object but it's failing for some unknown reason.

I've seen from the below link that there was a problem with Spring-Hateoas which I know spring-data-rest uses but seems as I'm using the latest version of spring-data-rest this shouldn't be a problem.

spring-hateoas error

Any help would be greatly appreciated

Answer Source

Ok so the solution is I had to tell weblogic specifically in the weblogic.xml to load the com.fasterxml.jackson packages from the application and not from it's own container.


Full weblogic.xml below:

<?xml version="1.0" encoding="UTF-8"?>

<wls:weblogic-web-app xmlns:wls="" 
    </wls:container-descriptor> </wls:weblogic-web-app>

Hope this helps others.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download