Vladislav Pyatkov created IGNITE-24704:
------------------------------------------
Summary: Micronaut hook throws exception when run in java 21
Key: IGNITE-24704
URL: https://issues.apache.org/jira/browse/IGNITE-24704
Project: Ignite
Issue Type: Bug
Reporter: Vladislav Pyatkov
h3. Motivation
We run tests in java 11, but we also support versions above.
{code|title=MicronautCleanup#isMicronautHook}
org.apache.ignite.internal.lang.IgniteInternalException: IGN-CMN-65535
TraceId:526af083-c5bb-4cd4-9c4b-479fcf4c1ff7 Did not find a field
at
org.apache.ignite.internal.testframework.IgniteTestUtils.getField(IgniteTestUtils.java:181)
at
org.apache.ignite.internal.testframework.IgniteTestUtils.getFieldValue(IgniteTestUtils.java:201)
at
org.apache.ignite.internal.MicronautCleanup.isMicronautHook(MicronautCleanup.java:61)
at
org.apache.ignite.internal.MicronautCleanup.removeShutdownHooks(MicronautCleanup.java:51)
at
org.apache.ignite.internal.ClusterPerClassIntegrationTest.stopCluster(ClusterPerClassIntegrationTest.java:171)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
at
java.base/java.util.Collections$UnmodifiableCollection.forEach(Collections.java:1116)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
Caused by: java.lang.NoSuchFieldException: target
at java.base/java.lang.Class.getDeclaredField(Class.java:2782)
at
org.apache.ignite.internal.testframework.IgniteTestUtils.getField(IgniteTestUtils.java:179)
... 8 more
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)