co.elastic.apm.agent.bci.bytebuddy.ErrorLoggingListener - Error on transformation

versions/config: latest everything on elastic cloud service

Any insight into this issue with the apm java agent? Thanks.

2020-10-09 03:47:07,210 [main] WARN  co.elastic.apm.agent.bci.bytebuddy.ErrorLoggingListener - Error on transformation org.apache.http.impl.client.DefaultRedirectStrategy
java.lang.IllegalStateException: public static void co.elastic.apm.agent.httpclient.ApacheHttpAsyncClientRedirectInstrumentation$ApacheHttpAsyncClientRedirectAdvice.onAfterExecute(org.apache.http.HttpRequest,org.apache.http.HttpRequest) is not visible to class org.apache.http.impl.client.DefaultRedirectStrategy
	at co.elastic.apm.agent.shaded.bytebuddy.asm.Advice$Dispatcher$Delegating$Resolved.bind(Advice.java:8887) ~[?:?]
	at co.elastic.apm.agent.shaded.bytebuddy.asm.Advice$AdviceVisitor.<init>(Advice.java:9857) ~[?:?]
	at co.elastic.apm.agent.shaded.bytebuddy.asm.Advice$AdviceVisitor$WithExitAdvice.<init>(Advice.java:10061) ~[?:?]
	at co.elastic.apm.agent.shaded.bytebuddy.asm.Advice$AdviceVisitor$WithExitAdvice$WithoutExceptionHandling.<init>(Advice.java:10197) ~[?:?]
	at co.elastic.apm.agent.shaded.bytebuddy.asm.Advice.doWrap(Advice.java:550) ~[?:?]
	at co.elastic.apm.agent.shaded.bytebuddy.asm.Advice.wrap(Advice.java:513) ~[?:?]
	at co.elastic.apm.agent.shaded.bytebuddy.asm.AsmVisitorWrapper$ForDeclaredMethods$Entry.wrap(AsmVisitorWrapper.java:573) ~[?:?]
	at co.elastic.apm.agent.shaded.bytebuddy.asm.AsmVisitorWrapper$ForDeclaredMethods$DispatchingVisitor.visitMethod(AsmVisitorWrapper.java:654) ~[?:?]
	at co.elastic.apm.agent.shaded.asm.ClassVisitor.visitMethod(ClassVisitor.java:367) ~[?:?]
	at co.elastic.apm.agent.shaded.asm.ClassVisitor.visitMethod(ClassVisitor.java:367) ~[?:?]
	at co.elastic.apm.agent.shaded.bytebuddy.asm.TypeConstantAdjustment$TypeConstantDissolvingClassVisitor.visitMethod(TypeConstantAdjustment.java:105) ~[?:?]
	at co.elastic.apm.agent.shaded.bytebuddy.dynamic.scaffold.TypeWriter$Default$ForInlining$WithFullProcessing$RedefinitionClassVisitor.onVisitMethod(TypeWriter.java:4928) ~[?:?]
	at co.elastic.apm.agent.shaded.bytebuddy.utility.visitor.MetadataAwareClassVisitor.visitMethod(MetadataAwareClassVisitor.java:300) ~[?:?]
	at co.elastic.apm.agent.shaded.asm.ClassReader.readMethod(ClassReader.java:1327) ~[?:?]
	at co.elastic.apm.agent.shaded.asm.ClassReader.accept(ClassReader.java:718) ~[?:?]
	at co.elastic.apm.agent.shaded.asm.ClassReader.accept(ClassReader.java:401) ~[?:?]
	at co.elastic.apm.agent.shaded.bytebuddy.dynamic.scaffold.TypeWriter$Default$ForInlining.create(TypeWriter.java:3827) ~[?:?]
	at co.elastic.apm.agent.shaded.bytebuddy.dynamic.scaffold.TypeWriter$Default.make(TypeWriter.java:2166) ~[?:?]
	at co.elastic.apm.agent.shaded.bytebuddy.dynamic.scaffold.inline.RedefinitionDynamicTypeBuilder.make(RedefinitionDynamicTypeBuilder.java:224) ~[?:?]
	at co.elastic.apm.agent.shaded.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer.doTransform(AgentBuilder.java:10327) ~[?:?]
	at co.elastic.apm.agent.shaded.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer.transform(AgentBuilder.java:10263) ~[?:?]
	at co.elastic.apm.agent.shaded.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer.access$1600(AgentBuilder.java:10029) ~[?:?]
	at co.elastic.apm.agent.shaded.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer$Java9CapableVmDispatcher.run(AgentBuilder.java:10722) ~[?:?]
	at co.elastic.apm.agent.shaded.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer$Java9CapableVmDispatcher.run(AgentBuilder.java:10660) ~[?:?]
	at java.security.AccessController.doPrivileged(AccessController.java:391) ~[?:?]
	at co.elastic.apm.agent.shaded.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer.transform(AgentBuilder.java:10219) ~[?:?]
	at co.elastic.apm.agent.shaded.bytebuddy.agent.builder.AgentBuilder$Default$ExecutingTransformer$ByteBuddy$ModuleSupport.transform(Unknown Source) ~[?:?]
	at sun.instrument.TransformerManager.transform(TransformerManager.java:188) ~[?:?]
	at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:563) ~[?:?]
	at java.lang.ClassLoader.defineClass1(Native Method) ~[?:?]
	at java.lang.ClassLoader.defineClass(ClassLoader.java:1017) ~[?:?]
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:151) ~[?:?]
	at jdk.internal.loader.BuiltinClassLoader.defineClass(BuiltinClassLoader.java:821) ~[?:?]
	at jdk.internal.loader.BuiltinClassLoader.findClassOnClassPathOrNull(BuiltinClassLoader.java:719) ~[?:?]
	at jdk.internal.loader.BuiltinClassLoader.loadClassOrNull(BuiltinClassLoader.java:642) ~[?:?]
	at jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:600) ~[?:?]
	at jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178) ~[?:?]
	at java.lang.ClassLoader.loadClass(ClassLoader.java:522) ~[?:?]

This looks like a known issue that was resolved in the 1.18.1 release.

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