The correct answer is that you are missing the static keyword on the inner class.
Just make sure that the “static” keyword is there.
Read http://www.cowtowncoder.com/blog/archives/2010/08/entry_411.html
it takes you 3 minutes but make you happy for the rest of the day.