Closed thierryvt closed 5 years ago
I think that you have some problems with ResourceRepository. If you have Internet connection on develop PC try remove:
builder.setSource(new RepositorySource(new File("D:\\workspace\\validator_artifacts").toURI()));
and run again. Artifacts will downloaded from remote server. And all be OK. To use locally artifacts downloaded from server I write:
Path path = Paths.get("d:/downloads/Production");
DirectorySource source = new DirectorySource(path)
Validator validator = ValidatorBuilder.newValidator().setSource(source).build()
Validation validation = validator.validate(<any file>)
def report = validation.getReport()
Bot running it without settings the source and the way you paste it there produce the same set of exceptions.
this is how I run it now:
Path path = Paths.get("D:/peppol-workspace/validator_artifacts");
DirectorySource source = new DirectorySource(path);
Validator validator = ValidatorBuilder.newValidator().setSource(source).build();
Leaving the "setSource" out of it makes no difference, it's always the "build" method that throws the exception. The last line that outputs (before stacktraces) is always:
2017-01-24 14:31:18,818 INFO [no.difi.asic.AbstractAsicReader] Found file: META-INF/asicmanifest.xml
So might there be an issue with reading the asicmanifest.xml? log.txt
Log once more attached should you want to take a look at it.
Title says it, when I try to build the validator the program crashes.
Code used (I downloaded the necessary artifacts to a local directory):
as soon as "builder.build" is run the following excecption is thrown:
left out a big part of repeating the same "two classes have the same xml type name" errors. (that and the part below it repeat 10 times or so) Followed by about 10 of these
And finally ending with
I don't really enjoy the idea of having to do major changes in the sourcecode of the validator/asic parser projects so I'm hoping it's just a setting I'm missing.
Any help is appreciated.