Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-8656

ListenerStatsData.toCompositeData() throws NPE

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.20.0
    • Component/s: documentmk
    • Labels:
      None

      Description

      Seen recently in an oak-sprout build.

      20.08.2019 17:06:17.206 *WARN* [sling-default-3-health-com.adobe.granite.repository.hc.impl.ObservationQueueLengthHealthCheck] com.adobe.granite.repository.hc.impl.ObservationQueueLengthHealthCheck Exception while getting mBean property: ListenerStats
      javax.management.RuntimeMBeanException: 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 com.adobe.granite.repository.hc.impl.ObservationQueueLengthHealthCheck.getTabularData(ObservationQueueLengthHealthCheck.java:250)
      	at com.adobe.granite.repository.hc.impl.ObservationQueueLengthHealthCheck.checkEventListenerStats(ObservationQueueLengthHealthCheck.java:110)
      	at com.adobe.granite.repository.hc.impl.ObservationQueueLengthHealthCheck.execute(ObservationQueueLengthHealthCheck.java:83)
      	at com.adobe.granite.queries.impl.hc.QueryHealthCheckMetrics$LazyGauge.execute(QueryHealthCheckMetrics.java:257) [com.adobe.granite.queries:1.0.70]
      	at com.adobe.granite.queries.impl.hc.QueryHealthCheckMetrics$LazyGauge.lambda$new$0(QueryHealthCheckMetrics.java:244) [com.adobe.granite.queries:1.0.70]
      	at org.apache.sling.commons.scheduler.impl.QuartzJobExecutor.execute(QuartzJobExecutor.java:347) [org.apache.sling.commons.scheduler:2.7.2]
      	at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [org.apache.sling.commons.scheduler:2.7.2]
      	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:834)
      Caused by: java.lang.NullPointerException: null
      	at org.apache.jackrabbit.oak.jcr.observation.ConsolidatedListenerMBeanImpl$ListenerStatsData.toCompositeData(ConsolidatedListenerMBeanImpl.java:423) [org.apache.jackrabbit.oak-jcr:1.18.0.SNAPSHOT]
      	at org.apache.jackrabbit.oak.jcr.observation.ConsolidatedListenerMBeanImpl.getListenerStats(ConsolidatedListenerMBeanImpl.java:119) [org.apache.jackrabbit.oak-jcr:1.18.0.SNAPSHOT]
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71)
      	at jdk.internal.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at java.base/sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:260)
      	at java.management/com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112)
      	at java.management/com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46)
      	at java.management/com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237)
      	at java.management/com.sun.jmx.mbeanserver.PerInterface.getAttribute(PerInterface.java:83)
      	at java.management/com.sun.jmx.mbeanserver.MBeanSupport.getAttribute(MBeanSupport.java:206)
      	at java.management/javax.management.StandardMBean.getAttribute(StandardMBean.java:372)
      	at java.management/com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:641)
      	... 11 common frames omitted

        Attachments

        1. Granite-26986-npe-ListenerStatsData-toCompositeData.patch
          5 kB
          José Andrés Cordero Benítez
        2. OAK-8656.patch
          5 kB
          Marcel Reutegger

          Activity

            People

            • Assignee:
              mreutegg Marcel Reutegger
              Reporter:
              corderob José Andrés Cordero Benítez
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: