Robert Munteanu created SLING-12617:
---------------------------------------

             Summary: Internal error when running the connection timeout agent 
with Java 17 or 21
                 Key: SLING-12617
                 URL: https://issues.apache.org/jira/browse/SLING-12617
             Project: Sling
          Issue Type: Bug
          Components: Extensions
            Reporter: Robert Munteanu
            Assignee: Robert Munteanu
             Fix For: Connection Timeout Agent 1.0.4


$ /usr/lib64/jvm/java-17/bin/java 
-javaagent:target/org.apache.sling.connection-timeout-agent-1.0.3-SNAPSHOT-jar-with-dependencies.jar=1000,1000
 -cp target/test-classes:target/it-dependencies/* 
org.apache.sling.cta.impl.HttpClientLauncher https://sling.apache.org JavaNet
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
        at 
java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:569)
        at 
java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:491)
        at 
java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:503)
Caused by: java.lang.ClassCircularityError: java/lang/WeakPairMap$Pair$Weak
(snip)
*** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message 
Outstanding error when calling method in invokeJavaAgentMainMethod at 
src/java.instrument/share/native/libinstrument/JPLISAgent.c line: 619
*** java.lang.instrument ASSERTION FAILED ***: "success" with message 
invokeJavaAgentMainMethod failed at 
src/java.instrument/share/native/libinstrument/JPLISAgent.c line: 459
*** java.lang.instrument ASSERTION FAILED ***: "result" with message agent 
load/premain call failed at 
src/java.instrument/share/native/libinstrument/JPLISAgent.c line: 422
FATAL ERROR in native method: processing of -javaagent failed, processJavaStart 
failed
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V  [libjvm.so+0x8de5f2]  jni_FatalError+0xb2
V  [libjvm.so+0xa6b1c5]  JvmtiExport::post_vm_initialized()+0x265
V  [libjvm.so+0xed4e84]  Threads::create_vm(JavaVMInitArgs*, bool*)+0x924
V  [libjvm.so+0x8ed212]  JNI_CreateJavaVM+0x52
C  [libjli.so+0x4b9f]
C  [libjli.so+0x9049]


Aborted (core dumped)




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to