-
Notifications
You must be signed in to change notification settings - Fork 8
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
Command line arguments are ignored #85
Comments
Fix this issue in Merge request #88 Is there a reason you don't allow a plain java -jar validator.jar path/to/station.xml to run anymore (version 1.52 allowed this behavior)? |
Note I haven't fixed ignoring --show-units, --show-rules. I will add that now. |
--show-units and --show-rules should now work if called like
I noticed the help text did not match what was in the code. So I updated that as well. |
I don't get any output as well using the latest release 1.6.0.2-SNAPSHOT, just getting NullPointer exceptions when using options and just getting the help message when using no options (btw. replacing the actual version in the help message doesn't seem to work as intended). I'm using 1.5.9.5 for now for this reason.
|
@megies I have patched this on my fork of the project if you need a working version. I am keeping my fork up to date against the latest changes they put in the IRIS master branch. https://github.com/jholland-usgs/stationxml-validator @timronan @CTrabant @yazan-iris Is there a reason my merge request that fixes this can't be merged? |
Also: |
Please do not use the 1.5.9.5 version of the validator. There are many bugs, including null pointer exceptions, that have been fixed since 1.5.9.5 was released. This version of the validator does not verify compliance with the FDSN-Stationxml-Schema v1.1. We cannot resolve issues posted if the 1.5.9.5 version of the validator is being used. @jholland-usgs I will review your pull request. Sorry about the delay on this, the PR must have been forgotten during AGU and the holiday madness. We are working on a new front end to the validator right now, so this issue may eventually change. @megies the null pointer exception issue is triggering because the file /tmp/ACW5S.xml has a null field that the validator has not been coded to handle. Can you please send us this file so we can fix this issue. java -jar ~/local/src/stationxml-validator.jar dataless.seed.BW_MGS04 Until the validator is patched, an argument in addition to the file needs to be included for the validator to run. The posted output is the validators help message. Use the command: java -jar ~/local/src/stationxml-validator.jar dataless.seed.BW_MGS04 --format report And you should get the output that you expect unless the validator chokes on another null pointer exception which is unlikely. |
@timronan --format isn't currently an option in Application.java It is hard coded to always run csv currently.
|
Also, thanks for looking at my pull request. |
As pointed out in this issue's original post, if you provide a second argument you will receive the validation results formatted in csv. We are working on changing the validator's front end right now. This is why the validator still has the tags prerelease and snapshot. java -jar ~/local/src/stationxml-validator.jar /Path/to/metadata.xml --string |
I have 1.6.0.2 and got it to work but it did not write output, only a usage message, unless I specified an output file. Furthermore, I had to "touch" the output file before invoking the command, otherwise it came back with "File not found". So the command line that worked was: touch jjoutput "jjoutput" contains: |
These issue should be addressed in Validator version stationxml-validator-1.7.0-RC-01, available on the Validator's releases page. For usage infomration http://iris-edu.github.io/stationxml-validator/ Please verify these functions work satisfactorily and report or close the issue based on your findings. |
Using 1.7.0-RC-01 - yes, the problem seems to have been fixed. Thanks. |
All of the below commands generate the same results. All the arguments are being ignored.
This is as of commit ae126de
The text was updated successfully, but these errors were encountered: