Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

MissingMethodException after upgrading to Grails 2.2

After upgrading to Grails 2.2, I get this exception

Class: groovy.lang.MissingMethodException

Message:

No signature of method: static org.codehaus.groovy.runtime.InvokerHelper.getVersion() is applicable for argument types: () values: []

The exception occurs on index.gsp only - how can I get rid of the error?

like image 762
peterp Avatar asked May 15 '13 07:05

peterp


1 Answers

After the upgrade, the Grails version can no longer be retrieved using org.codehaus.groovy.runtime.InvokerHelper.getVersion().

Open index.gsp and change the line which says "Groovy version" to

<li>Groovy version: ${GroovySystem.getVersion()}</li>

to get rid of the error message.

like image 129
peterp Avatar answered Sep 28 '22 14:09

peterp