Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command chained exception #4

Closed
lalitagarw opened this issue Jan 24, 2013 · 4 comments
Closed

command chained exception #4

lalitagarw opened this issue Jan 24, 2013 · 4 comments

Comments

@lalitagarw
Copy link

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
Copy link
Owner

ldaley commented Jan 25, 2013

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.

@ldaley ldaley closed this as completed Oct 24, 2013
@johnlim
Copy link

johnlim commented Apr 17, 2014

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
Copy link
Owner

ldaley commented Apr 17, 2014

Hi @johnlim ,

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

@johnlim
Copy link

johnlim commented Apr 21, 2014

@alkemist: Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants