Command execution error: No signature of method: myOrg.ProcedureSet$_buildUniqueKeyFromProcTypes_closure1.doCall() is applicable for argument types: (myOrg.ServicedCaseProcedureType) values: [myOrg.ServicedCaseProcedureType : (unsaved)]
Possible solutions: doCall(myOrg.ServicedCaseProcedureType), findAll(), findAll(), isCase(java.lang.Object), isCase(java.lang.Object)
The following classes appear as argument class and as parameter class, but are defined by different class loader:
myOrg.ServicedCaseProcedureType (defined by 'org.springframework.boot.devtools.restart.classloader.RestartClassLoader@62a122fb' and 'sun.misc.Launcher$AppClassLoader@39a054a5')
If one of the method suggestions matches the method you wanted to call,
then check your class loader setup.
Would anyone have any idea how to address it? I am not doing anything special in build.gradle, definitely not trying to manipulate classloaders. Yet, all lines that address, use, or return Domain objects in the code, clearly have some class issues. I was able to "resolve" it until now by removing any declaration of concrete domain members
Organization org // changed to "def org"
to get pass those issues.
But I think this last clearly shows there is a problem. I just have no idea where to start.
My Command handle is like:
boolean handle() {
Account.withTransaction { // or withNewSession, either fails the same
readOrganizationFromEnviroment()
runActivityFacts()
}
return true
}