调试时Grails应用程序抛出异常

时间:2013-05-28 20:03:45

标签: grails

我是grails的新手,并试图调试我的应用程序。 我尝试调试我的应用程序时遇到以下错误,但它在正常模式下运行正常。我无法弄清楚错误描述中的错误。我错过了什么吗?

Error 2013-05-28 15:59:13,903 [pool-7-thread-1] ERROR context.GrailsContextLoader  - Error executing bootstraps: org/springframework/beans/TypeMismatchException
Message: org/springframework/beans/TypeMismatchException

BootStrap.groovy中

class BootStrap {
    def grailsApplication;
    def atomUtil;

    def init = { servletContext ->
        grailsApplication.config.dpc.currentTimestamp = DateUtil.getCurrentDateMidnight(); // yesterday

        // check the env only if in development mode
        if (Environment.getCurrent().name != "development"
        || "${System.env['SCST_CONFIG_load_reference_data']}" == "true") {
            def atomThread = Thread.start {
                AtomInfo.withTransaction { status ->
                    atomUtil.initializeData();
                }
            }
            def contextThread = Thread.start {
                ContextInfo.withTransaction { status ->
                    ContextUtil.initializeData();
                }
            }
            atomThread.join()
            contextThread.join()
        } else {
            log.info "[env:${Environment.getCurrent().name}] Skipping ATOMS & CONTEXTS Load. In development, set environmental SCST_CONFIG_load_reference_data=true"
        }
    }

    def destroy = {
    }
}

2 个答案:

答案 0 :(得分:0)

尝试组织导入并刷新依赖项。

答案 1 :(得分:0)

我使用Grails 2.1.0并出现此错误。

当我升级到2.1.5时,我不再有错误。我还将GGTS升级到3.6

相关问题