Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does "Hot Swap error" with IntelliJ (in Java) mean?

I have no idea what a hot swap is and for the life of me cannot construct a google search that will find what it means in the context of my program. I was editing my class, the same way I do all the time, and when I went to run it I all of a sudden got a

Hot Swap failed: myClassName: schema not implemented

error.

Can anyone explain this to me in Layman's terms?

like image 238
Niko Avatar asked Jul 23 '14 22:07

Niko


People also ask

What is HotSwap in Intellij?

The HotSwap mechanism lets you reload classes changed during a debugging session without having to restart the entire application.

How do I enable hot deployment in Intellij?

Go to the File –> Settings –> Debugger –> HotSwap and ensure that all checkboxes are checked and the radio button “Reload classes after compilation” is set to “Always”.


1 Answers

You are attempting to change your source code while the program (or IntelliJ's debugger) is still running. This is what the HotSwap feature does according to IntelliJ's KB.

Please make sure your program and/or debugger is stopped before re-launching the program and the issue should be resolved.

like image 58
Ricky Mutschlechner Avatar answered Sep 24 '22 09:09

Ricky Mutschlechner