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

Updates Spring Social Twitter dependency #27

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rvargas
Copy link

@rvargas rvargas commented Sep 29, 2016

I was trying to use this plugin with Grails 2.5.5 but I was getting this error:

| Error 2016-09-29 05:25:03,460 [http-bio-8080-exec-6] ERROR [/betting-pool].[default]  - Servlet.service() for servlet [default] in context with path [/betting-pool] threw exception [Filter execution threw an exception] with root cause
Message: org.springframework.http.converter.json.MappingJacksonHttpMessageConverter
    Line | Method
->>  366 | run                   in java.net.URLClassLoader$1
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    355 | run                   in     ''
|    354 | findClass . . . . . . in java.net.URLClassLoader
|    425 | loadClass             in java.lang.ClassLoader
|     56 | attemptAuthentication in com.the6hours.grails.springsecurity.twitter.TwitterAuthFilter
|     46 | doFilter              in com.the6hours.grails.springsecurity.facebook.FacebookAuthRedirectFilter
|     62 | doFilter . . . . . .  in grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter
|     59 | doFilter              in grails.plugin.springsecurity.web.SecurityRequestHolderFilter
|   1145 | runWorker . . . . . . in java.util.concurrent.ThreadPoolExecutor
|    615 | run                   in java.util.concurrent.ThreadPoolExecutor$Worker
^    745 | run . . . . . . . . . in java.lang.Thread

This happens because MappingJacksonHttpMessageConverter was changed in Spring 4.1.X to MappingJackson2HttpMessageConverter so is necesary to update Spring Social Twitter.

I was trying to use this plugin with Grails 2.5.5 but I was getting this error:

```
| Error 2016-09-29 05:25:03,460 [http-bio-8080-exec-6] ERROR [/betting-pool].[default]  - Servlet.service() for servlet [default] in context with path [/betting-pool] threw exception [Filter execution threw an exception] with root cause
Message: org.springframework.http.converter.json.MappingJacksonHttpMessageConverter
    Line | Method
->>  366 | run                   in java.net.URLClassLoader$1
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    355 | run                   in     ''
|    354 | findClass . . . . . . in java.net.URLClassLoader
|    425 | loadClass             in java.lang.ClassLoader
|     56 | attemptAuthentication in com.the6hours.grails.springsecurity.twitter.TwitterAuthFilter
|     46 | doFilter              in com.the6hours.grails.springsecurity.facebook.FacebookAuthRedirectFilter
|     62 | doFilter . . . . . .  in grails.plugin.springsecurity.web.authentication.logout.MutableLogoutFilter
|     59 | doFilter              in grails.plugin.springsecurity.web.SecurityRequestHolderFilter
|   1145 | runWorker . . . . . . in java.util.concurrent.ThreadPoolExecutor
|    615 | run                   in java.util.concurrent.ThreadPoolExecutor$Worker
^    745 | run . . . . . . . . . in java.lang.Thread
```

This happens because `MappingJacksonHttpMessageConverter` was changed in Spring 4.1.X to `MappingJackson2HttpMessageConverter` so is necesary to update Spring Social Twitter.
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

Successfully merging this pull request may close these issues.

1 participant