jdbi icon indicating copy to clipboard operation
jdbi copied to clipboard

An illegal reflective access operation has occurred

Open vuminh88 opened this issue 6 years ago • 1 comments

WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.skife.jdbi.cglib.core.ReflectUtils$1 (file:./lib/jdbi.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) WARNING: Please consider reporting this to the maintainers of org.skife.jdbi.cglib.core.ReflectUtils$1 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release

vuminh88 avatar Feb 14 '19 10:02 vuminh88

Based on the name jdbi.jar and the cglib use, this looks to be about jdbi v2. We have not and will likely not update v2 to be compatible with JDK11+, all new development is on v3. It's possible the fix is as simple as updating cglib and rebuilding, which would be an easy fix, but it could also open up a huge can of worms.

stevenschlansker avatar Feb 14 '19 16:02 stevenschlansker

closing v2 issues, this works in v3

stevenschlansker avatar Nov 15 '22 16:11 stevenschlansker

glib and rebuildin

Could you please confirm, which jdbi version support for java 17 or 19 ?

nagaraju1692 avatar May 15 '23 07:05 nagaraju1692

The latest jdbi 3 versions will work in any supported JDK. (11, 17, 20 right now)

stevenschlansker avatar Jun 07 '23 17:06 stevenschlansker