[ 
https://issues.apache.org/jira/browse/HDDS-10121?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17809432#comment-17809432
 ] 

Devesh Kumar Singh commented on HDDS-10121:
-------------------------------------------

[~adoroszlai] , I observed "OZONE_MODULE_ACCESS_ARGS" for opening module access 
Java 9 onwards, so tried to add like below:
{noformat}
OZONE_MODULE_ACCESS_ARGS="--add-opens='java.base/java.lang=ALL-UNNAMED' 
--add-opens='java.base/java.lang.reflect=ALL-UNNAMED' 
--add-opens='java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED' 
--add-exports='java.management/com.sun.jmx.mbeanserver=ALL-UNNAMED' 
--add-exports='java.base/sun.net.dns=ALL-UNNAMED'"{noformat}
but on executing the test , it still complaining of java.lang.reflect module 
not opened, so I am having doubt, if above args variable is being used 
correctly in script.

!image-2024-01-22-18-36-53-097.png|width=671,height=181!

> GenericTestUtils.getFieldReflection fails with Java 17
> ------------------------------------------------------
>
>                 Key: HDDS-10121
>                 URL: https://issues.apache.org/jira/browse/HDDS-10121
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: test
>            Reporter: Attila Doroszlai
>            Assignee: Devesh Kumar Singh
>            Priority: Major
>         Attachments: image-2024-01-22-18-36-53-097.png
>
>
> {code}
> NoSuchFieldException: modifiers
>       at java.base/java.lang.Class.getDeclaredField(Class.java:2610)
>       at 
> org.apache.ozone.test.GenericTestUtils.getFieldReflection(GenericTestUtils.java:236)
>       at 
> org.apache.hadoop.ozone.container.TestECContainerRecovery.testECContainerRecoveryWithTimedOutRecovery(TestECContainerRecovery.java:304)
> {code}



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to