Cracked it!
I had left some not-null fields as null, and Acegi/Hibernate had confusingly
reported this error as a duplicate instead. Underlying cause of this was
that I had changed the fields to nullable in my POJO, but hbmto22l.auto
didn't update this change into the schema.
Mike.
DNewfield wr
mikebgx wrote:
There are only 2 rows in the app_user table, neither of which have a username
or email of test6
I know in the past for some appfuse based projects the 2 rows pre-loaded
into the DB from sample-data.xml caused the first two inserts to fail
(because those wanted the same PKs tha
There are only 2 rows in the app_user table, neither of which have a username
or email of test6
I haven't managed to get the debugger working, was hoping to avoid it :-(
Mike.
mraible wrote:
>
> If you're certain the username doesn't already exist - maybe it's the
> e-mail address? That has t
If you're certain the username doesn't already exist - maybe it's the
e-mail address? That has to be unique as well and can trigger a
DataIntegrityViolationException. I'd suggest firing up your debugger
and walking through the code to see what's happening along the way.
Matt
On 8/16/07, mikebgx <
My User definitely doesn't exist, I checked with MySQL Query Browser.
The exception occurs in UserDaoHibernate.saveOrUpdate().
Below is my output after turning up Hibernate logging to DEBUG, I can't see
anything wrong, can you?
Mike
UserDaoHibernate.saveUser(52) | About to call saveOrUpdate()...
You might turn up Hibernate logging (in log4j.xml) - that way you can
see if the error is happening at the database level. I suspect it is
and your user really does already exist.
Matt
On 8/16/07, mikebgx <[EMAIL PROTECTED]> wrote:
>
> I'm having problems creating a User from within my app. It se
I'm having problems creating a User from within my app. It seems to think the
User already exists.
Any ideas please?
Mike
Here's my output:
(I'm logged in as test hence the msg: Verifying that 'test' can modify
'test6')
ApplyForm.cmApprove(133) | User test6 not found, OK, creating cons...
Appl