catch exception in application checker
This commit is contained in:
parent
2136f712e9
commit
0843826ed1
1 changed files with 14 additions and 2 deletions
|
@ -120,6 +120,14 @@ import com.sleepycat.db.*;
|
||||||
appsPropfile = helper.getAbsolutePath ();
|
appsPropfile = helper.getAbsolutePath ();
|
||||||
getLogger().log ("appsPropfile = "+appsPropfile);
|
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"));
|
paranoid = "true".equalsIgnoreCase (sysProps.getProperty ("paranoid"));
|
||||||
|
|
||||||
String language = sysProps.getProperty ("language");
|
String language = sysProps.getProperty ("language");
|
||||||
|
@ -249,7 +257,11 @@ import com.sleepycat.db.*;
|
||||||
try {
|
try {
|
||||||
mainThread.sleep (3000l);
|
mainThread.sleep (3000l);
|
||||||
} catch (InterruptedException ie) {}
|
} catch (InterruptedException ie) {}
|
||||||
|
try {
|
||||||
appManager.checkForChanges ();
|
appManager.checkForChanges ();
|
||||||
|
} catch (Exception x) {
|
||||||
|
getLogger().log ("Caught in app manager loop: "+x);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue