Well i also looked in the file preferences and it was set at 9600.
I also places (removed) it somewhere else. Than arduino cant open at all.
I also installed Java 7 instead of 6.
The first time i ran adruino it worked again, and then just gives the 500 error again.
this sucks.
Is it Ubuntu or arduino?