Not sure if this is grails-remote-control's fault, but with a catch-all URL mapping like so:
class UrlMappings {
static mappings = {
"/**"(controller:'boss')
}
}
I get the following exception:
| groovyx.remote.RemoteControlException: Error sending command chain to 'http://localhost:8080/wsmocker/grails-remote-control'
at groovyx.remote.transport.http.HttpTransport.send(HttpTransport.groovy:65)
at groovyx.remote.client.RemoteControl.sendCommandChain(RemoteControl.groovy:114)
at groovyx.remote.client.RemoteControl.exec(RemoteControl.groovy:73)
at groovyx.remote.client.RemoteControl.exec(RemoteControl.groovy:67)
at wsmocker.RemoteConfigLoadSpec.setup can be loaded via a remote closure(RemoteConfigLoadSpec.groovy:25)
Caused by: java.io.IOException: Server returned HTTP response code: 500 for URL: http://localhost:8080/wsmocker/grails-remote-control
at groovyx.remote.transport.http.HttpTransport.send_closure1(HttpTransport.groovy:62)
at groovyx.remote.transport.http.HttpTransport.send(HttpTransport.groovy:53)
... 4 more
The fix is to add the following line to URL Mappings:
Again, I'm not sure if this can be fixed in grails-remote-control, but I think it's worth mentioning as the excludes options is not mentioned in the grails documentation, and it could be tricky to figure this out.
Not sure if this is grails-remote-control's fault, but with a catch-all URL mapping like so:
I get the following exception:
The fix is to add the following line to URL Mappings:
so it looks like this:
Again, I'm not sure if this can be fixed in grails-remote-control, but I think it's worth mentioning as the
excludes
options is not mentioned in the grails documentation, and it could be tricky to figure this out.