grails cf-info给出空指针异常

时间:2013-11-16 03:19:36

标签: grails cloudfoundry

我刚刚使用编译指令安装了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)

作为一个FYI:我在BuildConfig.groovy中有以下内容:

`compile ':cloud-foundry:1.2.3'  
 compile ':webxml:1.4.1'`

我的grails版本是2.3.1

感谢一百万人的帮助!

1 个答案:

答案 0 :(得分:0)

Cloud Foundry Grails插件尚未针对CF v2进行更新。您应该使用“cf”CLI来推送Grails应用程序。

请参阅http://docs.cloudfoundry.com/docs/using/managing-apps/cf/index.htmlhttp://docs.cloudfoundry.com/docs/using/deploying-apps/jvm/index.html

相关问题