This commit is contained in:
rusefillc 2022-11-01 10:24:32 -04:00
parent fe78463e99
commit 841ed30c1f
2 changed files with 4 additions and 2 deletions

View File

@ -24,7 +24,7 @@ public class BundleUtil {
return null; // just paranoia check
return fullName;
} catch (IOException e) {
System.err.println(new Date() + ": Error reading " + BUNDLE_NAME_FILE);
System.err.println(new Date() + ": BundleUtil: Error reading " + BUNDLE_NAME_FILE);
return null;
}
}

View File

@ -55,7 +55,9 @@ public class PersistentConfiguration {
/**
* interesting things are happening while this is executed under TS as a plugin so we need non-default CL parameter
*/
XMLDecoder e = new XMLDecoder(inputStream, null, null, PersistentConfiguration.class.getClassLoader());
XMLDecoder e = new XMLDecoder(inputStream, null, e1 -> {
// empty not null exception listener replaces default exception listener which prints to System.err
}, PersistentConfiguration.class.getClassLoader());
config = (Map<String, Object>) e.readObject();
e.close();
System.out.println("Console configuration from " + CONFIG_FILE_NAME);