Java Language Support 1.46+ breaks agent loading
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- java, typescript, vscode
- Lĩnh vực
- developer-experience, tooling
Hướng nghiên cứu
Bắt đầu với repository java_language_support_bug được liên kết và tái hiện sự khác biệt giữa Java Language Support 1.45.0 và 1.46.0+ bằng môi trường được cung cấp. So sánh các đối số khởi chạy được tạo ra hoặc classpath và hành vi tải agent; hoàn tất khi agent manifest-only chạy mà không có ClassNotFoundException trong các phiên bản bị ảnh hưởng.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Java Language Support 1.46+ breaks agent loading
For years I have been using a jar file that only contains the manifest file for a agent. This allowed for a fast convenient workflow cause I can make changes to the agent and quickly test them without the need of rebuilding the jar file.
The last version this worked is 1.45.0, after this it's broken.
The output you get after 1.45.0 is:
/usr/bin/env /Library/Java/JavaVirtualMachines/jdk-24.0.2.jdk/Contents/Home/bin/java -agentlib:jdwp=transport=dt_socket,server=n,suspe
nd=y,address=localhost:62572 @/var/folders/hz/57zbqcy11q30rv9_gbdlvckc0000gn/T/cp_2neoah6v6lbyb5srzf0syfujp.argfile imgui_2026_examples.Example
Exception in thread "main" java.lang.ClassNotFoundException: imgui_2026.UI_Widget_Agent
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:580)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:490)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:488)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:556)
*** java.lang.instrument ASSERTION FAILED ***: "!errorOutstanding" with message Outstanding error when calling method in invokeJavaAgentMainMethod at open/src/java.instrument/share/native/libinstrument/JPLISAgent.c line: 627
*** java.lang.instrument ASSERTION FAILED ***: "success" with message invokeJavaAgentMainMethod failed at open/src/java.instrument/share/native/libinstrument/JPLISAgent.c line: 466
*** java.lang.instrument ASSERTION FAILED ***: "result" with message agent load/premain call failed at open/src/java.instrument/share/native/libinstrument/JPLISAgent.c line: 429
FATAL ERROR in native method: processing of -javaagent failed, processJavaStart failed
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
V [libjvm.dylib+0x533e84] jni_FatalError+0x7c
V [libjvm.dylib+0x6a317c] JvmtiExport::post_vm_initialized()+0x2cc
V [libjvm.dylib+0x9dcc00] Threads::create_vm(JavaVMInitArgs*, bool*)+0x7a4
V [libjvm.dylib+0x552dc8] JNI_CreateJavaVM+0x74
C [libjli.dylib+0xa438] JavaMain+0x100
C [libjli.dylib+0xd72c] ThreadJavaMain+0xc
C [libsystem_pthread.dylib+0x6c0c] _pthread_start+0x88
zsh: abort /usr/bin/env imgui_2026_examples.Example
To Reproduce
Steps to reproduce the behavior:
I made a repository with a really small setup to reproduce.
- download https://github.com/clankill3r/java_language_support_bug
- run with 1.45.0 👍
- run with 1.46.0+ 👎
Expected behavior
Instead of a ClassNotFoundException it should be able to run.
Environment
- Operating System: OSX 15.6
- JDK version: jdk-24.0.2
- Visual Studio Code version: 1.121.0
- Java extension version: 1.45.0 / 1.46+
- Ngôn ngữ chính
- TypeScript
- Star
- 2.3k
- Fork
- 547
- Merge trung bình
- 20 giờ 9 phút
- Pull request đã merge (30 ngày)
- 10
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của redhat-developer/vscode-java
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
redhat-developer/vscode-java#4509 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
redhat-developer/vscode-java#4426 ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
redhat-developer/vscode-java#4506 · 3 bình luận · 4 reaction ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
redhat-developer/vscode-java#4505 · 2 bình luận · 2 reaction ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 52/100
redhat-developer/vscode-java#4504 · 3 bình luận · 1 reaction ·
Tất cả issue của redhat-developer/vscode-java
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
bug v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
modelcontextprotocol/inspector#2458 · 1 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
railmapgen/rmp-gallery#4068 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
carbon-design-system/ibm-products#9907 ·