Getting An illegal reflective access operation has occurred warning - when installing AEM. | Community
Skip to main content
Level 2
September 2, 2020
Solved

Getting An illegal reflective access operation has occurred warning - when installing AEM.

  • September 2, 2020
  • 4 replies
  • 14647 views

Hello All,

  When installing AEM 6.5 I am getting below warning.. what could be the cause?  - AEM 6.5 , Jdk 11.0.8-windows

 

java -server -XX:MaxPermSize=256m -Xmx1024M -jar aem-author-p4502.jar -r author, nosamplecontent
Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option MaxPermSize; support was removed in 8.0
Loading quickstart properties: default
Loading quickstart properties: instance
Low-memory action set to fork
Using 64bit VM settings, min.heap=1024MB, min permgen=256MB, default fork arguments=[-Xmx1024m, -XX:MaxPermSize=256m]
The JVM reports a heap size of 1024 MB, meets our expectation of 1024 MB +/- 20
Setting properties from filename 'C:/Users/dev/aem-blank/author/aem-author-p4502.jar'
Option '-quickstart.server.port' set to '4502' from filename aem-author-p4502.jar
Setting 'sling.run.modes' to 'author,,nosamplecontent' from command line.
The admin password for this instance hasn't been defined yet.
Please enter the desired admin password:
Please re-enter password:
Verbose option not active, closing stdin and redirecting stdout and stderr
Redirecting stdout to ....
Redirecting stderr to ..
Press CTRL-C to shutdown the Quickstart server...
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.felix.framework.ext.ClassPathExtenderFactory$DefaultClassLoaderExtender (file:/C:/Users/dev/aem-blank/author/crx-quickstart/launchpad/org.apache.sling.launchpad.base.jar.1599067529509) to method java.net.URLClassLoader.addURL(java.net.URL)
WARNING: Please consider reporting this to the maintainers of org.apache.felix.framework.ext.ClassPathExtenderFactory$DefaultClassLoaderExtender
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

 

Thanks

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by bilal_ahmad

Hello @veemat1 you may ignore these warning messages because they do not hamper any functionality of AEM. You may suppress the warnings. Thanks, Bilal.

4 replies

bilal_ahmad
bilal_ahmadAccepted solution
Level 5
September 2, 2020

Hello @veemat1 you may ignore these warning messages because they do not hamper any functionality of AEM. You may suppress the warnings. Thanks, Bilal.

veemat1Author
Level 2
September 2, 2020
Thanks for your help. Yes install works, but not sure why so many warning.
Nikhil-Kumar
Community Advisor
Community Advisor
September 3, 2020

@veemat1 

Warning will not hamper the overall working of AEM server. 
Just verify some of it's basic functionality before building an end-to-end application.

Thanks,
Nikhil

arunpatidar
Community Advisor
Community Advisor
September 3, 2020

I think these messages are due to JAVA 11

These messages can be ignored because they do not impact the AEM use or functionality.

Arun Patidar
mohammeds537171
April 10, 2023

Hi @arunpatidar 

 

I am facing same issue, but AEM instance is not up and running. Because of above warning issue?

Loading quickstart properties: default
Loading quickstart properties: instance
Low-memory action set to fork
Using 64bit VM settings, min.heap=1024MB, min permgen=256MB, default fork arguments=[-Xmx1024m, -XX:MaxPermSize=256m]
The JVM reports a heap size of 1024 MB, meets our expectation of 1024 MB +/- 20
Setting properties from filename 'XXXXXXXXXXXXXXXX/Author/aem-author-p4502.jar'
Option '-quickstart.server.port' set to '4502' from filename aem-author-p4502.jar
Setting 'sling.run.modes' to 'XXXXXXXXXXX' from command line.

Verbose option not active, closing stdin and redirecting stdout and stderr
Redirecting stdout to C:\Users\XXXXXXX\Author\crx-quickstart\logs\stdout.log
Redirecting stderr to C:\Users\XXXXXXXXXXXXXX\Author\crx-quickstart\logs\stderr.log
Press CTRL-C to shutdown the Quickstart server...
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.felix.framework.ext.ClassPathExtenderFactory$DefaultClassLoaderExtender (file:/C:/Users/XXXXXXXXX/Author/crx-quickstart/launchpad/org.apache.sling.launchpad.base.jar) to method java.net.URLClassLoader.addURL(java.net.URL)
WARNING: Please consider reporting this to the maintainers of org.apache.felix.framework.ext.ClassPathExtenderFactory$DefaultClassLoaderExtender
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

 



arunpatidar
Community Advisor
Community Advisor
April 10, 2023

Hi

The AEM is started and running and you are getting 500 error.

Could you please check the error logs?

Arun Patidar
Love_Sharma
Level 4
February 26, 2024

Hello community,

 

For future visitors, when this happened with me, after warnings my start up process was getting terminated. So my AEM was not starting even after warnings. 

I deleted my quickstart folder and ran java -jar aem-author-p4502.jar command and it worked. My AEM started with the warnings. Only issue here is if you have huge content already deployed to your instance will be gone.

 

Thanks

Love Sharma