|
I attempted to upgrade this evening and now receive an exception on startup. I've tried it in both Windows & Linux environments but both give the same (MissingMethod) exception. Could I have a problematic plugin? Any insight greatly appreciated.
Thanks, Tom $ grails run-app Welcome to Grails 1.3.0 - http://grails.org/ Licensed under Apache Standard License 2.0
Grails home is set to: /usr/lib/grails Base Directory: /home/tom/grails-development/MainProject Resolving dependencies... Dependencies resolved in 766ms. Running script /usr/lib/grails/scripts/RunApp.groovy
Environment set to development [delete] Deleting directory /home/tom/.grails/1.3.0/projects/MainProject/tomcat Running Grails application.. 2010-05-11 23:45:27,726 [main] ERROR context.GrailsContextLoader - Error executing bootstraps: groovy.lang.MissingMethodException: No signature of method: org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy.setMinEvictableIdleTimeMillis() is applicable for argument types: (java.lang.Integer) values: [900000]
org.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy.setMinEvictableIdleTimeMillis() is applicable for argument types: (java.lang.Integer) values: [900000]
at grails.util.Environment.evaluateEnvironmentSpecificBlock(Environment.java:251) at grails.util.Environment.executeForEnvironment(Environment.java:244) at grails.util.Environment.executeForCurrentEnvironment(Environment.java:220)
at org.grails.tomcat.TomcatServer.start(TomcatServer.groovy:164) at grails.web.container.EmbeddableServer$start.call(Unknown Source) at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy:159)
at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy) at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:282) at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy)
at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:150) at _GrailsRun_groovy$_run_closure5.call(_GrailsRun_groovy) at _GrailsRun_groovy.runInline(_GrailsRun_groovy:116)
at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy) at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:59) at RunApp$_run_closure1.doCall(RunApp.groovy:33)
at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381) at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415) at gant.Gant$_dispatch_closure7.doCall(Gant.groovy)
at gant.Gant.withBuildListeners(Gant.groovy:427) at gant.Gant.this$2$withBuildListeners(Gant.groovy) at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
at gant.Gant.dispatch(Gant.groovy:415) at gant.Gant.this$2$dispatch(Gant.groovy) at gant.Gant.invokeMethod(Gant.groovy) at gant.Gant.executeTargets(Gant.groovy:590)
at gant.Gant.executeTargets(Gant.groovy:589) Caused by: groovy.lang.MissingMethodException: No signature of method: org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy.setMinEvictableIdleTimeMillis() is applicable for argument types: (java.lang.Integer) values: [900000]
at DataSourceUtils$__clinit__closure1_closure2.doCall(DataSourceUtils.groovy:16) at DataSourceUtils$__clinit__closure1.doCall(DataSourceUtils.groovy:15) at BootStrap$_closure1.doCall(BootStrap.groovy:4)
... 26 more
|
|
Are you setting properties on the dataSource?
This has changed to a proxy in 1.3, you'll need to get a reference to "dataSourceUnproxied" to set properties on the actual data source Cheers On 12 May 2010, at 09:00, Tom Eastmond wrote: > I attempted to upgrade this evening and now receive an exception on startup. I've tried it in both Windows & Linux environments but both give the same (MissingMethod) exception. > Could I have a problematic plugin? Any insight greatly appreciated. > > Thanks, > Tom > > > $ grails run-app > Welcome to Grails 1.3.0 - http://grails.org/ > Licensed under Apache Standard License 2.0 > Grails home is set to: /usr/lib/grails > > Base Directory: /home/tom/grails-development/MainProject > Resolving dependencies... > Dependencies resolved in 766ms. > Running script /usr/lib/grails/scripts/RunApp.groovy > Environment set to development > [delete] Deleting directory /home/tom/.grails/1.3.0/projects/MainProject/tomcat > Running Grails application.. > 2010-05-11 23:45:27,726 [main] ERROR context.GrailsContextLoader - Error executing bootstraps: groovy.lang.MissingMethodException: No signature of method: org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy.setMinEvictableIdleTimeMillis() is applicable for argument types: (java.lang.Integer) values: [900000] > org.codehaus.groovy.runtime.InvokerInvocationException: groovy.lang.MissingMethodException: No signature of method: org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy.setMinEvictableIdleTimeMillis() is applicable for argument types: (java.lang.Integer) values: [900000] > at grails.util.Environment.evaluateEnvironmentSpecificBlock(Environment.java:251) > at grails.util.Environment.executeForEnvironment(Environment.java:244) > at grails.util.Environment.executeForCurrentEnvironment(Environment.java:220) > at org.grails.tomcat.TomcatServer.start(TomcatServer.groovy:164) > at grails.web.container.EmbeddableServer$start.call(Unknown Source) > at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy:159) > at _GrailsRun_groovy$_run_closure5_closure12.doCall(_GrailsRun_groovy) > at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:282) > at _GrailsSettings_groovy$_run_closure10.call(_GrailsSettings_groovy) > at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:150) > at _GrailsRun_groovy$_run_closure5.call(_GrailsRun_groovy) > at _GrailsRun_groovy.runInline(_GrailsRun_groovy:116) > at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy) > at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:59) > at RunApp$_run_closure1.doCall(RunApp.groovy:33) > at gant.Gant$_dispatch_closure5.doCall(Gant.groovy:381) > at gant.Gant$_dispatch_closure7.doCall(Gant.groovy:415) > at gant.Gant$_dispatch_closure7.doCall(Gant.groovy) > at gant.Gant.withBuildListeners(Gant.groovy:427) > at gant.Gant.this$2$withBuildListeners(Gant.groovy) > at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source) > at gant.Gant.dispatch(Gant.groovy:415) > at gant.Gant.this$2$dispatch(Gant.groovy) > at gant.Gant.invokeMethod(Gant.groovy) > at gant.Gant.executeTargets(Gant.groovy:590) > at gant.Gant.executeTargets(Gant.groovy:589) > Caused by: groovy.lang.MissingMethodException: No signature of method: org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy.setMinEvictableIdleTimeMillis() is applicable for argument types: (java.lang.Integer) values: [900000] > at DataSourceUtils$__clinit__closure1_closure2.doCall(DataSourceUtils.groovy:16) > at DataSourceUtils$__clinit__closure1.doCall(DataSourceUtils.groovy:15) > at BootStrap$_closure1.doCall(BootStrap.groovy:4) > ... 26 more --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
Thanks for the prompt response! I apologize for having missed this change - I had tweaked my datasource to prevent stale connections (http://sacharya.com/grails-dbcp-stale-connections/). Now that I've updated my code to reference dataSourceUnproxied things work great again. Hopefully this thread will help others who've made similar changes.
Thanks again, Tom
On Wed, May 12, 2010 at 12:06 AM, Graeme Rocher <[hidden email]> wrote: Are you setting properties on the dataSource? |
| Powered by Nabble | Edit this page |
