[sip-comm-dev] Avoiding mysterious properties file failures.


#1

If the users file system isn't as sip-communicator expects, the error messages to the user are quite obscure and misleading. Specifically if the file sip-communicator uses for default values cannot be read (because its not in $HOME or .), the errors do not point to this as the problem.

Suggested fix: PropertiesDepot.getConfigurationFile() can test for the existence of the template file before trying to use it, something like this:

                File configFileTemplate = new File(Utils.getSystemProperty("user.dir") + File.separator + pFileName);
                if (!configFileTemplate.exists()) {
                     throw new Error("Required property file template "+configFileTemplate.getAbsolutePath()+" does not exist");
                }

John.

···

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@sip-communicator.dev.java.net
For additional commands, e-mail: dev-help@sip-communicator.dev.java.net