posted 15 years ago
Hi,
I'm a groovy newbie. I've been trying different example SQL against mysql, but I've been getting this exception:
I'm not sure where I'm going awry. The javadoc say this:
An ExceptionInInitializerError is thrown to indicate that an exception occurred during evaluation of a static initializer or the initializer for a static variable.
To figure out what classes are being created, I did a 'groovyc mysql_test.groovy' and found the following 2 classes compiled:
mysql_test.class
mysql_test$_query_closure1.class
So I'm assuming its the mysql_test.class is throwing the exception, but I'm not sure why. Here's my code:
Any help is appreciated.
Thanks,
- G.