使用 vmc,我将我的 java 应用程序推送到 cloudfoundry 中,并创建了一个绑定到该应用程序的 rabbitmq 服务,我已经测试了两三个这样的应用程序,并且一切都很好,但是从几天开始,我在将 rabbitmq 服务绑定到这两个应用程序时遇到了问题一个现有的应用程序也不是一个新的应用程序,我收到了这条消息:
user@user-System-I7:~$ vmc bind-service rabbitmq-broker myApp
NoMethodError: undefined method `service_by_name' for #<CFoundry::V1::Client:0x7f417344f4b0>
For more information, see ~/.vmc/crash
当我输入: user@user-System-I7:~$more ~/.vmc/crash 我得到
Time of crash:
Wed Jan 02 15:06:31 +0100 2013
NoMethodError: undefined method `service_by_name' for #<CFoundry::V1::Client:0x7f417344f4b0>
vmc-0.4.7/lib/vmc/cli.rb:406:in `send'
vmc-0.4.7/lib/vmc/cli.rb:406:in `by_name'
mothership-0.3.5/lib/mothership/inputs.rb:150:in `instance_exec'
mothership-0.3.5/lib/mothership/inputs.rb:150:in `convert_given'
mothership-0.3.5/lib/mothership/inputs.rb:113:in `get'
mothership-0.3.5/lib/mothership/inputs.rb:69:in `[]'
vmc-0.4.7/lib/vmc/cli/service/bind.rb:15:in `bind_service'
mothership-0.3.5/lib/mothership/base.rb:61:in `send'
mothership-0.3.5/lib/mothership/base.rb:61:in `run'
mothership-0.3.5/lib/mothership/command.rb:68:in `invoke'
mothership-0.3.5/lib/mothership/command.rb:82:in `instance_exec'
mothership-0.3.5/lib/mothership/command.rb:82:in `invoke'
mothership-0.3.5/lib/mothership/base.rb:50:in `execute'
vmc-0.4.7/lib/vmc/cli.rb:106:in `execute'
mothership-0.3.5/lib/mothership.rb:45:in `start'
vmc-0.4.7/bin/vmc:11
1.8/bin/vmc:19:in `load'
1.8/bin/vmc:19
请帮忙 !!