I had exactly the same issue, made even more confusing by the fact that sometimes it would work, sometimes it wouldn't. It ran consistently on my local machine, but failed 90% of the time on my build server.
Dropping back to Java 6 x86 has seemingly fixed the issue (I uninstalled all other versions), so I'd recommend that approach to anyone else with a similar problem.
Cheers
Jon