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

Java agent : Errors in log

Alexander_R_
Advisor

Theren are some errors in Agent logs.

After update 7.0.4 to 7.0.20 Java agents on threee servers not connected to server and i have no data from them. And after update i have no agent-name.0.log, i have only agent_name_bootstrap log, it doesn't differ from previous...

2018-04-05 07:48:47 [7c94c879] severe  [java  ] Exception caught in com.dynatrace.diagnostics.agent.introspection.jmx.JMXPlatformManager.getMBeanServers: org.osgi.service.blueprint.container.ServiceUnavailableException: The Blueprint container is being or has been destroyed: (objectClass=javax.management.MBeanServer)
at org.apache.aries.blueprint.container.ReferenceRecipe.getService(ReferenceRecipe.java:233)
at org.apache.aries.blueprint.container.ReferenceRecipe.access$000(ReferenceRecipe.java:54)
at org.apache.aries.blueprint.container.ReferenceRecipe$ServiceDispatcher.call(ReferenceRecipe.java:291)
at Proxy7af04301_2348_4be2_bb41_a171725fce6f.hashCode(Unknown Source)
at com.dynatrace.diagnostics.agent.introspection.jmx.n.hashCode(Unknown Source)
at java.util.HashMap.hash(HashMap.java:351)
at java.util.HashMap.put(HashMap.java:471)
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.w.g(Unknown Source)
at com.dynatrace.diagnostics.agent.introspection.jmx.w.c(Unknown Source)
at com.dynatrace.diagnostics.agent.introspection.jmx.JMXIntrospection.b(Unknown Source)
at com.dynatrace.diagnostics.agent.introspection.jmx.JMXIntrospection.capture(Unknown Source)
at com.dynatrace.diagnostics.agent.EventSender.addExtendedJmxMetricEvent(Unknown Source)
at com.dynatrace.diagnostics.agent.EventSender.addEvents(Unknown Source)

Another error is:

2018-03-28 08:12:52 [fa065878] severe  [java  ] Exception caught in com.dynatrace.diagnostics.agent.introspection.jmx.JMXPlatformManager.registerMBeanServer: java.lang.NullPointerException: null
at Proxy9ac5e0c8_6ce1_4970_9d07_97ec0ff6d55b.hashCode(Unknown Source)
at com.dynatrace.diagnostics.agent.introspection.jmx.n.hashCode(Unknown Source)
at java.util.HashMap.hash(HashMap.java:351)
at java.util.HashMap.getEntry(HashMap.java:443)
at java.util.HashMap.containsKey(HashMap.java:434)
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 Proxy9ac5e0c8_6ce1_4970_9d07_97ec0ff6d55b.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at org.apache.aries.proxy.impl.interfaces.InterfaceProxyGenerator.getProxyInstance(InterfaceProxyGenerator.java:100)
at org.apache.aries.proxy.impl.AsmProxyManager.createNewProxy(AsmProxyManager.java:72)
at org.apache.aries.proxy.impl.AbstractProxyManager.createDelegatingInterceptingProxy(AbstractProxyManager.java:75)
at org.apache.aries.proxy.impl.AbstractProxyManager.createDelegatingProxy(AbstractProxyManager.java:40)
at org.apache.aries.blueprint.container.AbstractServiceReferenceRecipe.createProxy(AbstractServiceReferenceRecipe.java:306)
at org.apache.aries.blueprint.container.ReferenceRecipe.internalCreate(ReferenceRecipe.java:99)
at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)
at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:245)
at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:183)
at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:667)
at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:370)
at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:261)
at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:270)
at org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:233)
at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)
at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)
at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)
at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)
at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)
at org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1103)
at org.apache.felix.framework.util.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:696)
at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:484)
at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4580)
at org.apache.felix.framework.Felix$4.run(Felix.java:2115)
at org.apache.felix.framework.Felix$5.run(Felix.java:2159)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:722)

May be someone have such logs...

I will be glad to any answers. Thanks

Regards, Alexander.

2 REPLIES 2

BabarQayyum
Leader

Hello Alexander,

Are you monitoring dockerized apps with AppMon?

I could not find much in the logs except the below entries.

The Blueprint container is being or has been destroyed:
Proxy7af04301_2348_4be2_bb41_a171725fce6f.hashCode(Unknown Source)

Regards,

Babar

martin_lichtin
Newcomer

Update from Dynatrace regarding your 2nd stack trace:



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.