Type: Posts; User: PhHein
As a first step you should run your code from the EDT.
Post the complete stack trace, there must be more than the two lines.