AnsweredAssumed Answered

Not able to achieve hot reloading in alfresco sdk 3.0

Question asked by vikash.patel@contcentric.com on Jan 8, 2018
Latest reply on Jan 9, 2018 by krutik.jayswal

I am trying to achieve hot reloading by following this Using HotSwapAgent | Alfresco Documentation link.

After completing all steps when I am making changes in sample webscript java file it is giving following error and changes are not getting reflected.

 

Exception in thread "Thread-69" java.lang.IllegalStateException: Unable to redefine classes
at org.hotswap.agent.config.PluginManager.hotswap(PluginManager.java:276)
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 add a method
at sun.instrument.InstrumentationImpl.redefineClasses0(Native Method)
at sun.instrument.InstrumentationImpl.redefineClasses(InstrumentationImpl.java:170)
at org.hotswap.agent.config.PluginManager.hotswap(PluginManager.java:272)
... 2 more

 

Thanks,

Vikash

Outcomes