Fórumok

Cannot add user - NPE in addUserWithWorkflow

Jan Tošovský, módosítva 12 év-val korábban

Cannot add user - NPE in addUserWithWorkflow

Liferay Master Bejegyzések: 566 Csatlakozás dátuma: 2010.07.22. Legújabb bejegyzések
Hello Everyone,

I've encountered this problem now and can't continue...
This worked fine few days ago. Build from trunk doesn't help.
The same method is used for LDAP import. I am unable import any user from LDAP any more.
What could be a reason?

Regards,
Jan
Jan Tošovský, módosítva 12 év-val korábban

RE: Cannot add user - NPE in addUserWithWorkflow

Liferay Master Bejegyzések: 566 Csatlakozás dátuma: 2010.07.22. Legújabb bejegyzések
I've found it is somehow connected to LDAP. When LDAP is disabled at all, I can add a new user without problems. So probably some internal system settings has changed in meantime. I'll contact our admins. It probably has nothing to do with Liferay. Sorry for this noise.
Jamie Grant, módosítva 11 év-val korábban

RE: Cannot add user - NPE in addUserWithWorkflow

New Member Bejegyzések: 7 Csatlakozás dátuma: 2012.10.25. Legújabb bejegyzések
I also had this issue, but it was because the email address I submitted with the user was null.

The addUserWithWorkflow method does a trim() on the email address.