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.

Stagemonitor no longer works under Wildfly 10 (SNAPSHOT)

See original GitHub issue

While investigating issue #189 I came across the following error when starting stagemonitor under Wildfly 10:

ERROR [org.stagemonitor.core.Stagemonitor] (MSC service thread 1-4) Could not install class file transformer: java.lang.IllegalStateException: Could not install class file transformer
    at net.bytebuddy.agent.builder.AgentBuilder$InstallationStrategy$Default$1.onError(AgentBuilder.java:2411)
    at net.bytebuddy.agent.builder.AgentBuilder$Default.installOn(AgentBuilder.java:4968)
    at net.bytebuddy.agent.builder.AgentBuilder$Default$Delegator.installOn(AgentBuilder.java:6591)
    at org.stagemonitor.core.instrument.AgentAttacher.initByteBuddyClassFileTransformer(AgentAttacher.java:159)
    at org.stagemonitor.core.instrument.AgentAttacher.performRuntimeAttachment(AgentAttacher.java:79)
    at org.stagemonitor.core.Stagemonitor.reset(Stagemonitor.java:254)
    at org.stagemonitor.core.Stagemonitor.<clinit>(Stagemonitor.java:41)
    at org.stagemonitor.core.instrument.StagemonitorRuntimeAgentAttacherDriver.<clinit>(StagemonitorRuntimeAgentAttacherDriver.java:23)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    at org.jboss.as.connector.deployers.ds.processors.DriverProcessor.deploy(DriverProcessor.java:65)
    at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.UnsupportedOperationException: class redefinition failed: attempted to change the class modifiers
    at sun.instrument.InstrumentationImpl.retransformClasses0(Native Method)
    at sun.instrument.InstrumentationImpl.retransformClasses(InstrumentationImpl.java:144)
    at net.bytebuddy.agent.builder.AgentBuilder$RedefinitionStrategy$Collector$ForRetransformation$Cumulative.apply(AgentBuilder.java:2932)
    at net.bytebuddy.agent.builder.AgentBuilder$Default.installOn(AgentBuilder.java:4964)
    ... 17 more

It seems to be related to a new version of bytebuddy as reverting to bytebuddy 1.4.7 (as in version 0.27.2) fixes the problem.

Element Version
Stagemonitor 0.28.0-SNAPSHOT
Java “1.8.0_101”
Wildfly 10.0.0.Final

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:19 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
domtoupincommented, Aug 29, 2016

@raphw I tried Byte Buddy 1.4.21 and everything seems OK under Wildfly 10. I will open a PR to fix this in the next StageMonitor release. Thank you!

0reactions
felixbarnycommented, Aug 30, 2016

fixed by #192

Read more comments on GitHub >

github_iconTop Results From Across the Web

Integration with Wildfly 10 · Issue #165 · stagemonitor ... - GitHub
Hi, I'm currently trying to integrate stagemonitor in our non-servlet application (EAR) running under Wildfly 10.0.0.Final.
Read more >
Wildfly beta 1 seems to ignore web.xml - JBoss.org
I am trying run a Apache Wicket Application on Wildfly Beta1 but it seems to ignore the web.xml and redirects to a non-existant...
Read more >
Wildfly in Eclipse is adding the Maven SNAPSHOT to the web ...
When the migration is complete, you will access your Teams at stackoverflowteams.com, and they will no longer appear in the left sidebar on ......
Read more >
15 Best Java Performance Monitoring Tools & Software [2022]
Discover top tools available to monitor Java Virtual Machine performance! The best for monitoring and analyzing JVM metrics to ensure Java app performance....
Read more >
Open Source Application Performance Monitoring (APM) | RETIT
OpenTracing wants to become something like a standard tracing API/library (such as SLF4J for logging in Java) which is already build in in...
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