17 Aug 21:07
[groovy-dev] MySQL Error
From: Robert Fischer <robert.fischer@...>
Subject: [groovy-dev] MySQL Error
Newsgroups: gmane.comp.lang.groovy.devel
Date: 2008-08-17 19:10:28 GMT
Subject: [groovy-dev] MySQL Error
Newsgroups: gmane.comp.lang.groovy.devel
Date: 2008-08-17 19:10:28 GMT
(I tried to send this to the user list, but it bounced me because I wasn't subscribed, even though I've subscribed. Had the same problem on the user-grails list. I've forwarded the e-mail to the owner of the lists, as the error response e-mail told me to.) Is anyone successfully connecting to MySQL through Groovy 1.6b1? When I run "driver.connect(url, info)", I get the following error: Exception in thread "main" java.sql.SQLException: Unable to connect to any hosts due to exception: java.lang.ArrayIndexOutOfBoundsException: 45 at com.mysql.jdbc.Connection.createNewIO(Connection.java:1797) at com.mysql.jdbc.Connection.<init>(Connection.java:562) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:361) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:182) at org.codehaus.groovy.runtime.callsite.CallSite.call(CallSite.java:126) org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:182) at org.codehaus.groovy.runtime.callsite.CallSite.call(CallSite.java:126) Now, I'm able to connect via JRuby and Java using the exact same Connector/J JAR, driver class name, URL, username, and password. So I've got to believe there's something weird going on with Groovy. ~~ Robert. --------------------------------------------------------------------- To unsubscribe from this list, please visit:(Continue reading)
RSS Feed