[ http://issues.apache.org/jira/browse/TUSCANY-213?page=all ] Kevin Williams resolved TUSCANY-213: ------------------------------------
Resolution: Fixed > Errors in config model result in NPE rather than helpful error message > ---------------------------------------------------------------------- > > Key: TUSCANY-213 > URL: http://issues.apache.org/jira/browse/TUSCANY-213 > Project: Tuscany > Type: Bug > Components: Java DAS RDB > Versions: Java-Mx > Reporter: Kevin Williams > Assignee: Kevin Williams > Fix For: Java-Mx > Attachments: invalidConfig.txt > > Typos in the config.xml can lead to meaningless NPE errors. > For example, changing from the following change in > OrdersOrderDetailsConfig.xml > <Relationship name="ORDERDETAILS" primaryKeyTable="ANORDER" > foreignKeyTable="ORDERDETAILS" many="true"> > <KeyPair primaryKeyColumn="ID" foreignKeyColumn="ORDERID"/> > </Relationship> > to this ... > <Relationship name="ORDERDETAILS" primaryKeyTable="xxxx" > foreignKeyTable="ORDERDETAILS" many="true"> > <KeyPair primaryKeyColumn="ID" foreignKeyColumn="ORDERID"/> > </Relationship> > results in a harsh NPE rather than of a cozy message exlaining that we are > sorry but we have no table/property named "xxxx" -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]