Cannot Create User
I am attempting to create a user using Entity Services in the SDK.
I'm using the following code and it keeps throwing a NullPointerException:
String user = "jpublic";
EntityServices es = new EntityServices();
try {
// Create Tag and Add to Collection
TagLink tag = TagLink.fromString("Users:Mashup");
TagCollection tc = new TagCollection();
tc.add(tag);
// Create User
es.CreateUser(user, "John Q Public", tc, "ABC123");
} catch (Exception e) {
// Log Errors
_logger.error(DateTime.now() + " -- Error: " + e.toString());
_logger.error(DateTime.now() + " -- Failed to Create User: " + user);
}
Any ideas on what I'm doing wrong?

