You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Ernest Burghardt (Jira)" <ji...@apache.org> on 2022/05/09 16:39:00 UTC

[jira] [Assigned] (GEODE-9473) Geode deserialization will fail on java 16

     [ https://issues.apache.org/jira/browse/GEODE-9473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ernest Burghardt reassigned GEODE-9473:
---------------------------------------

    Assignee: Ernest Burghardt

> Geode deserialization will fail on java 16
> ------------------------------------------
>
>                 Key: GEODE-9473
>                 URL: https://issues.apache.org/jira/browse/GEODE-9473
>             Project: Geode
>          Issue Type: Bug
>          Components: serialization
>            Reporter: Darrel Schneider
>            Assignee: Ernest Burghardt
>            Priority: Major
>              Labels: Java16, Java17
>
> In three different places geode deserialization calls setAccessible in order to make the constructor callable. This will not work on java 16 and later because it calls Field.setAccessible which is not allowed under normal conditions starting with java 16 (see: https://softwaregarden.dev/en/posts/new-java/illegal-access-in-java-16 ).
> To workaround this failure set the JVM command line option: --illegal-access=permit or use --add-opens.
> The places that make the calls for deserialization are:
> * org.apache.geode.internal.InternalDataSerializer#newInstance
> * org.apache.geode.internal.InternalDataSerializer#readDataSerializable
> * org.apache.geode.internal.InternalInstantiator#newInstance



--
This message was sent by Atlassian Jira
(v8.20.7#820007)