[jboss-jira] [JBoss JIRA] (WFLY-10031) Scripts throws "illegal reflective access" warning on JDK9+

James Perkins (JIRA) issues at jboss.org
Tue May 22 09:21:02 EDT 2018


    [ https://issues.jboss.org/browse/WFLY-10031?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13580295#comment-13580295 ] 

James Perkins edited comment on WFLY-10031 at 5/22/18 9:20 AM:
---------------------------------------------------------------

I think we can consider this fixed. I just ran all those commands with Java 9 and I no longer see any of those issues.

{code}
jperkins at localhost ~/servers/wildfly-13.0.0.Beta1 $ java -version
java version "9.0.4"
Java(TM) SE Runtime Environment (build 9.0.4+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)
jperkins at localhost ~/servers/wildfly-13.0.0.Beta1 $ ./bin/jboss-cli.sh "echo test"
test
jperkins at localhost ~/servers/wildfly-13.0.0.Beta1 $ ./bin/add-user.sh -u test4 -p Test123* -s
jperkins at localhost ~/servers/wildfly-13.0.0.Beta1 $ ./bin/appclient.sh -v
06:19:43,840 INFO  [org.jboss.modules] (main) JBoss Modules version 1.8.5.Final
WildFly Full 13.0.0.Beta1 (WildFly Core 5.0.0.Beta3)
{code}


was (Author: jamezp):
I think we can consider this fixed. I just ran all those commands with Java 9 and I no longer see any of those issues.

{code}
jperkins at localhost ~/projects/jboss/wildfly/wildfly-core/build (master) $ java -version
java version "9.0.4"
Java(TM) SE Runtime Environment (build 9.0.4+11)
Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)
jperkins at localhost ~/projects/jboss/wildfly/wildfly-core/build (master) $ ./target/wildfly-core-5.0.0.Beta5-SNAPSHOT/bin/jboss-cli.sh "echo test"
test
jperkins at localhost ~/projects/jboss/wildfly/wildfly-core/build (master) $ ./target/wildfly-core-5.0.0.Beta5-SNAPSHOT/bin/add-user.sh -u test4 -p Test123* -s
jperkins at localhost ~/projects/jboss/wildfly/wildfly/build (master) $ ./target/wildfly-13.0.0.Beta2-SNAPSHOT/bin/appclient.sh -v
06:11:19,469 INFO  [org.jboss.modules] (main) JBoss Modules version 1.8.5.Final
WildFly Full 13.0.0.Beta2-SNAPSHOT (WildFly Core 5.0.0.Beta4)
{code}

> Scripts throws "illegal reflective access" warning on JDK9+
> -----------------------------------------------------------
>
>                 Key: WFLY-10031
>                 URL: https://issues.jboss.org/browse/WFLY-10031
>             Project: WildFly
>          Issue Type: Bug
>          Components: Scripts, Security
>            Reporter: Marek Kopecký
>            Assignee: James Perkins
>            Priority: Blocker
>              Labels: blocker-WF14
>             Fix For: 13.0.0.Beta1
>
>
> *Description of the issue:*
> Scripts throws "illegal reflective access" warning on JDK9/10/11.
> *How reproducible:*
> Always with JDK9, 10 and 11
> *Steps to Reproduce:*
> * ./jboss-cli.sh "echo test"
> * ./add-user.sh -u test4 -p Test123* -s
> * ./appclient.sh -v
> * ./wsconsume.sh
> * ./wsprovide.sh
> * ./domain.sh
> * ./standalone.sh
> *Actual results:*
> {noformat}
> [hudson at rhel7-large-9887 bin]$ java --version
> java 9.0.4
> Java(TM) SE Runtime Environment (build 9.0.4+11)
> Java HotSpot(TM) 64-Bit Server VM (build 9.0.4+11, mixed mode)
> [hudson at rhel7-large-9887 bin]$ 
> {noformat}
> {noformat}
> [hudson at rhel7-large-9887 bin]$ ./jboss-cli.sh "echo test"
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by org.jboss.logmanager.LogManager$2 (jar:file:/home/hudson/hudson_workspace/workspace/early-testing-scripts-unix/9774dccf/wildfly/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.0.9.Final.jar!/) to constructor java.util.logging.Level$KnownLevel(java.util.logging.Level)
> WARNING: Please consider reporting this to the maintainers of org.jboss.logmanager.LogManager$2
> 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
> test
> [hudson at rhel7-large-9887 bin]$ 
> {noformat}
> {noformat}
> [hudson at rhel7-large-9887 bin]$ ./add-user.sh -u test4 -p Test123* -s
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by org.jboss.logmanager.LogManager$2 (jar:file:/home/hudson/hudson_workspace/workspace/early-testing-scripts-unix/9774dccf/wildfly/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.0.9.Final.jar!/) to constructor java.util.logging.Level$KnownLevel(java.util.logging.Level)
> WARNING: Please consider reporting this to the maintainers of org.jboss.logmanager.LogManager$2
> 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
> [hudson at rhel7-large-9887 bin]$ cat ../standalone/configuration/mgmt-users.properties  | tail -n 1
> test4=a95aa9d159b7afe0cc9d3795061551ad
> [hudson at rhel7-large-9887 bin]$
> {noformat}
> {noformat}
> [hudson at rhel7-large-9887 bin]$ ./appclient.sh -v
> WARNING: An illegal reflective access operation has occurred
> WARNING: Illegal reflective access by org.jboss.logmanager.LogManager$2 (jar:file:/home/hudson/hudson_workspace/workspace/early-testing-scripts-unix/9774dccf/wildfly/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.0.9.Final.jar!/) to constructor java.util.logging.Level$KnownLevel(java.util.logging.Level)
> WARNING: Please consider reporting this to the maintainers of org.jboss.logmanager.LogManager$2
> 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
> 06:11:52,205 INFO  [org.jboss.modules] (main) JBoss Modules version 1.7.0.Final
> WildFly Full 13.0.0.Alpha1-SNAPSHOT (WildFly Core 4.0.0.Final)
> [hudson at rhel7-large-9887 bin]$ 
> {noformat}
> *Expected results:*
> No warnings



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)



More information about the jboss-jira mailing list