Handler dispatch failed: java.lang.NoSuchMethodError: ‘java.lang.Object org.hibernate.ScrollableResults.get(int)’
Spring Boot 3.3.3 How to fix the issue? @Transactional(readOnly = true) public Map<Integer, QuotesCountersDto> loansWithQuotesCounters(LoansWithQuotesCountRequestParams params) { companyService.checkCompanyExists(params.getCompanyId()); userService.checkUserHasValidCompany(params.getUserId(), params.getCompanyId()); CriteriaBuilder cb = entityManager.getCriteriaBuilder(); var cq = cb.createTupleQuery(); Root<LoanEntity> loanRoot = cq.from(LoanEntity.class); Join<LoanEntity, QuoteEntity> quoteJoin = loanRoot.join(“quote”, JoinType.INNER); List<Predicate> predicates = getLoanNotExpiredCondition(cb, loanRoot, params); cq.multiselect(loanRoot.get(“loanId”), cb.count(quoteJoin.get(“id”))) .where(predicates.toArray(new Predicate[0])) .groupBy(loanRoot.get(“loanId”), loanRoot.get(“createdOn”)) .orderBy(params.isOlder() ? cb.desc(loanRoot.get(“createdOn”)) : cb.asc(loanRoot.get(“createdOn”))); […]