我正在尝试使用参数构造一个对象,如下所示:
PublicationResource resourceAux = new PublicationResource (publication: pub, resource: res);
if (resourceAux)
{
resourceAux.save(flush: true, failOnError: true);
}
我收到此错误:
WARN 2012-11-20 22:52:35,775 [org.codehaus.groovy.grails.web.binding.GrailsDataBinder] Unable to auto-create type, Groovy Runtime error: java.lang.InstantiationException