I am trying to write a sample application using GWT and Intellij IDEA 9. Everything seems to be fine, but as soon as I launch hosted mode and open the page, I get this alert window in both Firefox and Chrome:

plugin failed to connect to hosted mode server at

Google told that replacing can help, but it doesn't in my case.

Could someone please explain how to resolve this issue and, possibly, why this error happens.