Well, the code doesn't help much, because it won't compile as is -- probably because I don't have the chn.util package.
When you get the exception, it should tell you the line number that caused the problem. Please tell us where the problem is, and we can probably help you.
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer sscce.org