-
Notifications
You must be signed in to change notification settings - Fork 353
JPA : antlr error with @ElementCollection @OrderBy #1473
Comments
We're going to need more information to understand what's going on here. A complete stacktrace would help, but I suspect a minimal, sample application would be more helpful. Could you share a minimal repro app for this? |
The stacktrace is empty with only CharScanner; panic: ClassNotFoundException: antlr.CommonToken exception;
OS is MacOS 12.1 |
There is no way for us to reproduce the problem with the information you've provided. |
Finally, I found this issue occurs when I use @orderby annotation in hibernate entity |
I can reproduce by adding |
I have been able to get past this error by adding:
But I get the following error which lead me to think Antlr require more reflection configuration:
@christophstrobl @schauder Could you please take it from there? |
I have an issue when running native spring boot app on Gradle with nativeRun or bootBuildImage and then run on docker;
when the application is launching after checking JPA the following exception accrue and application is failed to launch
CharScanner; panic: ClassNotFoundException: antlr.CommonToken
pluings I used:
plugins {
id 'org.springframework.boot' version '2.6.3'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id 'org.springframework.experimental.aot' version '0.11.2'
id 'org.hibernate.orm'
}
build image config:
bootBuildImage {
builder = 'paketobuildpacks/builder:tiny'
environment = ['BP_NATIVE_IMAGE': 'true']
imageName='ahs441/vimage'
}
hibernate config:
hibernate {
enhance {
enableLazyInitialization = true
enableDirtyTracking = true
enableAssociationManagement = true
enableExtendedEnhancement = false
}
}
The text was updated successfully, but these errors were encountered: