Issue #390 has been updated by Sébastien Bahloul.
Robin, your ideas are really useful. I've just succeeded to use the default-value JAXB plugin so that default values specified inside the LSC XSD are enforced if no values is specified by the provided configuration file (r1632). I will leave this issue open to check inside every component the use of unchecked configuration objects. ---------------------------------------- Bug #390: Config errors result in NPEs http://tools.lsc-project.org/issues/390 Author: Robin Garner Status: Assigned Priority: Normal Assigned to: Sébastien Bahloul Category: Core Target version: 2.0 Problem in version: 2.0rc1 Missing mandatory elements in the config result in NullPointerExceptions, which the default logging displays to the user as Jan 18 17:44:53 - ERROR - org.lsc.exception.LscConfigurationException: java.lang.reflect.InvocationTargetException with no other clue as to what is wrong. The root cause is that unconfigured elements result in null values in fields, which aren't checked before being accessed. I can think of several fixes: - Add a validation pass after parsing the config file - Provide defaults for elements that aren't validated - Validate config entries at the point where they're accessed -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://tools.lsc-project.org/my/account
_______________________________________________________________ Ldap Synchronization Connector (LSC) - http://lsc-project.org lsc-dev mailing list [email protected] http://lists.lsc-project.org/listinfo/lsc-dev

