Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7020215
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:17:22+00:00 2026-05-27T23:17:22+00:00

Upon registration to my Grails app, the user receives an email with a confirmation

  • 0

Upon registration to my Grails app, the user receives an email with a confirmation link. Clicking that link, takes her to the according ‘enable’ action.

This worked flawlessly. However, there now seems to be an error with a very specific token, which fails the user.save() of this snippet:

assert !user.isDirty()  // assertion is ok
user.enabled = true
user.confirmationToken = null
assert user.isDirty()   // assertion is ok

if (user.save()) {  // FAILS WITH ERROR BELOW
    // ...
}

Stacktrace:

[ 16.09.2011 11:57:47.591] [http-bio-localhost/127.0.0.1-8080-exec-3] 
ERROR 
org.codehaus.groovy.grails.web.errors.GrailsExceptionResolver 
org.apache.commons.logging.impl.SLF4JLog 

 Exception occurred when processing request: [GET] /user/enable/bc73701c-d280-4de0-8951-7af9f2a3d636
Stacktrace follows:
org.postgresql.util.PSQLException: No value specified for parameter 1.
        at org.postgresql.core.v3.SimpleParameterList.checkAllParametersSet(SimpleParameterList.java:178)
        at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:246)
        at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:500)
        at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:388)
        at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:273)
        at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
        at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96)
        at myproj.UserService.enableUser(UserService.groovy:234)
        at myproj.UserController$_closure8.doCall(UserController.groovy:244)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
        at java.lang.Thread.run(Thread.java:619)

Note that I can create additional users in the same running instance – but the error (so far) only occurs with that code.

Any ideas on how to resolve that?

Versions in use:

  • PostgreSQL: 9.1beta3
  • JDBC-driver: postgresql:9.1-901.jdbc4
  • Grails: 2.0.0.BUILD-SNAPSHOT (Build #1378)

(Due to being on development builds for those parts, it might be a bug, but I am unsure about that.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:17:23+00:00Added an answer on May 27, 2026 at 11:17 pm

    As outlined in the mentioned JIRA issue the problem stemmed from a unique-constraint which was set for a mapped class.

    Moving the unique-contraint into the Mapping DC resolved the issue.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My app uploads an image and user/email/pass upon registration. iOS to php to mySQL.
Is there any module that can ask upon user registration so that the user
Upon clicking on a link, I am bringing in some images from a JSON
I'm trying to create a user registration form and create collection upon registration. I
The fields I'm checking for upon registration: if($username&&$email&&$password&&$repeatpassword) { } I have about 10
Upon saving my user at registration I receive the error message below. Could someone
Upon user login I check their roles. If they have no roles I want
Upon a certain user action, I wish to add to my UIViewController another UIView
Upon reviewing a bunch of MVC style web applications, I'm noticing that it's common
I have a user registration form. I am doing server side validation on the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.