Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
05-06-2021 04:28 AM
I have successfully setup the Java app agent to connect to the saas controller. I can view the BTs, tiers and nodes info from controller. However, when i check the errors in my Application, there are continually says UnknownHostException: risktest.saas.appdynamics.com: Name or service not known.
I have check the springboot log, but cannot find such errors. I'm not sure where these exceptions come from. I know it talking about cannot resolve the host, however, i have config the proxyHost and proxyPort during startup.
Here is the full stack trace for this exception.
java.net.UnknownHostException:
java.net.UnknownHostException
java.net.Inet4AddressImpl.lookupAllHostAddr(Inet4AddressImpl.java:-2)
java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:929)
java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1519)
java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:848)
java.net.InetAddress.getAllByName0(InetAddress.java:1509)
java.net.InetAddress.getAllByName(InetAddress.java:1368)
java.net.InetAddress.getAllByName(InetAddress.java:1302)
okhttp3.Dns$Companion$DnsSystem.lookup(Dns.kt:49)
okhttp3.internal.connection.RouteSelector.resetNextInetSocketAddress(RouteSelector.kt:164)
okhttp3.internal.connection.RouteSelector.nextProxy(RouteSelector.kt:129)
okhttp3.internal.connection.RouteSelector.next(RouteSelector.kt:71)
okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:205)
okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)
okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)
okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)
okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
com.cisco.mtagent.utils.NetworkUtils.executeCall(NetworkUtils.java:199)
com.cisco.mtagent.tenant.MTAgentTenantAPI.executeCall(MTAgentTenantAPI.java:906)
com.cisco.argento.transport.NetworkUtilities.genericHTTPRequest(NetworkUtilities.java:223)
com.cisco.argento.transport.NetworkUtilities.genericHTTPRequest(NetworkUtilities.java:173)
com.cisco.argento.transport.AuthUtilities.sendAuthService(AuthUtilities.java:170)
com.cisco.argento.transport.AuthUtilities.sendAuthService(AuthUtilities.java:153)
com.cisco.argento.transport.AuthUtilities._refreshToken(AuthUtilities.java:123)
com.cisco.argento.transport.AuthUtilities.refreshToken(AuthUtilities.java:96)
com.cisco.argento.management.HeartbeatThread.heartbeatAndCheckPolicyFile(HeartbeatThread.java:143)
com.cisco.argento.management.HeartbeatThread.initialRegistration(HeartbeatThread.java:131)
com.cisco.argento.management.HeartbeatThread.launchManagerServerHeartbeatThread(HeartbeatThread.java:87)
com.cisco.argento.loadhandlers.BootstrapLoadHandler.bootstrapArgento(BootstrapLoadHandler.java:292)
com.cisco.argento.loadhandlers.BootstrapLoadHandler.<init>(BootstrapLoadHandler.java:99)
jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(NativeConstructorAccessorImpl.java:-2)
jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
java.lang.reflect.Constructor.newInstance(Constructor.java:490)
org.picocontainer.injectors.AbstractInjector.newInstance(AbstractInjector.java:145)
org.picocontainer.injectors.ConstructorInjector$1.run(ConstructorInjector.java:342)
org.picocontainer.injectors.AbstractInjector$ThreadLocalCyclicDependencyGuard.observe(AbstractInjector.java:270)
org.picocontainer.injectors.ConstructorInjector.getComponentInstance(ConstructorInjector.java:364)
org.picocontainer.injectors.AbstractInjectionFactory$LifecycleAdapter.getComponentInstance(AbstractInjectionFactory.java:56)
org.picocontainer.behaviors.AbstractBehavior.getComponentInstance(AbstractBehavior.java:64)
org.picocontainer.behaviors.Stored.getComponentInstance(Stored.java:91)
org.picocontainer.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:699)
org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:647)
org.picocontainer.DefaultPicoContainer.getComponent(DefaultPicoContainer.java:678)
com.cisco.argento.core.ArgentoPicoContainer.customMethodHandlerBuilder(ArgentoPicoContainer.java:148)
com.cisco.mtagent.boot.registry.MethodHandlerRegistry.createMethodHandler(MethodHandlerRegistry.java:66)
com.cisco.mtagent.boot.registry.MethodHandlerRegistry.createMethodHandlersOnRuleCreation(MethodHandlerRegistry.java:45)
com.cisco.mtagent.instrumentation.InstrumentationRule.<init>(InstrumentationRule.java:115)
com.cisco.mtagent.config.AgentConfiguration.addInstrumentationRule(AgentConfiguration.java:324)
com.cisco.mtagent.config.AgentConfiguration.processInstrumentationSection(AgentConfiguration.java:315)
com.cisco.mtagent.config.AgentConfiguration.configureTenant(AgentConfiguration.java:280)
com.cisco.mtagent.config.AgentConfiguration.configureAgent(AgentConfiguration.java:195)
com.cisco.mtagent.instrumentation.InstrumentationBootstrap.initializeMultiTenantAgent(InstrumentationBootstrap.java:80)
com.cisco.mtagent.core.AgentPicoContainer.bootstrapMultiTenantAgent(AgentPicoContainer.java:60)
jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java:-2)
jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:566)
com.cisco.mtagent.entry.MTAgent$2.run(MTAgent.java:324)
Solved! Go to Solution.
05-12-2021 10:16 PM
I have resolved this by changing the Java-Agent from 21.4 back to 20.8
05-13-2021 07:17 AM
Have you filed a ticket with support?
Based on a quick glance at the exception here, I suspect that this results from an agent issue that is fixed in 21.5 of the agent, but a more detailed support investigation would be required to be sure.
Where is this exception logged to?
05-13-2021 07:26 AM
This log can only find in AppD -> Application -> Troubleshoot -> Errors -> Exceptions. Neither from application logs, nor agent logs.
Yes, it should be agent issue, as you can see, if I switch back the app agent from v21.4 to v20.8, it disappears. I don't have time to try out any other versions yet.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form