Skip to content
Advertisement

querydsl: java.lang.NoSuchFieldError: TREATED_PATH

springboot version is 2.51, java vsersion 1.8 it will crash in selectFrom(), erro info: java.lang.NoSuchFieldError: TREATED_PATH

how to resolve it,i cant find a way in web

there is my code

JavaScript

there is dependency

JavaScript
JavaScript
BmsPost.java

Advertisement

Answer

You have mixed versions of querydsl. I guess you are having querydsl-core version 4.4.x while your querydsl-jpa is of version 5.0.0.M1. (this is probably caused by a spring-boot starter library.)

Anyhow, this can easily fixed by explicitely adding the correct version of querydsl-core as dependency.

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement