Menu

#2 Schema parser does not give informative message

open
Michael
Bug (17)
5
2011-09-27
2011-09-24
Lawson He
No

When running DG on a schema xml it does not print an informative enough error message when a mandatory element is missing

C:\cygwin\home\robert\ucosp\DG\dist\data\schemas\movie.xml
1085 [main] FATAL com.ibm.dg.DataGenerator - An exception occured while trying
to parse database configuration file: Mandatory attribute 'type' has not been sp
ecified.

Discussion

  • Michael

    Michael - 2011-09-24

    It does not give any information about where the problem might be

     
  • Michael

    Michael - 2011-09-25

    The current error message it prints:
    db2inst1@ubuntu-school:~/DG/dist$ java -jar DG.jar
    1 [main] INFO com.ibm.dg.DataGenerator - Data Generator started. Version: 0.3 Revision: f9a8e61dc4a9 tip
    App config file:
    /home/db2inst1/DG/dist/config.xml
    DB config file:
    /home/db2inst1/DG/dist/data/schemas/aroma-broke.xml
    1987 [main] FATAL com.ibm.dg.DataGenerator - An exception occured while trying to parse database configuration file: Mandatory attribute 'type' has not been specified.
    1987 [main] FATAL com.ibm.dg.DataGenerator - Aborting.
    1988 [Thread-0] WARN com.ibm.dg.DataGenerator - Shutting down.

     
  • Michael

    Michael - 2011-09-27
    • assigned_to: nobody --> bennettaur
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.