You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cp testdata/CO_JSC.xml testdata/CO_JSC.staxml
java -jar stationxml-validator-1.6.0.2-SNAPSHOT.jar testdata/CO_JSC.staxml --string
java.lang.RuntimeException: java.io.IOException: Error calculation record length!
at edu.iris.dmc.seed.blockette.util.BlocketteItrator.hasNext(BlocketteItrator.java:58)
at edu.iris.dmc.IrisUtil.readSeed(IrisUtil.java:62)
at edu.iris.dmc.IrisUtil.readSeed(IrisUtil.java:54)
at edu.iris.dmc.Application.read(Application.java:158)
at edu.iris.dmc.Application.run(Application.java:130)
at edu.iris.dmc.Application.run(Application.java:121)
at edu.iris.dmc.Application.main(Application.java:92)
Caused by: java.io.IOException: Error calculation record length!
at edu.iris.dmc.seed.io.RecordInputStream.getRecordLength(RecordInputStream.java:99)
at edu.iris.dmc.seed.io.RecordInputStream.next(RecordInputStream.java:32)
at edu.iris.dmc.seed.blockette.util.BlocketteItrator.hasNext(BlocketteItrator.java:45)
... 6 more
Same file, but it appears that if the file doesn't end in .xml it reads it as SEED. Seems weird that the default would be to read dataless within a stationxml validator???
If there are more than one type of input file allowed, it would be nice to have a cmd line arg to say what it is, maybe --staxml and --'seed' like:
This issue has been addressed by validator version stationxml-validator-1.7.0-RC-01. Please download this jar on the project's release page and verify that this function works satisfactorily. Report or close this issue based on your findings.
This seems to work fine:
But if I
Same file, but it appears that if the file doesn't end in
.xml
it reads it as SEED. Seems weird that the default would be to read dataless within a stationxml validator???If there are more than one type of input file allowed, it would be nice to have a cmd line arg to say what it is, maybe
--staxml
and --'seed' like:Guessing file types based off of file extensions is kind of dangerous and forcing naming as
.xml
is too restrictive.The text was updated successfully, but these errors were encountered: