MySQL exception after upgrading from Java 6 to Java 7 I've been trying, for a long time, to find a solution for the issue.

Recently I've updated my JDK from 6 to 7. Now my grails app doesn't start up, I keep getting the follow exception:

Caused by SQLException: Unable to initialize driver properties due to java.lang.IllegalAccessException: Class org.springsource.loaded.ri.ReflectiveInterceptor can not access a member of class com.mysql.jdbc.ConnectionPropertiesImpl with modifiers "private"
-&gt;&gt; 1078 | createSQLException in com.mysql.jdbc.SQLError
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    989 | createSQLException in     ''
|    975 | createSQLException in     ''
|    920 | createSQLException in     ''
|   2819 | initializeProperties in com.mysql.jdbc.ConnectionPropertiesImpl
|   3490 | initializeDriverProperties in com.mysql.jdbc.ConnectionImpl
|    823 | &lt;init&gt; .  in     ''
|     47 | &lt;init&gt;    in com.mysql.jdbc.JDBC4Connection
|    411 | handleNewInstance in com.mysql.jdbc.Util


Any tips?

I am using grails 2.1.4
This is a bug in recent versions of the JDK - it fails in jdk1.7.0_25 but I'm using jdk1.7.0_21 and it works fine. Watch this issue for more information