While using the custom user integration using JDBCUserProvider. Below is the code which throws a UnsupportedOperationException which is never caught.
public User createUser(String username, String password, String name, String email)
throws UserAlreadyExistsException {
// Reject the operation since the provider is read-only
throw new UnsupportedOperationException();
}
For the purpose of chating the user details must be loaded as below.
public User createUser(String username, String password, String name, String email)
throws UserAlreadyExistsException {
User user = new User();
try {
user = loadUser(username);
} catch (UserNotFoundException unfe) { }
return user;
}
thanks,
vinay