java.lang.NoSuchFieldException: ucp (Java 17) and invesdwin-instrument:1.0.14 or 1.0.10 from 1.0.9

113 views
Skip to first unread message

Surendar Raparla

unread,
Feb 7, 2023, 8:24:08 AM2/7/23
to invesdwin-platform
Hi All,

I am migrating from OpenJDK 11 to openJdk17 and spring boot 2.7.7. on Application boot run, getting below error.

Current version: implementation "de.invesdwin:invesdwin-instrument:1.0.10" and I tried the 1.0.14 version as well.

gradle : 
maven {
      url "https://invesdwin.de/repo/invesdwin-oss-remote"
       allowInsecureProtocol true
}

add the below property in gradle.properties
-add-opens=java.base/jdk.internal.loader=ALL-UNNAMED \


 Exception in thread "main" java.lang.ExceptionInInitializerError
    at com.medline.pw.Application.main(Application.java:17)
Caused by: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.NoSuchFieldException: ucp
    at de.invesdwin.instrument.DynamicInstrumentationLoader.<clinit>(DynamicInstrumentationLoader.java:111)
    ... 1 more
Caused by: java.lang.RuntimeException: java.lang.NoSuchFieldException: ucp
    at de.invesdwin.instrument.DynamicInstrumentationReflections.addPathToSystemClassLoader(DynamicInstrumentationReflections.java:90)
    at de.invesdwin.instrument.DynamicInstrumentationLoader.setAgentClassLoaderReference(DynamicInstrumentationLoader.java:157)
    at de.invesdwin.instrument.DynamicInstrumentationLoader.<clinit>(DynamicInstrumentationLoader.java:80)
    ... 1 more
Caused by: java.lang.NoSuchFieldException: ucp

Thanks,
Surendar

edwin...@gmail.com

unread,
Dec 20, 2023, 1:40:05 PM12/20/23
to invesdwin-platform
Reply all
Reply to author
Forward
0 new messages