Reputation: 421
I was running in some strange error message while defining a domain-model in Grails and applying a constraint to an integer variable.
package example
class Ip {
String inetAddress
String DNS
Integer Points
String toString(){
"${inetAddress}"
}
static constraints = {
inetAddress()
DNS()
Points(nullable: true)
}
}
This created the following error message when starting the application
Message:Can not set org.springsource.loaded.ISMgr field example.Ip.r$fields to java.lang.Class
Upvotes: 0
Views: 760
Reputation: 421
Changing the variable definition from
Integer Points
to
Integer points
solved the problem.
Upvotes: 1