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/04/22 00:22:06 UTC

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

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  
    Reporter: Kevin Williams


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


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

Posted by "Kevin Williams (JIRA)" <tu...@ws.apache.org>.
     [ 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


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

Posted by "Brent Daniel (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-213?page=all ]

Brent Daniel updated TUSCANY-213:
---------------------------------

    Attachment: invalidConfig.txt

The attached patch resolves the issue with relationship table names. 

> 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
>      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


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

Posted by "Kevin Williams (JIRA)" <tu...@ws.apache.org>.
     [ 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: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


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

Posted by "Kevin Williams (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-213?page=all ]
     
Kevin Williams closed TUSCANY-213:
----------------------------------


Verified with 409741

> 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


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

Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-213?page=all ]

Jean-Sebastien Delfino updated TUSCANY-213:
-------------------------------------------

    Fix Version: Java-Mx
        Version: Java-Mx

> 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
>      Fix For: Java-Mx

>
> 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