Hi
I am trying to run the following code which bombs out with the message <i>The MDM repository is invalid.</i> when <i>repositorySessionCmd.execute();</i> is called. Any help greatly appreciated. Here is the code:
public void createRepositorySession(RepositoryIdentifier repId) { CreateRepositorySessionCommand repositorySessionCmd = new CreateRepositorySessionCommand(this.pool); repositorySessionCmd.setRepositoryIdentifier(repId); try { trace.debugT("executing RepositorySessionCommand with rep id "{0}" ...", new Object[]{repId.getName()}); repositorySessionCmd.execute(); trace.debugT("Execution of RepositorySessionCommand successful."); } catch (CommandException e) { String errMsg = "Could not create a repository session for rep id: " + repId.getName(); trace.traceThrowableT(Severity.ERROR, errMsg, e); throw new RuntimeException(errMsg, e); }
with RepositoryIdentifier being:
RepositoryIdentifier repId = new RepositoryIdentifier( "DOL", "127.0.0.1", "MS_SQL");
Thanks
Paul