-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FileService:printStackTraceToFile:ERROR when validating a product with overlapping fields #379
Comments
This happens to me, also. I managed to track the problem to @jordanpadams I think this can be fixed by changing
to
in three places in |
@jstone-psi @jordanpadams You are right, the call to printStackTraceToFile() should pass in either "null", or appends ".log". The default name will be used if "null" is passed in. {pds-dev3.jpl.nasa.gov}/home/qchau/sandbox/validate 165 % validate -R pds4.label --skip-context-reference-check -r report_github379_label_invalid.json -s json -t src/test/resources/github379/mix_cal_hk_fpac_report_20181204.xml > & t2 {pds-dev3.jpl.nasa.gov}/home/qchau/sandbox/validate 164 % egrep "message|type|severity" report_github379_label_invalid.json Code will be checkin at next opportunity. |
… optional with new command line parameter --enable-stack-printing 1. Add test resource :src/test/resources/github379 2. Add test resource :src/test/resources/github380 (Directory is required due to quirkiness with behave) 3. Add logic to enable stack printing :src/main/java/gov/nasa/pds/tools/util/FileService.java 4. Add house keeping of stackPrintingFlag variable :src/main/java/gov/nasa/pds/tools/util/FlagsUtil.java 5. Fix bug with printStackTraceToFile(0 function :src/main/java/gov/nasa/pds/tools/validate/rule/pds4/TableDataContentValidationRule.java 6. Add parsing ENABLE_STACK_PRINTING parameter :src/main/java/gov/nasa/pds/validate/ValidateLauncher.java 7. Add ENABLE_STACK_PRINTING parameter :src/main/java/gov/nasa/pds/validate/commandline/options/Flag.java 8. Add ENABLE_STACK_PRINTING option :src/main/java/gov/nasa/pds/validate/commandline/options/FlagOptions.java 9. Add tests for github379 and github380 :src/test/resources/features/validate.feature Refs: #379 FileService:printStackTraceToFile:ERROR when validating a product with overlapping fields #380 stack trace being created during successful validate execution
1. Add setSeverity() to 0 when --debug-mode is used at command line :src/main/java/gov/nasa/pds/validate/ValidateLauncher.java 2. Modify --enable-stack-printing to --debug-mode :src/main/java/gov/nasa/pds/validate/commandline/options/FlagOptions.java 3. Modify --enable-stack-printing to --debug-mode :src/test/resources/features/validate.feature Refs: #379 FileService:printStackTraceToFile:ERROR when validating a product with overlapping fields #380 stack trace being created during successful validate execution
closed per #385 |
🐛 Describe the bug
Validating a product that contains a table with overlapping fields results in an error when validate tries to create a stack trace report file.
📜 To Reproduce
Run validate (either version 2.0.7 or 2.1.0-SNAPSHOT) using mix_cal_hk_fpac_report_20181204 as target.
🕵️ Expected behavior
Validate runs and reports the product is not valid because it defines overlapping fields.
📚 Version of Software Used
validate 2.0.7 and validate 2.1.0-SNAPSHOT [repo commit 2cba1fd]
🩺 Test Data / Additional context
Product mix_cal_hk_fpac_report_20181204.zip attached. Fields 42 and 43 in this product overlap.
Please note that validate will report missing external references as well as the product contains references to elements not yet in PDS.
🖥 System Info
🦄 Related requirements
⚙️ Engineering Details
The text was updated successfully, but these errors were encountered: