Elastic APM agent not getting started after adding it into Weblogic startup script

2020-11-05 02:49:33,459 [main] ERROR co.elastic.apm.agent.util.DependencyInjectingServiceLoader - unable to instantiate 'co.elastic.apm.agent.httpclient.HttpClientInstr
umentation', unsupported class version error: co/elastic/apm/agent/httpclient/HttpClientInstrumentation has been compiled by a more recent version of the Java Runtime (
class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
2020-11-05 02:49:33,460 [main] ERROR co.elastic.apm.agent.util.DependencyInjectingServiceLoader - unable to instantiate 'co.elastic.apm.agent.httpclient.HttpClientAsync
Instrumentation', unsupported class version error: co/elastic/apm/agent/httpclient/HttpClientAsyncInstrumentation has been compiled by a more recent version of the Java
Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
2020-11-05 02:49:33,461 [main] ERROR co.elastic.apm.agent.util.DependencyInjectingServiceLoader - unable to instantiate 'co.elastic.apm.agent.httpclient.HttpRequestHead
ersInstrumentation', unsupported class version error: co/elastic/apm/agent/httpclient/HttpRequestHeadersInstrumentation has been compiled by a more recent version of th
e Java Runtime (class file version 55.0), this version of the Java Runtime only recognizes class file versions up to 52.0
2020-11-05 02:49:39,621 [main] INFO  co.elastic.apm.agent.impl.ElasticApmTracer - Tracer switched to RUNNING state
Error: Could not find or load main class Agent
2020-11-05 02:49:39,874 [elastic-apm-init-instrumentation-shutdown-hook] INFO  co.elastic.apm.agent.impl.ElasticApmTracer - Tracer switched to STOPPED state
2020-11-05 02:49:39,874 [elastic-apm-init-instrumentation-shutdown-hook] INFO  co.elastic.apm.agent.report.ApmServerReporter - dropped events because of full queue: 0
2020-11-05 02:49:39,883 [elastic-apm-init-instrumentation-shutdown-hook] INFO  co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Reported events: 0
2020-11-05 02:49:39,883 [elastic-apm-init-instrumentation-shutdown-hook] INFO  co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Dropped events: 0
2020-11-05 02:49:39,884 [elastic-apm-circuit-breaker] INFO  co.elastic.apm.agent.impl.circuitbreaker.CircuitBreaker - Stopping the Circuit Breaker thread.
2020-11-05 02:49:39,933 [elastic-apm-remote-config-poller] ERROR co.elastic.apm.agent.bci.IndyBootstrap - null
java.nio.channels.ClosedByInterruptException: null
        at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:202) ~[?:1.8.0_191]
        at sun.nio.ch.FileChannelImpl.size(FileChannelImpl.java:315) ~[?:1.8.0_191]
        at com.sun.nio.zipfs.ZipFileSystem.findEND(ZipFileSystem.java:963) ~[zipfs.jar:1.8.0_191]
        at com.sun.nio.zipfs.ZipFileSystem.initCEN(ZipFileSystem.java:1030) ~[zipfs.jar:1.8.0_191]
        at com.sun.nio.zipfs.ZipFileSystem.<init>(ZipFileSystem.java:130) ~[zipfs.jar:1.8.0_191]
        at com.sun.nio.zipfs.ZipFileSystemProvider.newFileSystem(ZipFileSystemProvider.java:117) ~[zipfs.jar:1.8.0_191]
        at java.nio.file.FileSystems.newFileSystem(FileSystems.java:326) ~[?:1.8.0_191]
        at java.nio.file.FileSystems.newFileSystem(FileSystems.java:276) ~[?:1.8.0_191]
        at co.elastic.apm.agent.util.PackageScanner.getClassNames(PackageScanner.java:66) ~[?:?]
        at co.elastic.apm.agent.bci.IndyBootstrap.getClassNamesFromBundledPlugin(IndyBootstrap.java:303) ~[?:?]
        at co.elastic.apm.agent.bci.IndyBootstrap.bootstrap(IndyBootstrap.java:278) [?:?]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_191]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_191]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_191]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_191]
        at java.lang.IndyBootstrapDispatcher.bootstrap(IndyBootstrapDispatcher.java:31) [?:1.8.0_191]
        at java.lang.invoke.CallSite.makeSite(CallSite.java:310) [?:1.8.0_191]
        at java.lang.invoke.MethodHandleNatives.linkCallSiteImpl(MethodHandleNatives.java:307) [?:1.8.0_191]
        at java.lang.invoke.MethodHandleNatives.linkCallSite(MethodHandleNatives.java:297) [?:1.8.0_191]
        at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1293) [?:1.8.0_191]
        at co.elastic.apm.agent.configuration.ApmServerConfigurationSource.tryFetchConfig(ApmServerConfigurationSource.java:185) [?:?]
        at co.elastic.apm.agent.configuration.ApmServerConfigurationSource.access$100(ApmServerConfigurationSource.java:53) [?:?]
        at co.elastic.apm.agent.configuration.ApmServerConfigurationSource$2.withConnection(ApmServerConfigurationSource.java:166) [?:?]
        at co.elastic.apm.agent.configuration.ApmServerConfigurationSource$2.withConnection(ApmServerConfigurationSource.java:163) [?:?]
        at co.elastic.apm.agent.report.ApmServerClient.execute(ApmServerClient.java:254) [?:?]
        at co.elastic.apm.agent.configuration.ApmServerConfigurationSource.fetchConfig(ApmServerConfigurationSource.java:163) [?:?]
        at co.elastic.apm.agent.configuration.ApmServerConfigurationSource.pollConfig(ApmServerConfigurationSource.java:131) [?:?]
        at co.elastic.apm.agent.configuration.ApmServerConfigurationSource.access$000(ApmServerConfigurationSource.java:53) [?:?]
        at co.elastic.apm.agent.configuration.ApmServerConfigurationSource$1.run(ApmServerConfigurationSource.java:117) [?:?]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_191]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_191]
        at java.lang.Thread.run(Thread.java:748) [?:1.8.0_191]
2020-11-05 02:49:40,029 [elastic-apm-server-healthcheck] WARN  co.elastic.apm.agent.report.ApmServerHealthChecker - Elastic APM server http://localhost:8200/ is not ava
ilable (Connection refused (Connection refused))
2020-11-05 02:49:40,030 [elastic-apm-remote-config-poller] ERROR co.elastic.apm.agent.configuration.ApmServerConfigurationSource - Connection refused (Connection refuse
d)

Make sure your APM server is running (curl localhost:8200)
I suggest to use Agent version 1.18.1

Seems to be the same issue than this one: APM Agent does not start

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.