-
Bug
-
Resolution: Done
-
Major
-
7.4.4.GA
*ENV: RHSSO 7.5.1 and RHSSO 7.6.0 using Openshift Image)
Customer is facing bellow issue during fetching infinispan statistics via JMX:
**From RHSSO 7.6(OpenShift image)getting bellow Error:
ERROR [nl.nlighten.prometheus.wildfly.InfinispanExports](ServerService Thread Pool – 77) Error getting property from "keys(local)": javax.management.RuntimeMBeanException: org.infinispan.commons.CacheException: java.lang.NullPointerException at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrow(DefaultMBeanServerInterceptor.java:829) at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrowMaybeMBeanException(DefaultMBeanServerInterceptor.java:842) at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:645) at java.management/com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:678) at org.jboss.as.jmx@15.0.8.Final-redhat-00001//org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.getAttribute(PluggableMBeanServerImpl.java:1415) at org.jboss.as.jmx@15.0.8.Final-redhat-00001//org.jboss.as.jmx.PluggableMBeanServerImpl.getAttribute(PluggableMBeanServerImpl.java:391) at deployment.keycloak-metric-spi-1.44-SNAPSHOT.jar//nl.nlighten.prometheus.wildfly.InfinispanExports.collect(InfinispanExports.java:82) at io.prometheus.simpleclient//io.prometheus.client.CollectorRegistry.collectorNames(CollectorRegistry.java:113) at io.prometheus.simpleclient//io.prometheus.client.CollectorRegistry.register(CollectorRegistry.java:50) at io.prometheus.simpleclient//io.prometheus.client.Collector.register(Collector.java:308) at io.prometheus.simpleclient//io.prometheus.client.Collector.register(Collector.java:301) at deployment.keycloak-metric-spi-1.44-SNAPSHOT.jar//org.jboss.aerogear.keycloak.metrics.PrometheusExporter.<init>(PrometheusExporter.java:131) at deployment.keycloak-metric-spi-1.44-SNAPSHOT.jar//org.jboss.aerogear.keycloak.metrics.PrometheusExporter.<clinit>(PrometheusExporter.java:33) at deployment.keycloak-metric-spi-1.44-SNAPSHOT.jar//org.jboss.aerogear.keycloak.metrics.MetricsEndpointFactory.init(MetricsEndpointFactory.java:27) at org.keycloak.keycloak-services@18.0.0.db-00001//org.keycloak.services.DefaultKeycloakSessionFactory.loadFactories(DefaultKeycloakSessionFactory.java:297) at org.keycloak.keycloak-services@18.0.0.db-00001//org.keycloak.services.DefaultKeycloakSessionFactory.init(DefaultKeycloakSessionFactory.java:110) at org.keycloak.keycloak-services@18.0.0.db-00001//org.keycloak.services.resources.KeycloakApplication.createSessionFactory(KeycloakApplication.java:235) at org.keycloak.keycloak-services@18.0.0.db-00001//org.keycloak.services.resources.KeycloakApplication.startup(KeycloakApplication.java:126) at org.keycloak.keycloak-wildfly-extensions@18.0.0.redhat-00001//org.keycloak.provider.wildfly.WildflyPlatform.onStartup(WildflyPlatform.java:36) at org.keycloak.keycloak-services@18.0.0.db-00001//org.keycloak.services.resources.KeycloakApplication.<init>(KeycloakApplication.java:116) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:490) at org.jboss.resteasy.resteasy-jaxrs@3.15.3.Final-redhat-00001//org.jboss.resteasy.core.ConstructorInjectorImpl.construct(ConstructorInjectorImpl.java:152) at org.jboss.resteasy.resteasy-jaxrs@3.15.3.Final-redhat-00001//org.jboss.resteasy.spi.ResteasyProviderFactory.createProviderInstance(ResteasyProviderFactory.java:2835) at org.jboss.resteasy.resteasy-jaxrs@3.15.3.Final-redhat-00001//org.jboss.resteasy.spi.ResteasyDeployment.createApplication(ResteasyDeployment.java:376) at org.jboss.resteasy.resteasy-jaxrs@3.15.3.Final-redhat-00001//org.jboss.resteasy.spi.ResteasyDeployment.startInternal(ResteasyDeployment.java:288) at org.jboss.resteasy.resteasy-jaxrs@3.15.3.Final-redhat-00001//org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:98) at org.jboss.resteasy.resteasy-jaxrs@3.15.3.Final-redhat-00001//org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:140) at org.jboss.resteasy.resteasy-jaxrs@3.15.3.Final-redhat-00001//org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:42) at io.undertow.servlet@2.2.16.Final-redhat-00001//io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117) at org.wildfly.extension.undertow@7.4.4.GA-redhat-00011//org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:78) at io.undertow.servlet@2.2.16.Final-redhat-00001//io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103) at io.undertow.servlet@2.2.16.Final-redhat-00001//io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:309) at io.undertow.servlet@2.2.16.Final-redhat-00001//io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:145) at io.undertow.servlet@2.2.16.Final-redhat-00001//io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:588) at io.undertow.servlet@2.2.16.Final-redhat-00001//io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:559) at io.undertow.servlet@2.2.16.Final-redhat-00001//io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42) at io.undertow.servlet@2.2.16.Final-redhat-00001//io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) at org.wildfly.extension.undertow@7.4.4.GA-redhat-00011//org.wildfly.extension.undertow.security.SecurityContextThreadSetupAction.lambda$create$0(SecurityContextThreadSetupAction.java:105) at org.wildfly.extension.undertow@7.4.4.GA-redhat-00011//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1551) at org.wildfly.extension.undertow@7.4.4.GA-redhat-00011//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1551) at org.wildfly.extension.undertow@7.4.4.GA-redhat-00011//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1551) at org.wildfly.extension.undertow@7.4.4.GA-redhat-00011//org.wildfly.extension.undertow.deployment.UndertowDeploymentInfoService$UndertowThreadSetupAction.lambda$create$0(UndertowDeploymentInfoService.java:1551) at io.undertow.servlet@2.2.16.Final-redhat-00001//io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:601) at org.wildfly.extension.undertow@7.4.4.GA-redhat-00011//org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:97) at org.wildfly.extension.undertow@7.4.4.GA-redhat-00011//org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:78) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at org.jboss.threads@2.4.0.Final-redhat-00001//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35) at org.jboss.threads@2.4.0.Final-redhat-00001//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990) at org.jboss.threads@2.4.0.Final-redhat-00001//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486) at org.jboss.threads@2.4.0.Final-redhat-00001//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377) at java.base/java.lang.Thread.run(Thread.java:829) at org.jboss.threads@2.4.0.Final-redhat-00001//org.jboss.threads.JBossThread.run(JBossThread.java:513) Caused by: org.infinispan.commons.CacheException: java.lang.NullPointerException at org.infinispan@11.0.15.Final-redhat-00001//org.infinispan.jmx.ResourceDMBean.getNamedAttribute(ResourceDMBean.java:324) at org.infinispan@11.0.15.Final-redhat-00001//org.infinispan.jmx.ResourceDMBean.getAttribute(ResourceDMBean.java:200) at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:641) ... 53 more Caused by: java.lang.NullPointerException at org.infinispan@11.0.15.Final-redhat-00001//org.infinispan.jmx.ResourceDMBean$InvokableSetterBasedMBeanAttributeInfo.invoke(ResourceDMBean.java:429) at org.infinispan@11.0.15.Final-redhat-00001//org.infinispan.jmx.ResourceDMBean.getNamedAttribute(ResourceDMBean.java:318) ----------------------------------------------------------------------------------------
*For RHSSO 7.5.1 (OpenShift image) getting bellow Error:
14-07-202208:17:45,275 ERROR nl.nlighten.prometheus.wildfly.InfinispanExports Error getting property from "authorization(local)": javax.management.RuntimeMBeanException: org.infinispan.commons.CacheException: java.lang.NullPointerException at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrow(DefaultMBeanServerInterceptor.java:829) at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrowMaybeMBeanException(DefaultMBeanServerInterceptor.java:842) at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:645) at java.management/com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:678) at org.jboss.as.jmx@15.0.8.Final-redhat-00001//org.jboss.as.jmx.PluggableMBeanServerImpl$TcclMBeanServer.getAttribute(PluggableMBeanServerImpl.java:1415) at org.jboss.as.jmx@15.0.8.Final-redhat-00001//org.jboss.as.jmx.PluggableMBeanServerImpl.getAttribute(PluggableMBeanServerImpl.java:391) at deployment.keycloak-metric-spi-1.44-SNAPSHOT.jar//nl.nlighten.prometheus.wildfly.InfinispanExports.collect(InfinispanExports.java:82) at io.prometheus.simpleclient//io.prometheus.client.Collector.collect(Collector.java:46) at io.prometheus.simpleclient//io.prometheus.client.CollectorRegistry$MetricFamilySamplesEnumeration.findNextElement(CollectorRegistry.java:197) at io.prometheus.simpleclient//io.prometheus.client.CollectorRegistry$MetricFamilySamplesEnumeration.nextElement(CollectorRegistry.java:212) at io.prometheus.simpleclient//io.prometheus.client.CollectorRegistry$MetricFamilySamplesEnumeration.nextElement(CollectorRegistry.java:152) at io.prometheus.simpleclient//io.prometheus.client.exporter.common.TextFormat.write004(TextFormat.java:71) at deployment.keycloak-metric-spi-1.44-SNAPSHOT.jar//org.jboss.aerogear.keycloak.metrics.HttpPrometheusExporter$PrometheusContentProducer.writeTo(HttpPrometheusExporter.java:113) at org.apache.httpcomponents.core//org.apache.http.entity.EntityTemplate.writeTo(EntityTemplate.java:73) at org.apache.httpcomponents.core//org.apache.http.impl.DefaultBHttpServerConnection.sendResponseEntity(DefaultBHttpServerConnection.java:166) at org.apache.httpcomponents.core//org.apache.http.protocol.HttpService.handleRequest(HttpService.java:363) at org.apache.httpcomponents.core//org.apache.http.impl.bootstrap.Worker.run(Worker.java:66) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: org.infinispan.commons.CacheException: java.lang.NullPointerException at org.infinispan@11.0.15.Final-redhat-00001//org.infinispan.jmx.ResourceDMBean.getNamedAttribute(ResourceDMBean.java:324) at org.infinispan@11.0.15.Final-redhat-00001//org.infinispan.jmx.ResourceDMBean.getAttribute(ResourceDMBean.java:200) at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:641) ... 17 more Caused by: java.lang.NullPointerException at org.infinispan@11.0.15.Final-redhat-00001//org.infinispan.jmx.ResourceDMBean$InvokableSetterBasedMBeanAttributeInfo.invoke(ResourceDMBean.java:429) at org.infinispan@11.0.15.Final-redhat-00001//org.infinispan.jmx.ResourceDMBean.getNamedAttribute(ResourceDMBean.java:318) ---------------------------------------------------------------------------------------------------------
- is cloned by
-
JBEAP-26781 [GSS](7.4.z) NullPointerException during fetching infinispan statistics via JMX.
- New
-
JBEAP-26456 NullpointerException during fetching infinispan statistics via JMX.
- Closed
-
RHSSO-2953 NullPointerException during fetching infinispan statistics via JMX.
- Closed