bladeX 3.2.0版本接入skywalking组件启动报错

Blade 未结 1 600
ndm1tachi
ndm1tachi 剑童 2024-02-04 09:10

一、该问题的重现步骤是什么?

  1. 在服务内引入blade-starter-trace依赖

    image.png

2. 配置logback.xml文件

image.png

3.idea配置agent参数

image.png

二、你期待的结果是什么?实际看到的又是什么?

期待:正常启动,并且可以上报日志到skyawalking

实际:启动日志组件报错

三、你正在使用的是什么产品,什么版本?在什么操作系统上?

BladeX 3.2.0,windows11

四、请提供详细的错误堆栈信息,这很重要。

ERROR 2024-02-04 08:51:11.179 main SkyWalkingAgent : index=0, batch=[class org.apache.skywalking.apm.toolkit.log.logback.v1.x.mdc.LogbackMDCPatternConverter, class org.apache.skywalking.apm.toolkit.log.logback.v1.x.log.GRPCLogClientAppender, class org.apache.skywalking.apm.toolkit.log.logback.v1.x.LogbackSkyWalkingContextPatternConverter, class org.apache.skywalking.apm.toolkit.log.logback.v1.x.LogbackPatternConverter], types=[class org.apache.skywalking.apm.toolkit.log.logback.v1.x.mdc.LogbackMDCPatternConverter, class org.apache.skywalking.apm.toolkit.log.logback.v1.x.log.GRPCLogClientAppender, class org.apache.skywalking.apm.toolkit.log.logback.v1.x.LogbackSkyWalkingContextPatternConverter, class org.apache.skywalking.apm.toolkit.log.logback.v1.x.LogbackPatternConverter] 

java.lang.UnsupportedOperationException: class redefinition failed: attempted to change superclass or interfaces

at sun.instrument.InstrumentationImpl.retransformClasses0(Native Method)

at sun.instrument.InstrumentationImpl.retransformClasses(InstrumentationImpl.java:144)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.apache.skywalking.apm.dependencies.net.bytebuddy.utility.Invoker$Dispatcher.invoke(Unknown Source)

at org.apache.skywalking.apm.dependencies.net.bytebuddy.utility.dispatcher.JavaDispatcher$Dispatcher$ForNonStaticMethod.invoke(JavaDispatcher.java:1032)

at org.apache.skywalking.apm.dependencies.net.bytebuddy.utility.dispatcher.JavaDispatcher$ProxiedInvocationHandler.invoke(JavaDispatcher.java:1162)

at org.apache.skywalking.apm.dependencies.net.bytebuddy.agent.builder.$Proxy13.retransformClasses(Unknown Source)

at org.apache.skywalking.apm.dependencies.net.bytebuddy.agent.builder.AgentBuilder$RedefinitionStrategy$Collector$ForRetransformation.doApply(AgentBuilder.java:8231)

at org.apache.skywalking.apm.dependencies.net.bytebuddy.agent.builder.AgentBuilder$RedefinitionStrategy$Collector.apply(AgentBuilder.java:8046)

at org.apache.skywalking.apm.dependencies.net.bytebuddy.agent.builder.AgentBuilder$RedefinitionStrategy.apply(AgentBuilder.java:5743)

at org.apache.skywalking.apm.dependencies.net.bytebuddy.agent.builder.AgentBuilder$Default.doInstall(AgentBuilder.java:11237)

at org.apache.skywalking.apm.dependencies.net.bytebuddy.agent.builder.AgentBuilder$Default.installOn(AgentBuilder.java:11155)

at org.apache.skywalking.apm.agent.SkyWalkingAgent.premain(SkyWalkingAgent.java:133)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386)

at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:401)

五、若有更多详细信息,请在下面提供。

1条回答
  • 你的agent版本是多少?

    A@DYZO@UU$Y0A3%RSFWRFH6.png

    作者追问:2024-02-04 14:05

    9.0.0

    回答: 2024-02-04 14:37

    jdk的版本呢?

    作者追问:2024-02-04 14:53

    1.8

    作者追问:2024-02-04 18:40

    打成jar包后执行完整的命令 如:

    java -jar app.jar -javaagent:/users/bladex/skywalking/skywalking-agent/skywalking-agent.jar -Dskywalking.agent.service_name=blade-gateway -Dskywalking.collector.backend_service=127.0.0.1:11800

    并且看一下skywalking的8080端口与11800端口是否对外开启,如果开启了也没法成功启动,请把你的skywalking服务对外网开放并且把地址发到我们邮箱 bladejava@qq.com,我们安排调试

    作者追问:2024-02-05 08:40

    我都是在本地调试的并没有上服务器,我本地新建的原生springboot项目是可以正常启动并上报日志的

    作者追问:2024-02-05 08:52

    是只需要把我本地skywalking启动并提供给你们访问就行了吗?

    作者追问:2024-02-05 10:25

    开放外网访问,能让我们访问到便可以,并且你提供地址之前,先从你所说的本地可以的springboot工程测试一下,测试通了再提供地址,这样方便我们排查

    作者追问:2024-02-05 11:23

    skywalking地址已发送至邮箱,请查收

    作者追问:2024-02-06 09:47

    请问排查出问题了吗?

    0 讨论(0)
提交回复