java.lang.IllegalStateException: Could not install class file transformer

GitHub | domtoupin | 3 months ago
  1. 0

    Attempt to mock a Kotlin-sealed class contained in another class fails when using mock-maker-inline

    GitHub | 1 month ago | nhaarman
    java.lang.UnsupportedOperationException: class redefinition failed: attempted to change the class modifiers
  2. 0

    Java agent cannot transform all the classes in my project

    Stack Overflow | 7 months ago | rakwaht
    java.lang.UnsupportedOperationException: class redefinition failed: attempted to change the schema (add/remove fields)
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Unable to transform AccessibleObject class

    GitHub | 5 months ago | johnlcox
    java.lang.IllegalStateException: Could not install class file transformer
  5. 0

    Failed to redefine class When I try to retransform class

    Stack Overflow | 3 years ago | Nick Dong
    java.lang.UnsupportedOperationException: class redefinition failed: attempted to change the schema (add/remove fields)

    2 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.UnsupportedOperationException

      class redefinition failed: attempted to change the class modifiers

      at sun.instrument.InstrumentationImpl.retransformClasses0()
    2. Java RT
      InstrumentationImpl.retransformClasses
      1. sun.instrument.InstrumentationImpl.retransformClasses0(Native Method)
      2. sun.instrument.InstrumentationImpl.retransformClasses(InstrumentationImpl.java:144)
      2 frames
    3. Byte Buddy (with dependencies)
      AgentBuilder$Default$Delegator.installOn
      1. net.bytebuddy.agent.builder.AgentBuilder$RedefinitionStrategy$Collector$ForRetransformation$Cumulative.apply(AgentBuilder.java:2932)
      2. net.bytebuddy.agent.builder.AgentBuilder$Default.installOn(AgentBuilder.java:4964)
      3. net.bytebuddy.agent.builder.AgentBuilder$Default$Delegator.installOn(AgentBuilder.java:6591)
      3 frames
    4. org.stagemonitor.core
      StagemonitorRuntimeAgentAttacherDriver.<clinit>
      1. org.stagemonitor.core.instrument.AgentAttacher.initByteBuddyClassFileTransformer(AgentAttacher.java:159)
      2. org.stagemonitor.core.instrument.AgentAttacher.performRuntimeAttachment(AgentAttacher.java:79)
      3. org.stagemonitor.core.Stagemonitor.reset(Stagemonitor.java:254)
      4. org.stagemonitor.core.Stagemonitor.<clinit>(Stagemonitor.java:41)
      5. org.stagemonitor.core.instrument.StagemonitorRuntimeAgentAttacherDriver.<clinit>(StagemonitorRuntimeAgentAttacherDriver.java:23)
      5 frames
    5. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      4 frames
    6. JBoss Application Server: Connector Subsystem
      DriverProcessor.deploy
      1. org.jboss.as.connector.deployers.ds.processors.DriverProcessor.deploy(DriverProcessor.java:65)
      1 frame
    7. JBoss Application Server: Server
      DeploymentUnitPhaseService.start
      1. org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:147)
      1 frame
    8. JBoss Modular Service Container
      ServiceControllerImpl$StartTask.run
      1. org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
      2. org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
      2 frames
    9. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      3. java.lang.Thread.run(Thread.java:745)
      3 frames