catch exception in application checker

This commit is contained in:
hns 2001-02-06 19:36:17 +00:00
parent 2136f712e9
commit 0843826ed1

View file

@ -120,6 +120,14 @@ import com.sleepycat.db.*;
appsPropfile = helper.getAbsolutePath ();
getLogger().log ("appsPropfile = "+appsPropfile);
File libdir = new File (hopHome, "lib");
Properties p = System.getProperties ();
String libpath = p.getProperty ("java.library.path");
if (libpath != null && libpath.length () > 0)
p.put ("java.library.path", libpath+System.getProperty("path.separator")+libdir.getCanonicalPath());
else
p.put ("java.library.path", libdir.getCanonicalPath());
paranoid = "true".equalsIgnoreCase (sysProps.getProperty ("paranoid"));
String language = sysProps.getProperty ("language");
@ -249,7 +257,11 @@ import com.sleepycat.db.*;
try {
mainThread.sleep (3000l);
} catch (InterruptedException ie) {}
appManager.checkForChanges ();
try {
appManager.checkForChanges ();
} catch (Exception x) {
getLogger().log ("Caught in app manager loop: "+x);
}
}
}