Builds and runs unit tests. More details of the release in https://wiki.openmrs.org/x/i4DTAw

Build: #1724 failed

Job: Build and Test JDK 17 failed

Job result summary

Completed
Duration
1 minute
Agent
xiao.openmrs.org (2)
Revision
0fbab492b3ac1d7022d33d5b63fcd069ac3ae2c4
Failing since
#1716 (Changes by Ruhanga <41738040+Ruhanga@users.noreply.github.com>)
No failed test found. A possible compilation error occurred.

Configuration changes

Job Build and Test JDK 17 with key RESTWS-RESTWS-BTJ17 no longer exists.

Error summary

The build generated some errors. See the full build log for more details.

+ export IMAGE=maven:3.9.9-amazoncorretto-17
+ IMAGE=maven:3.9.9-amazoncorretto-17
+ docker pull maven:3.9.9-amazoncorretto-17
+ docker run -v m2-repo:/root/.m2/repository -v /data/bamboo-agent/xml-data/build-dir/RESTWS-RESTWS-BTJ17:/module --rm -w=/module maven:3.9.9-amazoncorretto-17 bash -c 'mvn clean package && chmod -R 777 .'
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.RuntimeException: Class java/util/UUID could not be instrumented.
        at org.jacoco.agent.rt.internal_6da5971.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:140)
        at org.jacoco.agent.rt.internal_6da5971.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:101)
        at org.jacoco.agent.rt.internal_6da5971.PreMain.createRuntime(PreMain.java:55)
        at org.jacoco.agent.rt.internal_6da5971.PreMain.premain(PreMain.java:47)
        ... 6 more
Caused by: java.lang.NoSuchFieldException: $jacocoAccess
        at java.base/java.lang.Class.getField(Class.java:2117)
        at org.jacoco.agent.rt.internal_6da5971.core.runtime.ModifiedSystemClassRuntime.createFor(ModifiedSystemClassRuntime.java:138)
        ... 9 more
*** 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
/bin/sh: line 1:    90 Aborted                 (core dumped) '/usr/lib/jvm/java-17-amazon-corretto/bin/java' '-javaagent:/root/.m2/repository/org/jacoco/org.jacoco.agent/0.7.7.201606060606/org.jacoco.agent-0.7.7.201606060606-runtime.jar=destfile=/module/omod-common/target/jacoco.exec,includes=org/openmrs/**' '-jar' '/module/omod-common/target/surefire/surefirebooter-20250805205743166_3.jar' '/module/omod-common/target/surefire' '2025-08-05T20-57-42_461-jvmRun1' 'surefire-20250805205743166_1tmp' 'surefire_0-20250805205743166_2tmp'