我刚用编译指令安装了cloud foundry插件,文档中有详细说明。此外,正如文档中详细介绍的那样,我在~/.grails/settings.groovy文件中输入了我的用户名和密码。另外,我还退出了终端并重新启动了终端(然后重启了机器)。然而,当我输入grails cf-info时,我得到以下错误:
|java.lang.NullPointerException at org.cloudfoundry.client.lib.CloudFoundryClient.login(CloudFoundryClient.java:211) at ClientWrapper.methodMissing(_CfCommon_groovy:536) at _CfCommon_groovy$_run_closure5.doCall(_CfCommon_groovy:110) at org.codehaus.gant.GantMetaClass.invokeMethod(GantMetaClass.java:133) at CfInfo$_run_closure1.doCall(CfInfo:33)
仅供参考:我的BuildConfig.groovy中有以下内容:
`compile ':cloud-foundry:1.2.3'
compile ':webxml:1.4.1'`我的grails版本是2.3.1
非常感谢你的帮助!
发布于 2013-11-28 03:54:33
Cloud Foundry Grails插件尚未针对CF v2进行更新。您应该使用"cf“CLI来推送Grails应用程序。
参见http://docs.cloudfoundry.com/docs/using/managing-apps/cf/index.html和http://docs.cloudfoundry.com/docs/using/deploying-apps/jvm/index.html。
https://stackoverflow.com/questions/20014221
复制相似问题