An illegal reflective access operation has occurred., While migrate the Spring boot application from java 11 to 17.

21 views
Skip to first unread message

Nagaraju Yanamala

unread,
May 15, 2023, 1:35:53 PM5/15/23
to jDBI

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

Changed the java version from 11 to 17.

Michael Conrad

unread,
May 15, 2023, 2:58:33 PM5/15/23
to jd...@googlegroups.com
How old of a version of JDBI are you using?


On 5/15/23 13:35, Nagaraju Yanamala wrote:

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

Changed the java version from 11 to 17.

--
You received this message because you are subscribed to the Google Groups "jDBI" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jdbi+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jdbi/2f3eccb5-7934-4819-ad40-0c9e049f1a96n%40googlegroups.com.

Nagaraju Yanamala

unread,
May 15, 2023, 11:50:43 PM5/15/23
to jd...@googlegroups.com
Hi Michael,

I am using the JDBI 2.78 version.


Thanks,
Nagaraju.Y

You received this message because you are subscribed to a topic in the Google Groups "jDBI" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jdbi/a3twhTaqYMM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jdbi+uns...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jdbi/0d328269-4d67-9816-25fb-3e710f1e5bd9%40newsrx.com.

Michael Conrad

unread,
May 16, 2023, 8:21:15 AM5/16/23
to jd...@googlegroups.com
You need to upgrade to 3.x to solve the issue. That older version is no longer supported and is not receiving updates.

Nagaraju Yanamala

unread,
May 17, 2023, 7:23:01 AM5/17/23
to jDBI
Can you share the sample application ?

Steven Schlansker

unread,
May 17, 2023, 12:51:02 PM5/17/23
to jd...@googlegroups.com


> On May 17, 2023, at 4:23 AM, Nagaraju Yanamala <nagaraj...@gmail.com> wrote:
>
> Can you share the sample application ?
>

Sorry, this is too general of a question for us to answer.

Hopefully you will find upgrading is not too difficult, and there is a list of helpful notes in the documentation:
https://jdbi.org/#_upgrading_from_v2_to_v3
> To view this discussion on the web visit https://groups.google.com/d/msgid/jdbi/882b6035-2c5d-4128-a099-d2e4af341a1cn%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages