ldaley / grails-remote-control

Facilitates executing commands (closures) against remote or local Grails applications
Apache License 2.0
23 stars 16 forks source link

command chained exception #4

Closed lalitagarw closed 11 years ago

lalitagarw commented 11 years ago

Hi,

I am using this plugin and trying to access message bundles.

Below is the stacktrace I get. Is there something am I missing? Also, we are using spring-security-LDAP

groovyx.remote.RemoteControlException: Error sending command chain to 'http://localhost:8080/******/grails-remote-control' [test] at groovyx.remote.transport.http.HttpTransport.send(HttpTransport.groovy:65) [test] at groovyx.remote.client.RemoteControl.sendCommandChain(RemoteControl.groovy:114) [test] at groovyx.remote.client.RemoteControl.exec(RemoteControl.groovy:73) [test] at groovyx.remote.client.RemoteControl.exec(RemoteControl.groovy:67) [test] at cgw.login.AbstractCGWGebSpec.msg(AbstractCGWGebSpec.groovy:35) [test] at cgw.login.AbstractCGWGebSpec.Login to cgw application(AbstractCGWGebSpec.groovy:25) [test] Caused by: java.io.StreamCorruptedException: invalid stream header: 3C68746D [test] at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:782) [test] at java.io.ObjectInputStream.(ObjectInputStream.java:279) [test] at groovyx.remote.util.ClassLoaderConfigurableObjectInputStream.(ClassLoaderConfigurableObjectInputStream.groovy:26) [test] at groovyx.remote.Result.readFrom(Result.groovy:150) [test] at groovyx.remote.transport.http.HttpTransport.send_closure1(HttpTransport.groovy:62) [test] at groovyx.remote.transport.http.HttpTransport.send(HttpTransport.groovy:53)

Regards Lalit

ldaley commented 11 years ago

It's impossible to say without more information. It may be impossible to diagnose without a sample that reproduces the problem.

My guess is that spring security is getting in front of the remote control access point and returning something surprising. If you can configure spring security to leave «app root»/grails-remote-control alone.

johnlim commented 10 years ago

Hi,

Ive been using the remote control plugin successfully until i installed spring security and started receiving the errors described above. May I know how to configure spring security to leave «app root»/grails-remote-control alone? How do I get the remote plugin to play nice with spring security? Thanks.

ldaley commented 10 years ago

Hi @johnlim ,

You need to configure spring security to not try and authenticate requests to /grails-remote-control

johnlim commented 10 years ago

@alkemist: Thanks!