question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SkyWalking faces a break in byte-buddy upgrade from 1.10.19 to latest 1.11.16

See original GitHub issue

Hi

This upgrade operation is initiated in https://github.com/apache/skywalking-java/pull/30, which doesn’t show any compiling level issue. But after I submitted pull request, and some issues show up in the plugin tests. Those plugin tests are really loading the latest agent(depend on 1.11.16) and running a real service.

According to this CI logs, https://github.com/apache/skywalking-java/pull/30/checks?check_run_id=3661574946

  Error: 9-21 09:36:37:414] [ERROR] - org.apache.juli.logging.DirectJDKLog.log(DirectJDKLog.java:175) - Servlet.service() for servlet [dispatcherServlet] in context with path [/jdk-http-scenario] threw exception [Handler dispatch failed; nested exception is java.lang.ExceptionInInitializerError] with root cause
  java.lang.ClassNotFoundException: org/apache/skywalking/apm/dependencies/net/bytebuddy/implementation/LoadedTypeInitializer
  	at java.lang.Class.forName0(Native Method) ~[?:1.8.0_102]
  	at java.lang.Class.forName(Class.java:348) ~[?:1.8.0_102]
  	at org.apache.skywalking.apm.dependencies.net.bytebuddy.dynamic.Nexus.initialize(Nexus.java:137) ~[skywalking-agent.jar:8.8.0-SNAPSHOT]
  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_102]
  	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_102]
  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_102]
  	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_102]
  	at sun.net.www.http.HttpClient.<clinit>(HttpClient.java:163) ~[?:1.8.0_102]
  	at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1169) ~[?:1.8.0_102]
  	at sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1105) ~[?:1.8.0_102]
  	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999) ~[?:1.8.0_102]
  	at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:933) ~[?:1.8.0_102]
  	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1513) ~[?:1.8.0_102]
  	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441) ~[?:1.8.0_102]
  	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480) ~[?:1.8.0_102]
  	at org.apache.skywalking.apm.testcase.jdkhttp.controller.CaseController.testcase(CaseController.java:46) ~[classes!/:?]

As I check locally, org/apache/skywalking/apm/dependencies/net/bytebuddy/implementation/LoadedTypeInitializer is in the shaded package. You also could download it from our CI cached artifacts, https://github.com/apache/skywalking-java/suites/3826509443/artifacts/94739312

The test application’s source codes are here, https://github.com/apache/skywalking-java/tree/main/test/plugin/scenarios/jdk-http-scenario, which is compiled through JDK1.8

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
raphwcommented, Sep 22, 2021

Some time this week!

0reactions
wu-shengcommented, Sep 22, 2021

Look forward to your announcement.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can not resolve type description error from byte buddy #1184
Hi, I am trying to do Tracing of request through WSO2 EI (https://docs.wso2.com/display/EI660/Overview) using Sky Walking java agent ...
Read more >
Byte Buddy - runtime code generation for the Java virtual ...
Welcome, I'm your Byte Buddy! Byte Buddy is a code generation and manipulation library for creating and modifying Java classes during the runtime...
Read more >
byte-buddy 1.12.19 javadoc (net.bytebuddy)
This package contains annotations, types and classes that are responsible for binding a method to calling another method by interpreting annotations that ...
Read more >
net.bytebuddy » byte-buddy - Maven Repository
Byte Buddy is a Java library for creating Java classes at run time. This artifact is a build of Byte Buddy with all...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found