Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

How can I integrate this plugin to my existing Grails project? #10

Closed
aramlog opened this Issue · 12 comments

5 participants

@aramlog

No description provided.

@aramlog

Please, help to install this plugin properly. I read documentation, and have done everything step by step, but its trew NullPointerException when I am requesting http://localhost:8080/cinecliq-service/oauth/token?grant_type=client_credentials&client_id=clientId&client_secret=clientSecret.

| Error 2013-02-22 23:52:29,458 [http-bio-8080-exec-3] ERROR [/cinecliq-service].[grails] - Servlet.service() for servlet grails threw exception
Message: null
Line | Method
->> 842 | lookupController in grails.plugin.cache.web.filter.PageFragmentCachingFilter


| 176 | doFilter in ''
| 63 | doFilter . . . . in grails.plugin.cache.web.filter.AbstractFilter
| 1110 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 603 | run . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^ 722 | run in java.lang.Thread
| Error 2013-02-22 23:52:29,464 [http-bio-8080-exec-3] ERROR [/cinecliq-service].[default] - Servlet.service() for servlet [default] in context with path [/cinecliq-service] threw exception [java.lang.NullPointerException] with root cause
Message: null
Line | Method
->> 842 | lookupController in grails.plugin.cache.web.filter.PageFragmentCachingFilter


| 176 | doFilter in ''
| 63 | doFilter . . . . in grails.plugin.cache.web.filter.AbstractFilter
| 1110 | runWorker in java.util.concurrent.ThreadPoolExecutor
| 603 | run . . . . . . in java.util.concurrent.ThreadPoolExecutor$Worker
^ 722 | run in java.lang.Thread

@yhrchan

i am encountering the same problem...were you able to find a solution??

@bluesliverx
Owner

There is a little hope - this plugin may get some TLC in the next month or two, but don't hold me to it :)

@FreakyTeddy

have you successfully installed the plugin and have it working? i'm facing the same issue.
Thanks

@bluesliverx
Owner

We looked into it a couple of months ago and I realized I didn't update anything here... basically the current spring security version used for spring-security-core plugin is incompatible with the version used by the released oauth2 versions from spring. This pretty much means we need to wait on spring security core to update their version. I've pinged Burt Beckwith (maintainer of spring-security-core) about it before and he said he hoped to get to it soon, but that was a couple of months ago and I haven't heard anything since. It may be worthwhile to ping the grails mailing list and ask when the spring security version will be updated.

@FreakyTeddy

thanks for your answer :)
i'll try mailing the grails plugins people to see if i can help..
thanks again

@FreakyTeddy

i've downloaded the plugin, and i had a "jsonserializer" exception

these dependecies seem to have fixed the issue.. however, i'm still unable to install the plugin locally (i'm a bit of a grails noob).

dependencies {
...
compile 'org.codehaus.jackson:jackson-core-asl:1.9.3'
compile 'org.codehaus.jackson:jackson-mapper-asl:1.9.3'
}

hope this helps!

@bluesliverx
Owner

Thanks for the info, and thanks for pinging Burt - I haven't heard anything back from him yet really on this besides "it will be awhile".

I will need this for a personal project here in another few months, so if nothing else I'll start diving in then. For now I'm resolving this issue as I'm planning on fixing things up when the new version is released and the docs will be clearer then.

@gcalero

Hi all, anybody knows if the aramlog's issue is solved?
I mean this one:
Message: null
Line | Method
->> 842 | lookupController in grails.plugin.cache.web.filter.PageFragmentCachingFilter

Thanks

@bluesliverx
Owner

@gcalero, what version of the plugin are you using? A new version has been released since then that is compatible with spring security core 2.0 rc2.

@gcalero

These are the versions:
compile ':spring-security-core:2.0-RC2'
compile ':spring-security-oauth2-provider:1.0.5.1' (latest)

The problem was solved upgrading cache plugin from 1.0.1 to 1.1.1.

Thanks

@bluesliverx
Owner

Very good to hear! Not sure what the cache plugin was doing, but great to have a workaround for it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.