Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Samita Bhujbal
User creation fails sometimes
February 5, 2013 3:37 AM
Answer

Samita Bhujbal

Rank: Regular Member

Posts: 120

Join Date: July 5, 2011

Recent Posts

I am using liferay 6.0.6. I am developing web portal for which user registration service present.
I am programatically creating user using UserLocalServiceUtil.addUser() method.
Many times user gets created successfully. But sometimes user is nt creating. I am unable to get the exact reason behind this.
What are the possibilities behind failure of user creation?
Juhi Kumari
RE: User creation fails sometimes
February 5, 2013 3:45 AM
Answer

Juhi Kumari

Rank: Expert

Posts: 347

Join Date: December 12, 2011

Recent Posts

Hi,
Som many possibilities are ther like duplicate email address,duplicate screen name, etc.
Check your server log to know the exact reason.

Regards
Juhi
Hitoshi Ozawa
RE: User creation fails sometimes
February 5, 2013 3:59 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

It's definitely a bug in your program. It should be doing error checking and writing errors to log files so you'll know the reason for the error.
Kowbathullah Gnaniyar
RE: User creation fails sometimes
February 5, 2013 4:33 AM
Answer

Kowbathullah Gnaniyar

Rank: Liferay Master

Posts: 608

Join Date: December 19, 2007

Recent Posts

HI,

This is not a clear question to give the better solution.

would be great if you share the log file or let us know about the exception what you are getting while creating the user?

- Gnaniyar Zubair
Samita Bhujbal
RE: User creation fails sometimes
February 22, 2013 1:43 AM
Answer

Samita Bhujbal

Rank: Regular Member

Posts: 120

Join Date: July 5, 2011

Recent Posts

It shows message "Portal user creation failed null" in server log. Nothing else it shows.........So I m not getting exact root cause of this issue.
Siby Mathew
RE: User creation fails sometimes
February 22, 2013 1:53 AM
Answer

Siby Mathew

Rank: Expert

Posts: 267

Join Date: March 4, 2011

Recent Posts

Hi Samita,
You can debug to find where the failure has occurred.