Quantcast

Spring Security registration exception

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

Spring Security registration exception

Bill Stephens
All,

I'm trying to create a basic application that has been secured using Spring Security (Core, ACL and UI plugins) with registration enabled, but I'm hitting issues using Grails 2.0.0M2. I can successfully get all of the app to start and the controller links for login, logout, ACL, register all appear. 

When I attempt to register an account I complete the registration form and click the "Create your account" link I get this exception:

| Error 2011-09-09 08:19:47,377 ["http-bio-8080"-exec-5] ERROR errors.GrailsExceptionResolver  - IllegalStateException occurred when processing request: [GET] /SecureApp/register/index

Read and write parameter types are not the same. Stacktrace follows:

   Line | Method

->> 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

|   908 | run     in     ''

^   637 | run . . in java.lang.Thread


Caused by IllegalStateException: Read and write parameter types are not the same

->> 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

|   908 | run     in     ''

^   637 | run . . in java.lang.Thread


I've followed these steps to get to this point:
  1. Create Grails Application named "SecureApp"
    1. grails create-app SecureApp
  2. cd SecureApp
  3. Install Spring Security Core and ACL
    1. grails install-plugin spring-security-acl
  4. Create Spring Security User and Role domain classes, controllers
    1. grails s2-quickstart org.example AppUser AppRole
  5. Edit AppUser class to add 'email' attribute as required by Spring Security for registration
  6. Install Spring Security UI
    1. grails install-plugin spring-security-ui
  7. Enable registration and forgotten password
    1. grails s2ui-override auth
  8. Configure Mail plugin
  9. Test running the application
    1. grails run-app
Thanks,
Bill S. 
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Spring Security registration exception

Michael Kimsal-2
FWIW, I get the exact same issue.  I suspect adding this as a ticket on the JIRA system will help get a bit more traction.  There was another ticket there with similar error text which was marked as resolved, but this looks sufficiently different (and certainly this issue isn't solved!).


On Sep 9, 2011, at 8:26 AM, Bill Stephens wrote:

All,

I'm trying to create a basic application that has been secured using Spring Security (Core, ACL and UI plugins) with registration enabled, but I'm hitting issues using Grails 2.0.0M2. I can successfully get all of the app to start and the controller links for login, logout, ACL, register all appear. 

When I attempt to register an account I complete the registration form and click the "Create your account" link I get this exception:


| Error 2011-09-09 08:19:47,377 ["http-bio-8080"-exec-5] ERROR errors.GrailsExceptionResolver  - IllegalStateException occurred when processing request: [GET] /SecureApp/register/index

Read and write parameter types are not the same. Stacktrace follows:

   Line | Method

->> 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

|   908 | run     in     ''

^   637 | run . . in java.lang.Thread


Caused by IllegalStateException: Read and write parameter types are not the same

->> 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

|   908 | run     in     ''

^   637 | run . . in java.lang.Thread



I've followed these steps to get to this point:
  1. Create Grails Application named "SecureApp"
    1. grails create-app SecureApp
  2. cd SecureApp
  3. Install Spring Security Core and ACL
    1. grails install-plugin spring-security-acl
  4. Create Spring Security User and Role domain classes, controllers
    1. grails s2-quickstart org.example AppUser AppRole
  5. Edit AppUser class to add 'email' attribute as required by Spring Security for registration
  6. Install Spring Security UI
    1. grails install-plugin spring-security-ui
  7. Enable registration and forgotten password
    1. grails s2ui-override auth
  8. Configure Mail plugin
  9. Test running the application
    1. grails run-app
Thanks,
Bill S. 

==========================
for groovy and grails developers
919-827-4724

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

Re: Spring Security registration exception

Bill Stephens
JIRA entered:


Bill

On Sat, Sep 10, 2011 at 2:01 PM, Michael Kimsal <[hidden email]> wrote:
FWIW, I get the exact same issue.  I suspect adding this as a ticket on the JIRA system will help get a bit more traction.  There was another ticket there with similar error text which was marked as resolved, but this looks sufficiently different (and certainly this issue isn't solved!).


On Sep 9, 2011, at 8:26 AM, Bill Stephens wrote:

All,

I'm trying to create a basic application that has been secured using Spring Security (Core, ACL and UI plugins) with registration enabled, but I'm hitting issues using Grails 2.0.0M2. I can successfully get all of the app to start and the controller links for login, logout, ACL, register all appear. 

When I attempt to register an account I complete the registration form and click the "Create your account" link I get this exception:


| Error 2011-09-09 08:19:47,377 ["http-bio-8080"-exec-5] ERROR errors.GrailsExceptionResolver  - IllegalStateException occurred when processing request: [GET] /SecureApp/register/index

Read and write parameter types are not the same. Stacktrace follows:

   Line | Method

->> 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

|   908 | run     in     ''

^   637 | run . . in java.lang.Thread


Caused by IllegalStateException: Read and write parameter types are not the same

->> 886 | runTask in java.util.concurrent.ThreadPoolExecutor$Worker

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 

|   908 | run     in     ''

^   637 | run . . in java.lang.Thread



I've followed these steps to get to this point:
  1. Create Grails Application named "SecureApp"
    1. grails create-app SecureApp
  2. cd SecureApp
  3. Install Spring Security Core and ACL
    1. grails install-plugin spring-security-acl
  4. Create Spring Security User and Role domain classes, controllers
    1. grails s2-quickstart org.example AppUser AppRole
  5. Edit AppUser class to add 'email' attribute as required by Spring Security for registration
  6. Install Spring Security UI
    1. grails install-plugin spring-security-ui
  7. Enable registration and forgotten password
    1. grails s2ui-override auth
  8. Configure Mail plugin
  9. Test running the application
    1. grails run-app
Thanks,
Bill S. 

==========================
for groovy and grails developers
<a href="tel:919-827-4724" value="+19198274724" target="_blank">919-827-4724


Loading...