Im getting the following error in the IDE. I have used the exact same code previously and it works great, and now its throwing this error. All inputs are populated so nothing there is null.
`grails.validation.ValidationException: Validation Error(s) occurred during save():
Field error in object ‘physicalgraph.device.Device’ on field ‘name’: rejected value [null]; codes [physicalgraph.device.Device.name.nullable.error.physicalgraph.device.Device.name,physicalgraph.device.Device.name.nullable.error.name,physicalgraph.device.Device.name.nullable.error.java.lang.String,physicalgraph.device.Device.name.nullable.error,device.name.nullable.error.physicalgraph.device.Device.name,device.name.nullable.error.name,device.name.nullable.error.java.lang.String,device.name.nullable.error,physicalgraph.device.Device.name.nullable.physicalgraph.device.Device.name,physicalgraph.device.Device.name.nullable.name,physicalgraph.device.Device.name.nullable.java.lang.String,physicalgraph.device.Device.name.nullable,device.name.nullable.physicalgraph.device.Device.name,device.name.nullable.name,device.name.nullable.java.lang.String,device.name.nullable,nullable.physicalgraph.device.Device.name,nullable.name,nullable.java.lang.String,nullable]; arguments [name,class physicalgraph.device.Device]; default message [{0} cannot be null]`
Hard to guess without the actual code… do you have a field called “name” by any chance? Maybe they made a change on the backend and that’s now a reserved word, and it’s throwing everything off?
preferences {
//what is the departure location?
section("Departing From:"){
input "departFrom", "text", title: "Address?"
}
//what is the destination location?
section("Arriving At:"){
input "arriveAt", "text", title: "Address?"
}
//what time do you need to arrive?
section("Expected Arrival Time:"){
input "arrivalTime", "time", title: "When?"
}
// //what time should I begin checking traffic?
section("Begin Checking At:"){
input "checkTime", "time", title: "When?"
}
//some traffic threshold in minutes
section("Traffic delay over this many minutes is considered Some Traffic:") {
input "threshold2", "number", title: "Minutes?"
}
//bad traffic threshold in minutes
section("Traffic delay over this many minutes is considered Bad Traffic:") {
input "threshold3", "number", title: "Minutes?"
}
}
`grails.validation.ValidationException: Validation Error(s) occurred during save():
Field error in object ‘physicalgraph.device.Device’ on field ‘name’:
rejected value [null]; codes
[physicalgraph.device.Device.name.nullable.error.physicalgraph.device.Device.name,physicalgraph.device.Device.name.nullable.error.name,physicalgraph.device.Device.name.nullable.error.java.lang.String,physicalgraph.device.Device.name.nullable.error,device.name.nullable.error.physicalgraph.device.Device.name,device.name.nullable.error.name,device.name.nullable.error.java.lang.String,device.name.nullable.error,physicalgraph.device.Device.name.nullable.physicalgraph.device.Device.name,physicalgraph.device.Device.name.nullable.name,physicalgraph.device.Device.name.nullable.java.lang.String,physicalgraph.device.Device.name.nullable,device.name.nullable.physicalgraph.device.Device.name,device.name.nullable.name,device.name.nullable.java.lang.String,device.name.nullable,nullable.physicalgraph.device.Device.name,nullable.name,nullable.java.lang.String,nullable];
arguments [name,class physicalgraph.device.Device]; default message
[{0} cannot be null]`
Getting the same thing, but after uninstalling the app from the simulator and retyping the inputs and update didn’t work for me…