You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Kevin Williams (JIRA)" <tu...@ws.apache.org> on 2006/05/26 23:38:30 UTC

[jira] Assigned: (TUSCANY-213) Errors in config model result in NPE rather than helpful error message

     [ http://issues.apache.org/jira/browse/TUSCANY-213?page=all ]

Kevin Williams reassigned TUSCANY-213:
--------------------------------------

    Assign To: Kevin Williams

> 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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org