AnsweredAssumed Answered

Not able to achieve hot reloading in alfresco sdk 3.0

Question asked by 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(
at org.hotswap.agent.plugin.hotswapper.HotswapperPlugin$1.executeCommand(
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(
at org.hotswap.agent.config.PluginManager.hotswap(
... 2 more