Uploaded image for project: 'Cloud Enablement'
  1. Cloud Enablement
  2. CLOUD-3131

Jolokia - An illegal reflective access operation has occurred warning

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • None
    • None
    • EAP7
    • None
    • Cloud Sprint 32, Cloud Sprint 33, Cloud Sprint 34, Cloud Sprint 35, Cloud Sprint 36, Cloud Sprint 37

      If EAP 7.2 Openshift image (jboss-eap72-openjdk-11-openshift) is started with Jolokia agent with JDK 11 then agent fails to start:

      WARN Configuration of an embedded messaging broker within the appserver is enabled but is not recommended. Support for such a configuration will be removed in a future release.
      INFO If you are not configuring messaging destinations, to disable configuring an embedded messaging broker set the DISABLE_EMBEDDED_JMS_BROKER environment variable to true.
      WARN No password defined for JGroups cluster. AUTH protocol will be disabled. Please define JGROUPS_CLUSTER_PASSWORD.
      WARN Environment variable OPENSHIFT_KUBE_PING_NAMESPACE undefined. Clustering will be unavailable. Please refer to the documentation for configuration.
      INFO Configuring JGroups discovery protocol to openshift.KUBE_PING
      INFO Configuring JGroups cluster traffic encryption protocol to SYM_ENCRYPT.
      WARN Detected missing JGroups encryption configuration, the communication within the cluster WILL NOT be encrypted.
      Using PicketBox SSL configuration.
      WARN Missing SSO_URL. Unable to properly configure SSO-enabled applications
      INFO Access log is disabled, ignoring configuration.
      INFO Running jboss-eap-7/eap72-openjdk-11-openshift image, version 1.0
      -XX:+UseParallelOldGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:MaxMetaspaceSize=100m -XX:+ExitOnOutOfMemoryError
      =========================================================================
      
        JBoss Bootstrap Environment
      
        JBOSS_HOME: /opt/eap
      
        JAVA: /usr/lib/jvm/java-11/bin/java
      
        JAVA_OPTS:  -server -Xlog:gc*:file=/opt/eap/standalone/log/gc.log:time,uptimemillis:filecount=5,filesize=3M -Xms1303m -Xmx1303m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.logmanager,jdk.nashorn.api,com.sun.crypto.provider -Djava.awt.headless=true -javaagent:/opt/jboss/container/jolokia/jolokia.jar=config=/opt/jboss/container/jolokia/etc/jolokia.properties -Xbootclasspath/a:/opt/eap/modules/system/layers/base/org/jboss/logmanager/main/jboss-logmanager-2.1.5.Final-redhat-00001.jar:/opt/eap/modules/system/layers/base/org/glassfish/javax/json/main/javax.json-1.1.2.redhat-1.jar:/opt/eap/modules/system/layers/base/javax/json/api/main/javax.json-api-1.1.2.redhat-1.jar:/opt/eap/modules/system/layers/base/org/wildfly/common/main/wildfly-common-1.4.0.Final-redhat-1.jar -Djava.util.logging.manager=org.jboss.logmanager.LogManager -Dsun.util.logging.disableCallerCheck=true -XX:+UseParallelOldGC -XX:MinHeapFreeRatio=10 -XX:MaxHeapFreeRatio=20 -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:+ExitOnOutOfMemoryError -Djava.security.egd=file:/dev/./urandom    --add-exports=java.base/sun.nio.ch=ALL-UNNAMED --add-exports=jdk.unsupported/sun.misc=ALL-UNNAMED --add-exports=jdk.unsupported/sun.reflect=ALL-UNNAMED --add-modules=java.se
      
      =========================================================================
      
      WARNING: An illegal reflective access operation has occurred
      WARNING: Illegal reflective access by org.jboss.logmanager.LogLevelInitTask to constructor java.util.logging.Level$KnownLevel(java.util.logging.Level)
      WARNING: Please consider reporting this to the maintainers of org.jboss.logmanager.LogLevelInitTask
      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
      Could not start Jolokia agent: java.lang.NullPointerException
      13:01:13,329 INFO  [org.jboss.modules] (main) JBoss Modules version 1.8.6.Final-redhat-00001
      13:01:14,869 INFO  [org.jboss.msc] (main) JBoss MSC version 1.4.5.Final-redhat-00001
      13:01:14,911 INFO  [org.jboss.threads] (main) JBoss Threads version 2.3.2.Final-redhat-1
      13:01:15,289 INFO  [org.jboss.as] (MSC service thread 1-2) WFLYSRV0049: JBoss EAP 7.2.0.GA (WildFly Core 6.0.11.Final-redhat-00001) starting
      13:01:15,291 DEBUG [org.jboss.as.config] (MSC service thread 1-2) Configured system properties:
      

      There should be logged warning that configuration is invalid.

            kwills@redhat.com Ken Wills
            mnovak1@redhat.com Miroslav Novak
            Votes:
            1 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated: