You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got an MissingMethodException when I configured transactions to my controller.
I used static field static transactional = [ 'merge' ].
Here is the exception:
groovy.lang.MissingMethodException: No signature of method: com.profiprog.asap.BankEmployeeController.message() is applicable for argument types: (java.util.LinkedHashMap) values: [[code:bankEmployee.label, default:BankEmployee]]
Possible solutions: getSave(), setSave(java.lang.Object), isCase(java.lang.Object)
at TransactionalControllerGrailsPlugin$_decorateClosures_closure3.doCall(TransactionalControllerGrailsPlugin.groovy:125)
at com.profiprog.asap.BankEmployeeController.invokeMethod(BankEmployeeController.groovy)
at com.profiprog.asap.BankEmployeeController$_closure5.doCall(BankEmployeeController.groovy:77)
at com.profiprog.asap.BankEmployeeController$_closure5.doCall(BankEmployeeController.groovy)
at com.profiprog.asap.security.AuthenticationUpdater.doFilter(AuthenticationUpdater.java:41)
at java.lang.Thread.run(Thread.java:662)
This exception occurs when message() is invoked from any action (even not transactional one). Like:
I've got an MissingMethodException when I configured transactions to my controller.
I used static field
static transactional = [ 'merge' ]
.Here is the exception:
groovy.lang.MissingMethodException: No signature of method: com.profiprog.asap.BankEmployeeController.message() is applicable for argument types: (java.util.LinkedHashMap) values: [[code:bankEmployee.label, default:BankEmployee]]
Possible solutions: getSave(), setSave(java.lang.Object), isCase(java.lang.Object)
at TransactionalControllerGrailsPlugin$_decorateClosures_closure3.doCall(TransactionalControllerGrailsPlugin.groovy:125)
at com.profiprog.asap.BankEmployeeController.invokeMethod(BankEmployeeController.groovy)
at com.profiprog.asap.BankEmployeeController$_closure5.doCall(BankEmployeeController.groovy:77)
at com.profiprog.asap.BankEmployeeController$_closure5.doCall(BankEmployeeController.groovy)
at com.profiprog.asap.security.AuthenticationUpdater.doFilter(AuthenticationUpdater.java:41)
at java.lang.Thread.run(Thread.java:662)
This exception occurs when message() is invoked from any action (even not transactional one). Like:
Message can be invoked directly from action,
or inside string like
"${message(code:'default.label')}"
.Note: Also controller's code, generated by
generate-controller
, contains this kind of invoking message().Workaround
Add prefix
g.
before every invocation ofmessage()
inside every controller's action:The text was updated successfully, but these errors were encountered: