Grails启动时出错:无法在null对象上调用方法contains()

时间:2014-08-28 13:47:07

标签: grails

我已经下载并安装了Grails 2.3.6,并尝试创建一个新的应用程序(因为我正在尝试使用Grails学习)。不幸的是,每当Grails加载时我都会收到此错误,例如:

C:\Users\me>grails help --stacktrace

| Loading Grails 2.3.6
| Error There was an error loading the BuildConfig: Cannot invoke method contain
s() on null object (NOTE: Stack trace has been filtered. Use --verbose to see en
tire trace.)
java.lang.NullPointerException: Cannot invoke method contains() on null object
        at settings.run(settings.groovy:24)
        at grails.util.BuildSettings.loadSettingsFile(BuildSettings.groovy:1302)

        at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1063)
        at grails.util.BuildSettings.loadConfig(BuildSettings.groovy)
        at grails.util.BuildSettings$loadConfig$0.callCurrent(Unknown Source)
        at grails.util.BuildSettings.loadConfig(BuildSettings.groovy:1053)
| Error There was an error loading the BuildConfig: Cannot invoke method contain
s() on null object

什么可能导致这个问题?

我系统的一些信息:

C:\Users\me>echo %JAVA_HOME%
C:\Program Files\Java\jdk1.7.0_45

C:\Users\me>echo %GRAILS_HOME%
C:\grails-2.3.6

操作系统:Windows 8.1 Pro(x64)

非常感谢任何提示,谢谢!

0 个答案:

没有答案