Uploaded image for project: 'Tuscany'
  1. Tuscany
  2. TUSCANY-213

Errors in config model result in NPE rather than helpful error message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • Java-SCA-M2
    • Java DAS RDB
    • None

    Description

      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"

      Attachments

        1. invalidConfig.txt
          5 kB
          Brent Daniel

        Activity

          People

            kwilliams Kevin Joe Williams
            kwilliams Kevin Joe Williams
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: