Quantcast

NPE spring-security requestmap/requestmapSearch

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

NPE spring-security requestmap/requestmapSearch

geezenslaw
Hello spring security users, I have installed the spring-security-core
and ui plugins.

The User and Roles is working but not the RequestMap class or RequestMap
controller.

Navigating the link on the my Grails app homepage and clicking the
RequestMap controller link:

grails.plugins.springsecurity.ui.RequestmapController

returns the following error condition.

Thanks in advance and pls advise, David.

******************************************************************
Error 500: Internal Server Error

URI
    /demo_s2quickstart/requestmap/requestmapSearch
Class
    java.lang.NullPointerException
Message
    Cannot get property 'clazz' on null object

Around line 81 of
grails-app/controllers/grails/plugins/springsecurity/ui/AbstractS2UiController.groovy

78: }79:80: protected Class<?> lookupRequestmapClass() {81:
grailsApplication.getDomainClass(lookupRequestmapClassName()).clazz82: }83:}

Around line 56 of
grails-app/controllers/grails/plugins/springsecurity/ui/RequestmapController.groovy

53: orderBy = " ORDER BY r.$params.sort ${params.order ?:
'ASC'}"54: }55:56: def results =
lookupRequestmapClass().executeQuery(57: "SELECT DISTINCT r $hql
$orderBy",58: queryParams, [max: max, offset: offset])59: def model
= [results: results, totalCount: totalCount, searched: true]

Trace

   Line | Method
->>  81 | lookupRequestmapClass in AbstractS2UiController.groovy
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|    56 | doCall                in RequestmapController.groovy
|   886 | runTask . . . . . . . in
java.util.concurrent.ThreadPoolExecutor$Worker
|   908 | run                   in     ''
^   662 | run . . . . . . . . . in java.lang.Thread

******************************************************************


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: NPE spring-security requestmap/requestmapSearch

burtbeckwith
Is the grails.plugins.springsecurity.requestMap.className property correct in Config.groovy?

Burt

On Thursday, May 03, 2012 08:33:02 PM David Brown wrote:

> Hello spring security users, I have installed the spring-security-core
> and ui plugins.
>
> The User and Roles is working but not the RequestMap class or RequestMap
> controller.
>
> Navigating the link on the my Grails app homepage and clicking the
> RequestMap controller link:
>
> grails.plugins.springsecurity.ui.RequestmapController
>
> returns the following error condition.
>
> Thanks in advance and pls advise, David.
>
> ******************************************************************
> Error 500: Internal Server Error
>
> URI
>     /demo_s2quickstart/requestmap/requestmapSearch
> Class
>     java.lang.NullPointerException
> Message
>     Cannot get property 'clazz' on null object
>
> Around line 81 of
> grails-app/controllers/grails/plugins/springsecurity/ui/AbstractS2UiController.groovy
>
> 78: }79:80: protected Class<?> lookupRequestmapClass() {81:
> grailsApplication.getDomainClass(lookupRequestmapClassName()).clazz82: }83:}
>
> Around line 56 of
> grails-app/controllers/grails/plugins/springsecurity/ui/RequestmapController.groovy
>
> 53: orderBy = " ORDER BY r.$params.sort ${params.order ?:
> 'ASC'}"54: }55:56: def results =
> lookupRequestmapClass().executeQuery(57: "SELECT DISTINCT r $hql
> $orderBy",58: queryParams, [max: max, offset: offset])59: def model
> = [results: results, totalCount: totalCount, searched: true]
>
> Trace
>
>    Line | Method
> ->>  81 | lookupRequestmapClass in AbstractS2UiController.groovy
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> |    56 | doCall                in RequestmapController.groovy
> |   886 | runTask . . . . . . . in
> java.util.concurrent.ThreadPoolExecutor$Worker
> |   908 | run                   in     ''
> ^   662 | run . . . . . . . . . in java.lang.Thread
>
> ******************************************************************


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Loading...