- Code: Select all
2010-11-25 17:01:24,222 DEBUG com.trackstudio.startup.SCMDaemon:run:124 - CLOSE SESSION SCMDaemon
2010-11-25 17:01:27,206 DEBUG com.trackstudio.startup.SCMDaemon:run:128 - SCMDaemon error:
CVS: SSH connection failed.
at com.trackstudio.app.scm.CVSManager.cvsRlog(CVSManager.java:209)
at com.trackstudio.app.scm.CVSManager.initCache(CVSManager.java:129)
at com.trackstudio.startup.SCMDaemon.run(SCMDaemon.java:126)
We aren't using CVS at all.
A brief inspection of the code shows:
- Code: Select all
if (TypeSCMConstrain.SVN.equals(Config.getInstance().getSCMType(connectionName))) {
scmManager = CVSManager.getInstance();
} else if (TypeSCMConstrain.CVS.equals(Config.getInstance().getSCMType(connectionName))) {
scmManager = SVNManager.getInstance();
} else if (TypeSCMConstrain.P4.equals(Config.getInstance().getSCMType(connectionName))) {
scmManager = PerforceManager.getInstance();
} else if (TypeSCMConstrain.BZR.equals(Config.getInstance().getSCMType(connectionName))) {
scmManager = BazaarManager.getInstance(connectionName);
} else {
continue;
}
synchronized (indexLock) {
log.debug("CLOSE SESSION SCMDaemon");
try {
scmManager.initCache(connectionName);
} catch (Exception ex) {
log.debug("SCMDaemon error:", ex);
}
} // sync
minCnt++;
} // for
Are the first two "if" statements the wrong way around?
