AnsweredAssumed Answered

SDK3 - HOTSWAP - Doesn't work

Question asked by gawel on Nov 24, 2017
Latest reply on Nov 28, 2017 by gawel

Hi, Hotswap seen doesn't work on any artifact genration :


HOTSWAP AGENT: 15:37:42.619 RELOAD (org.hotswap.agent.config.PluginManager) - Reloading classes [com.xxx.xx.controller.SiteCustomPostController] (autoHotswap)
Exception in thread "Thread-240" java.lang.IllegalStateException: Unable to redefine classes
        at org.hotswap.agent.config.PluginManager.hotswap(PluginManager.java:272)
        at org.hotswap.agent.plugin.hotswapper.HotswapperPlugin$1.executeCommand(HotswapperPlugin.java:94)
        at org.hotswap.agent.command.impl.CommandExecutor.run(CommandExecutor.java:25)
Caused by: java.lang.UnsupportedOperationException: class redefinition failed: attempted to change the schema (add/remove fields)
        at sun.instrument.InstrumentationImpl.redefineClasses0(Native Method)
        at sun.instrument.InstrumentationImpl.redefineClasses(InstrumentationImpl.java:170)
        at org.hotswap.agent.config.PluginManager.hotswap(PluginManager.java:269)
        ... 2 more

 

Anywhere, I don't try to create new method or classe, just add new space on java code.

 

Have you the same bug?

Outcomes