I added code tags to your post, and doesn't it look better Always use the tags; there is even a dropdown list so you can choose highlighting for Groovy. Please copy'n'paste code onto this website; the line numbers appear to be different from what the stack trace shows.
I don't know any Groovy, but I can't see anywhere that would throw that sort of exception. That type of exceptionis thrown from static initialisers, and you haven't got any static initialisers. Try changing the Groovy to read thus:-and create another Java® classSee what happens. I know it is naughty to have that sort of code in a constructor, but it will allow you to see what is happening in the Java® without altering too much of the Groovy. I added a main method so you can try the Java® code on its own.
To do a great right, do a little wrong - shakepeare. twisted little ad:
how do I do my own kindle-like thing - without amazon