-
Notifications
You must be signed in to change notification settings - Fork 96
Open
Labels
area/java-agentstatus/has-workaroundThis has a known workaround describedThis has a known workaround describedstatus/on-holdThis was set aside or cannot be worked on yetThis was set aside or cannot be worked on yettype/bugA general bugA general bug
Description
BlockHound and ReactorDebugAgent cannot work together on java 8.
Application fails with error
java.util.ServiceConfigurationError: com.sun.tools.attach.spi.AttachProvider: Provider sun.tools.attach.WindowsAttachProvider could not be instantiated
java.lang.ExceptionInInitializerError
Caused by: java.lang.IllegalStateException: Error during attachment using: reactor.tools.shaded.net.bytebuddy.agent.ByteBuddyAgent$AttachmentProvider$Compound@53aac487
at reactor.tools.shaded.net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:400)
at reactor.tools.shaded.net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:374)
at reactor.tools.shaded.net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:342)
at reactor.tools.shaded.net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:328)
at reactor.tools.agent.ReactorDebugAgent.init(ReactorDebugAgent.java:41)
at com.example.demo.ReactorDebugApplication.<clinit>(ReactorDebugApplication.java:27)
Caused by: java.lang.reflect.InvocationTargetException
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 reactor.tools.shaded.net.bytebuddy.agent.Attacher.install(Attacher.java:99)
at reactor.tools.shaded.net.bytebuddy.agent.ByteBuddyAgent.install(ByteBuddyAgent.java:395)
... 5 more
Caused by: com.sun.tools.attach.AttachNotSupportedException: no providers installed
at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:203)
... 11 more
Exception in thread "main"
If I try to start application using java 11 or just disable BlockHound or ReactorDebugAgent (in the code and spring-boot integration) everything works fine.
Expected Behavior
application starts
Actual Behavior
application start fails
Steps to Reproduce
try to start application on java 8
https://github.com/robotmrv/reactor-debug-error
Possible Solution
Your Environment
- Reactor version(s) used:
io.projectreactor:reactor-core:3.3.0.RELEASE
io.projectreactor:reactor-tools:3.3.0.RELEASE
io.projectreactor.tools:blockhound:1.0.1.RELEASE - Other relevant libraries versions (eg.
netty, ...): - JVM version (
javar -version):
java version "1.8.0_231"
Java(TM) SE Runtime Environment (build 1.8.0_231-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.231-b11, mixed mode) - OS and version (eg
uname -a):
Win 10
Metadata
Metadata
Assignees
Labels
area/java-agentstatus/has-workaroundThis has a known workaround describedThis has a known workaround describedstatus/on-holdThis was set aside or cannot be worked on yetThis was set aside or cannot be worked on yettype/bugA general bugA general bug