【问题标题】:grails cf-info gives null pointer exceptiongrails cf-info 给出空指针异常
【发布时间】:2013-11-28 03:54:33
【问题描述】:

我刚刚使用文档中详细说明的编译指令安装了 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

感谢一百万的帮助!

【问题讨论】:

    标签: grails cloud-foundry


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-09-06
      • 2014-07-19
      • 2017-01-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多