Apr 10th, 2011, 07:46 PM
Grails command-line upload fails
I've been using the Grails command-line tools to upload my app, and since the switch to classic.cloudfoundry.com I am unable to do so. "grails cloud-foundry-upload" fails with the message "Error uploading application to Cloud Foundry: Cannot get property 'id' on null object".
I've been searching for a config param to change the URL used by the plugin, but I'm not seeing anything in the documentation that suggests this can be done. Anyone have any ideas about how to get around this (aside from manually uploading)?
Apr 18th, 2011, 01:41 PM
We've tracked down a necessary change to the Grails plugin. We will have to release an updated plugin to resolve this issue. I will let you know when that becomes available. Sorry for the inconvenience.
Apr 18th, 2011, 01:51 PM
Thanks. As a quick workaround I just mapped www.cloudfoundry.com to the old IP address in /etc/hosts. Seems to be working fine that way.
Apr 22nd, 2011, 03:56 PM
Do you mind sharing the line you added to your host file or the old ip address? I will need a work around until the plugin is updated.
Thanks in advance.
Apr 26th, 2011, 11:27 AM
Host file entry
Sure. I'm on a Mac so I added the following to /etc/hosts.
I got the IP from an nslookup of "classic.cloudfoundry.com". On windows the hosts file is buried deep in WINDOWS\system32\drivers\etc. Also, be sure to remove this line after using the plug-in otherwise you won't be able to get to the new cloud foundry environment (if you're using it).