pgherveou / spring-social-demo

grails demo for spring-social-plugin
http://spring-social-demo.cloudfoundry.com/showcase.gsp
7 stars 1 forks source link

Can you please help! #1

Open ghost opened 12 years ago

ghost commented 12 years ago

I have set up the demo but when i run it and try connect on twitter i get 406 Not Acceptable. Stacktrace follows: org.springframework.web.client.HttpClientErrorException: 406 Not Acceptable. What am i missing

My configs grails.plugins.springsocial.facebook = [appId: "163889300335410", appSecret: "0e1037e0edbe4d378c32e2e1a0be77d1"] grails.plugins.springsocial.twitter = [consumerKey: "wPi9y4PIZ8KQmEXN9w3ug", consumerSecret: "d63qhe7z6JW96XukV2QAE1pSne6km4xp5PO2Tg7yVPA"]

ghost commented 12 years ago

Now i get this

errors.GrailsExceptionResolver NoSuchMethodError occurred when processing request: [GET] /spring-social-demo/connect/twitter - parameters: oauth_token: 6nbM47Bx7TncQHYWBNdgETcAZBcOe7G2reML6gvTEco oauth_verifier: tQvY9qC9LdJ8IYocpU4UHUyHsqUS56E9CL18JyIEk org.springframework.web.client.RestTemplate.setInterceptors([Lorg/springframework/http/client/ClientHttpRequestInterceptor;)V. Stacktrace follows: org.codehaus.groovy.grails.web.servlet.mvc.exceptions.ControllerExecutionException: Executing action [oauthCallback] of controller [social.ConnectController] caused exception: Runtime error executing action at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) at java.lang.Thread.run(Thread.java:679) Caused by: org.codehaus.groovy.grails.web.servlet.mvc.exceptions.ControllerExecutionException: Runtime error executing action ... 3 more Caused by: java.lang.reflect.InvocationTargetException ... 3 more Caused by: java.lang.NoSuchMethodError: org.springframework.web.client.RestTemplate.setInterceptors([Lorg/springframework/http/client/ClientHttpRequestInterceptor;)V at social.ConnectSupport.completeConnection(ConnectSupport.groovy:75) at social.ConnectController$_closure3.doCall(ConnectController.groovy:63) ... 3 more

pgherveou commented 12 years ago

Sorry I have stopped working on this project a long time ago, I am sure there are some more up to date plugins on the grails website. The facebook and twitter keys provided with the project are not valid anymore so you can try to replace them with your own, but apart from that I can't tell you much more