Foros de discusión
Get error cause programatically
robin thakur, modificado hace 7 años.
Get error cause programatically
Regular Member Mensajes: 146 Fecha de incorporación: 9/01/14 Mensajes recientes
Hi,
How do we get which column creates error while updating the user in our code. I received a error stack trace in Exception that
Caused by: java.sql.BatchUpdateException: Duplicate entry '10154-rob123screenname' for key 'IX_C5806019'
How do we get a particular value that this is the cause for failure so that i can show same to the customer.
How do we get which column creates error while updating the user in our code. I received a error stack trace in Exception that
Caused by: java.sql.BatchUpdateException: Duplicate entry '10154-rob123screenname' for key 'IX_C5806019'
How do we get a particular value that this is the cause for failure so that i can show same to the customer.
Kailash Yadav, modificado hace 7 años.
RE: Get error cause programatically
Regular Member Mensajes: 211 Fecha de incorporación: 18/10/11 Mensajes recientes
How are you creating users? useing out-of-box signup feature or from your custom code? The error message show that screenname is duplicate. If you are using liferay API, it validate screen name.
robin thakur, modificado hace 7 años.
RE: Get error cause programatically
Regular Member Mensajes: 146 Fecha de incorporación: 9/01/14 Mensajes recientes
Hi Kailash,
I am using UserLocalServiceUtil.updateUser(user); to update user and if updation fails I am not able to find the reason.
I am using UserLocalServiceUtil.updateUser(user); to update user and if updation fails I am not able to find the reason.