The UserService that gets injected into DuplicateEmailValidator is null and the call userService.findByEmail throws a NPE when trying to create a new user account. This seems to be related to https://github.com/javaserverfaces/mojarra/issues/4245
Wildfly 12
Oracle JDK 9
Mojarra 2.3.3.SP1
Workaround:
@FacesValidator(value="duplicateEmailValidator", managed = true)
The
UserServicethat gets injected intoDuplicateEmailValidatoris null and the calluserService.findByEmailthrows a NPE when trying to create a new user account. This seems to be related to https://github.com/javaserverfaces/mojarra/issues/4245Wildfly 12
Oracle JDK 9
Mojarra 2.3.3.SP1
Workaround:
@FacesValidator(value="duplicateEmailValidator", managed = true)