Thanks!
Hi Dmitri,
I've been using IntelliJ on 3.2 and 4.0 but never had the kind of issue you describe, however I had a similar issue with another java application. In my case I worked around the issue by downgrading the software version and never had time to investigate.
I would check the jre used by IntelliJ and eventually try to upgrade intellij/jre