cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

NullpointerException during registering MBean server

martin_lichtin
Newcomer
2020-08-25 19:17:45 UTC [f32b6809] info    [java  ] Java Agent Version .......... 7.2.17.1032, Agent15
2020-08-25 19:17:45 UTC [8a16d809] info [native] Control channel connected successfully
2020-08-25 19:17:45 UTC [8a16d809] info [native] Transaction sampling started.
2020-08-25 19:17:46 UTC [8a16d809] info [native] Process metrics pattern ..... not set
2020-08-25 19:17:46 UTC [8a16d809] info [native] Agent ID .................... f8bf6e9c
2020-08-25 19:17:46 UTC [8a16d809] info [native] Server ID ................... -1084447646
2020-08-25 19:17:46 UTC [8a16d809] info [native] Process ID .................. 60562
2020-08-25 19:17:46 UTC [8a16d809] info [native] Recovery .................... enabled
2020-08-25 19:17:46 UTC [8a16d809] info [native] Hot Sensor Placement ........ available
2020-08-25 19:17:46 UTC [8a16d809] info [native] Hypervisor .................. VMware
2020-08-25 19:17:46 UTC [f32b6809] info [native] Eventsender channel connected successfully
2020-08-25 19:17:47 UTC [45f6e809] info [java ] Added missing MBeanServer with default domain: DefaultDomain
2020-08-25 19:17:54 UTC [8a16d809] info [java ] ... last message repeated 1 time ...
2020-08-25 19:17:54 UTC [8a16d809] info [native] License = license ok;
2020-08-25 19:18:25 UTC [45058809] severe [java ] Exception caught in com.dynatrace.diagnostics.agent.introspection.jmx.JMXPlatformManager.registerMBeanServer: java.lang.NullPointerException: null
at Proxycdfee5da_9424_4606_87c9_f54d44f871c8.hashCode(Unknown Source)
at com.dynatrace.diagnostics.agent.introspection.jmx.n.<init>(Unknown Source)
at com.dynatrace.diagnostics.agent.introspection.jmx.w.b(Unknown Source)
at com.dynatrace.diagnostics.agent.introspection.jmx.w.a(Unknown Source)
at com.dynatrace.diagnostics.agent.introspection.jmx.JMXIntrospection.a(Unknown Source)
at com.dynatrace.diagnostics.agent.introspection.jmx.JMXIntrospection.registerMBeanServer(Unknown Source)
at Proxycdfee5da_9424_4606_87c9_f54d44f871c8.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.apache.aries.proxy.impl.interfaces.InterfaceProxyGenerator.getProxyInstance(InterfaceProxyGenerator.java:102)
at org.apache.aries.proxy.impl.AsmProxyManager.createNewProxy(AsmProxyManager.java:80)
at org.apache.aries.proxy.impl.AbstractProxyManager.createDelegatingInterceptingProxy(AbstractProxyManager.java:77)
at org.apache.aries.proxy.impl.AbstractProxyManager.createDelegatingProxy(AbstractProxyManager.java:42)
at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.createProxy(AbstractServiceReferenceRecipe.java:332)
at org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:107)
at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)
at org.apache.aries.blueprint.di.RefRecipe.internalCreate(RefRecipe.java:62)
at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:106)
at org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:955)
at org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:929)
at org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:910)
at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:844)
at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:811)
at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)
at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:255)
at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:186)
at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:704)
at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:410)
at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:275)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.aries.blueprint.container.ExecutorServiceWrapper.run(ExecutorServiceWrapper.java:106)
at org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)


1 REPLY 1

martin_lichtin
Newcomer

Update from Dynatrace:



The agent may produce this
exception if JMX of the application is not fully started.



You may try increasing the default delay with
the agent option:



optionDelayJvmMetricsJava=30
Above value (30) means a delay of 5 min.

You can set the Agent Options in debug mode (Ctrl+Shift+F9), going to the
involved Agent Group, then Agent Mapping > Debug... > tab Agent
Options


To be effective it requires an application restart.