You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2018/01/11 15:32:00 UTC

[jira] [Commented] (KARAF-5472) Karaf RmiRegistryFactory throws a warning with Java 9

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

Guillaume Nodet commented on KARAF-5472:
----------------------------------------

The problem won't be fixed by the JDK.  At some point, the default will be changed to {{--illegal-access=deny}} which will break the code. See https://jaxenter.com/jdk-9-replace-permit-illegal-access-134180.html

> Karaf RmiRegistryFactory throws a warning with Java 9
> -----------------------------------------------------
>
>                 Key: KARAF-5472
>                 URL: https://issues.apache.org/jira/browse/KARAF-5472
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-management
>    Affects Versions: 4.2.0.M1
>            Reporter: Jean-Baptiste Onofré
>             Fix For: 4.2.0
>
>
> At startup, the {{RmiRegistryFactory}} creates a WARNING with Java9:
> {code}
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by org.apache.karaf.management.RmiRegistryFactory (jar:bundle://28.0:0/!/) to field sun.rmi.transport.tcp.TCPEndpoint.localEndpoints
> WARNING: Please consider reporting this to the maintainers of org.apache.karaf.management.RmiRegistryFactory
> 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
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)