You need to provide the port number in the Connection URL property, when creating the User Store, like this:
ldap://goja.local:389
This is the relevant code snippet:
String rawConnectionURL = realmConfig.getUserStoreProperty(LDAPConstants.CONNECTION_URL);
String connectionURL = null;
//if DNS enabled in AD case, this can be null
if (rawConnectionURL != null) {
String portInfo = rawConnectionURL.split(":")[2];
The ArrayIndexOutOfBoundsException is thrown on the last line when the port number is missing.