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