I setup on a Java EE 7.0 server (Oracle WebLogic) using 3.0.20190714142556 with a simple resource (customer) loaded as JPA Entity with JpaEntityRepositoryBase from a database. The application can be deployed without problems. crnk.io will be used with JAX-RS in this application. However when accessing the resource (customer) with findAll() I got a NullPointerException in JpaCriteriaQueryBackend.getOrderList()
.
Tried to use the application in Oracle WebLogic Server 12.2.1.3 and also Payara Server. In both cases the same error occurred.
The following code line in this class returns a null instead of an empty list I guess: criteriaQuery.getOrderList().
@Override
public List<Order> getOrderList() {
return new ArrayList<>(criteriaQuery.getOrderList());
}
Currently a NullPointerException was reported in line 109 of JpaCriteriaQueryBackend. Expected is that all available customers will be loaded as result.
Expected result is to get the list of customers from the database.