Replies: 1 comment
-
We don't support private custom. Once you did private changes, we can't tell what happens |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have a need to return multiple AbstractClassEnhancePluginDefine objects of our own through the InstrumentationLoader provided by Skywalking. The difference is that the creation of the AbstractClassEnhancePluginDefine class is dynamic. I try to use bytebuddy or anonymous inner class to create, but the startup always reports an error;
It is normal for me to save the generated class instead of dynamically creating it, and then use new to create the AbstractClassEnhancePluginDefine object
Below is the error stack
2月 01, 2023 1:35:14 下午 org.apache.skywalking.apm.dependencies.io.grpc.internal.ManagedChannelImpl$2 uncaughtException
严重: [Channel<1>: (sw-oap-server.monitoring:11800)] Uncaught exception in the SynchronizationContext. Panic!
java.lang.ClassCastException: class org.apache.skywalking.apm.plugin.ThreadPoolExecuteMethodInterceptor cannot be cast to class org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor (org.apache.skywalking.apm.plugin.ThreadPoolExecuteMethodInterceptor is in unnamed module of loader org.apache.skywalking.apm.agent.core.plugin.loader.AgentClassLoader @3aeaafa6; org.apache.skywalking.apm.agent.core.plugin.interceptor.enhance.InstanceMethodsAroundInterceptor is in unnamed module of loader 'bootstrap')
at org.apache.skywalking.apm.plugin.ThreadPoolExecuteMethodInterceptor_internal.prepare(InstanceMethodInterWithOverrideArgsTemplate.java:127)
at org.apache.skywalking.apm.plugin.ThreadPoolExecuteMethodInterceptor_internal.intercept(InstanceMethodInterWithOverrideArgsTemplate.java:69)
at java.base/java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java)
at org.apache.skywalking.apm.dependencies.io.grpc.internal.ManagedChannelImpl$3.execute(ManagedChannelImpl.java:659)
at org.apache.skywalking.apm.dependencies.io.grpc.internal.DnsNameResolver.resolve(DnsNameResolver.java:389)
at org.apache.skywalking.apm.dependencies.io.grpc.internal.DnsNameResolver.start(DnsNameResolver.java:206)
at org.apache.skywalking.apm.dependencies.io.grpc.internal.ManagedChannelImpl.exitIdleMode(ManagedChannelImpl.java:415)
at org.apache.skywalking.apm.dependencies.io.grpc.internal.ManagedChannelImpl$RealChannel$2.run(ManagedChannelImpl.java:984)
at org.apache.skywalking.apm.dependencies.io.grpc.SynchronizationContext.drain(SynchronizationContext.java:95)
at org.apache.skywalking.apm.dependencies.io.grpc.SynchronizationContext.execute(SynchronizationContext.java:127)
at org.apache.skywalking.apm.dependencies.io.grpc.internal.ManagedChannelImpl$RealChannel.newCall(ManagedChannelImpl.java:981)
at org.apache.skywalking.apm.dependencies.io.grpc.internal.ManagedChannelImpl.newCall(ManagedChannelImpl.java:923)
at org.apache.skywalking.apm.dependencies.io.grpc.internal.ForwardingManagedChannel.newCall(ForwardingManagedChannel.java:63)
at org.apache.skywalking.apm.agent.core.remote.AgentIDDecorator$1.interceptCall(AgentIDDecorator.java:75)
at org.apache.skywalking.apm.dependencies.io.grpc.ClientInterceptors$InterceptorChannel.newCall(ClientInterceptors.java:156)
at org.apache.skywalking.apm.network.event.v3.EventServiceGrpc$EventServiceStub.collect(EventServiceGrpc.java:146)
at org.apache.skywalking.apm.agent.core.remote.EventReportServiceClient.reportStartingEvent(EventReportServiceClient.java:164)
at org.apache.skywalking.apm.agent.core.remote.EventReportServiceClient.statusChanged(EventReportServiceClient.java:156)
at org.apache.skywalking.apm.agent.core.remote.GRPCChannelManager.notify(GRPCChannelManager.java:195)
at org.apache.skywalking.apm.agent.core.remote.GRPCChannelManager.run(GRPCChannelManager.java:149)
at org.apache.skywalking.apm.util.RunnableWithExceptionProtection.run(RunnableWithExceptionProtection.java:33)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.runAndReset(FutureTask.java:305)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:305)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Beta Was this translation helpful? Give feedback.
All reactions