You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Michael Justin (Jira)" <ji...@apache.org> on 2020/01/28 19:21:00 UTC

[jira] [Comment Edited] (ARTEMIS-2343) "Illegal reflective access" warning with OpenJDK 11

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

Michael Justin edited comment on ARTEMIS-2343 at 1/28/20 7:20 PM:
------------------------------------------------------------------

Yes, here is the startup output of C:\Users\Michael\Documents\Java\artemis-2.11.0\bin\artemis.cmd run :

 
{noformat}
Warning: JAVA_HOME environment variable is not set.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.sun.xml.bind.v2.runtime.reflect.opt.Injector$1 (file:/C:/Users/Michael/Documents/Java/apache-artemis-2.11.0/lib/jaxb-impl-2.2.7.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
WARNING: Please consider reporting this to the maintainers of com.sun.xml.bind.v2.runtime.reflect.opt.Injector$1
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
 _ _ _
 / \ ____| |_ ___ __ __(_) _____
 / _ \| _ \ __|/ _ \ \/ | |/ __/
 / ___ \ | \/ |_/ __/ |\/| | |\___ \
 /_/ \_\| \__\____|_| |_|_|/___ /
 Apache ActiveMQ Artemis 2.11.0
{noformat}
 

 

Current Java Version:

C:\Users\Michael>java -version
 openjdk version "11.0.4" 2019-07-16
 OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.4+11)
 OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.4+11, mixed mode)

 


was (Author: mjustin):
Yes, here is the startup output of C:\Users\Michael\Documents\Java\artemis-2.11.0\bin\artemis.cmd run :

 
{noformat}
Warning: JAVA_HOME environment variable is not set.
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by com.sun.xml.bind.v2.runtime.reflect.opt.Injector$1 (file:/C:/Users/Michael/Documents/Java/apache-artemis-2.11.0/lib/jaxb-impl-2.2.7.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
WARNING: Please consider reporting this to the maintainers of com.sun.xml.bind.v2.runtime.reflect.opt.Injector$1
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
 _ _ _
 / \ ____| |_ ___ __ __(_) _____
 / _ \| _ \ __|/ _ \ \/ | |/ __/
 / ___ \ | \/ |_/ __/ |\/| | |\___ \
 /_/ \_\| \__\____|_| |_|_|/___ /
 Apache ActiveMQ Artemis 2.11.0
{noformat}
 

 

Java Version:

C:\Users\Michael>java -version
openjdk version "11.0.4" 2019-07-16
OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.4+11)
OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.4+11, mixed mode)

 

> "Illegal reflective access" warning with OpenJDK 11
> ---------------------------------------------------
>
>                 Key: ARTEMIS-2343
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-2343
>             Project: ActiveMQ Artemis
>          Issue Type: Improvement
>          Components: Broker
>    Affects Versions: 2.7.0, 2.8.0
>         Environment: openjdk version "11.0.2" 2019-01-15
> OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
> OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
> Windows 7 64bit
>            Reporter: Michael Justin
>            Priority: Major
>
> Console output:
> {quote}WARNING: Illegal reflective access by com.sun.xml.bind.v2.runtime.reflect.opt.In
> jector$1 (file:/C:/Java/apache-artemis-2.8.0/lib/jaxb-impl-2.2.7.jar) to method
> java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int)
> {quote}
> Root cause and potential fix:
> https://stackoverflow.com/a/50251510/80901



--
This message was sent by Atlassian Jira
(v8.3.4#803005)