[jira] [Commented] (CRYPTO-158) Illegal reflective access
[ https://issues.apache.org/jira/browse/CRYPTO-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17791758#comment-17791758 ] Sebb commented on CRYPTO-158: - I have seen this regularly in tests using Java 11 on Ubuntu and macOs. The warning does not occur in java 17 or java 21; it looks like the request is just denied using ReflectiveOperationException. This is currently silently swallowed by the code. > Illegal reflective access > - > > Key: CRYPTO-158 > URL: https://issues.apache.org/jira/browse/CRYPTO-158 > Project: Commons Crypto > Issue Type: Bug > Components: Cipher >Affects Versions: 1.1.0 > Environment: Linux OpenJDK 15.0.2 >Reporter: Juan F Arjona >Priority: Minor > > Getting this message: > WARNING: An illegal reflective access operation has occurred > WARNING: Illegal reflective access by > org.apache.commons.crypto.stream.CryptoInputStream > (.../BOOT-INF/lib/commons-crypto-1.1.0.jar!/) to method > sun.nio.ch.DirectBuffer.cleaner() > WARNING: Please consider reporting this to the maintainers of > org.apache.commons.crypto.stream.CryptoInputStream > WARNING: Use --illegal-access=warn to enable warnings of further illegal > reflective access operations > WARNING: All illegal access operations will be denied in a future release -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (CRYPTO-158) Illegal reflective access
[ https://issues.apache.org/jira/browse/CRYPTO-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17780738#comment-17780738 ] Sebb commented on CRYPTO-158: - The class CryptoInputStream does currently use reflection to deallocate the buffers. AFAICT there is no supported way to do this. It looks like one has to wait for GC to free the memory. It might be sufficient to change the freeDirectBuffer method to use clear() instead. > Illegal reflective access > - > > Key: CRYPTO-158 > URL: https://issues.apache.org/jira/browse/CRYPTO-158 > Project: Commons Crypto > Issue Type: Bug > Components: Cipher >Affects Versions: 1.1.0 > Environment: Linux OpenJDK 15.0.2 >Reporter: Juan F Arjona >Priority: Minor > > Getting this message: > WARNING: An illegal reflective access operation has occurred > WARNING: Illegal reflective access by > org.apache.commons.crypto.stream.CryptoInputStream > (.../BOOT-INF/lib/commons-crypto-1.1.0.jar!/) to method > sun.nio.ch.DirectBuffer.cleaner() > WARNING: Please consider reporting this to the maintainers of > org.apache.commons.crypto.stream.CryptoInputStream > WARNING: Use --illegal-access=warn to enable warnings of further illegal > reflective access operations > WARNING: All illegal access operations will be denied in a future release -- This message was sent by Atlassian Jira (v8.20.10#820010)
[jira] [Commented] (CRYPTO-158) Illegal reflective access
[ https://issues.apache.org/jira/browse/CRYPTO-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17431243#comment-17431243 ] Matthew Lannan commented on CRYPTO-158: --- woops! > Illegal reflective access > - > > Key: CRYPTO-158 > URL: https://issues.apache.org/jira/browse/CRYPTO-158 > Project: Commons Crypto > Issue Type: Bug > Components: Cipher >Affects Versions: 1.1.0 > Environment: Linux OpenJDK 15.0.2 >Reporter: Juan F Arjona >Priority: Minor > > Getting this message: > WARNING: An illegal reflective access operation has occurred > WARNING: Illegal reflective access by > org.apache.commons.crypto.stream.CryptoInputStream > (.../BOOT-INF/lib/commons-crypto-1.1.0.jar!/) to method > sun.nio.ch.DirectBuffer.cleaner() > WARNING: Please consider reporting this to the maintainers of > org.apache.commons.crypto.stream.CryptoInputStream > WARNING: Use --illegal-access=warn to enable warnings of further illegal > reflective access operations > WARNING: All illegal access operations will be denied in a future release -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (CRYPTO-158) Illegal reflective access
[ https://issues.apache.org/jira/browse/CRYPTO-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17431230#comment-17431230 ] Gary D. Gregory commented on CRYPTO-158: Nifi is not part of Commons Crypto. You'll want to pass that one on to Nifi. > Illegal reflective access > - > > Key: CRYPTO-158 > URL: https://issues.apache.org/jira/browse/CRYPTO-158 > Project: Commons Crypto > Issue Type: Bug > Components: Cipher >Affects Versions: 1.1.0 > Environment: Linux OpenJDK 15.0.2 >Reporter: Juan F Arjona >Priority: Minor > > Getting this message: > WARNING: An illegal reflective access operation has occurred > WARNING: Illegal reflective access by > org.apache.commons.crypto.stream.CryptoInputStream > (.../BOOT-INF/lib/commons-crypto-1.1.0.jar!/) to method > sun.nio.ch.DirectBuffer.cleaner() > WARNING: Please consider reporting this to the maintainers of > org.apache.commons.crypto.stream.CryptoInputStream > WARNING: Use --illegal-access=warn to enable warnings of further illegal > reflective access operations > WARNING: All illegal access operations will be denied in a future release -- This message was sent by Atlassian Jira (v8.3.4#803005)
[jira] [Commented] (CRYPTO-158) Illegal reflective access
[ https://issues.apache.org/jira/browse/CRYPTO-158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17431161#comment-17431161 ] Matthew Lannan commented on CRYPTO-158: --- Also for the below package... WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.apache.nifi.bootstrap.util.OSUtils (file:/home/user/tools/nifi-1.12.0/lib/bootstrap/nifi-bootstrap-1.12.0.jar) to method java.lang.ProcessImpl.pid() WARNING: Please consider reporting this to the maintainers of org.apache.nifi.bootstrap.util.OSUtils > Illegal reflective access > - > > Key: CRYPTO-158 > URL: https://issues.apache.org/jira/browse/CRYPTO-158 > Project: Commons Crypto > Issue Type: Bug > Components: Cipher >Affects Versions: 1.1.0 > Environment: Linux OpenJDK 15.0.2 >Reporter: Juan F Arjona >Priority: Minor > > Getting this message: > WARNING: An illegal reflective access operation has occurred > WARNING: Illegal reflective access by > org.apache.commons.crypto.stream.CryptoInputStream > (.../BOOT-INF/lib/commons-crypto-1.1.0.jar!/) to method > sun.nio.ch.DirectBuffer.cleaner() > WARNING: Please consider reporting this to the maintainers of > org.apache.commons.crypto.stream.CryptoInputStream > WARNING: Use --illegal-access=warn to enable warnings of further illegal > reflective access operations > WARNING: All illegal access operations will be denied in a future release -- This message was sent by Atlassian Jira (v8.3.4#803005)