FAQ Database Discussion Community

Grails new Domain object with property map not setting property

EDIT: Per my answer below, this seems fixed by a "grails clean". You bang your head in frustration and you overlook the obvious sometimes. For some time we've had the following structure of domain objects: abstract class Company { String name ... } and multiple children similar to the following...

Method on class [] was used outside of a Grails application controller

I have below grails config: Datasource. environments { development { dataSource { dbCreate = "create-drop" // one of 'create', 'create-drop', 'update', 'validate', '' url = "jdbc:h2:mem:devDb;MVCC=TRUE;LOCK_TIMEOUT=10000;DB_CLOSE_ON_EXIT=FALSE" } datasource_staging_oracle { dbCreate = "none" url = "jdbc:oracle:thin:@//myoraclehost:1521/DBNAME" driverClassName = "oracle.jdbc.OracleDriver" username = "username" password = "password" } } Domain class: import org.springframework.integration.Message...

Grails 2.3.9 - Error: ClassNotFoundException: grails.plugin.spock.test.GrailsSpecTestType

Whenever I enter the grails command: test-app I get this error: Error executing script TestApp: java.lang.ClassNotFoundException: grails.plugin.spock.test.GrailsSpecTestType (Use --stacktrace to see the full trace) In my BuildConfig.groovy I have: grails.project.dependency.resolution = { ... plugins { ... test ":spock:0.7" } } I've tried replacing it with compile ":spock:0.7" . I've also...