Closed phax closed 4 years ago
I get the same error on 2.0.0-M1. Can you post the Smooks config?
Like this:
Smooks SMOOKS = new Smooks ();
final EdifactReaderConfigurator cfg = new EdifactReaderConfigurator ("/d06b/EDIFACT-Messages.dfdl.xsd");
cfg.setMessageTypes (Arrays.asList ("RESMSG", "REPREM", "CONDRA", "MEDREQ", "REMADV"));
cfg.setValidationMode (ValidationMode.Limited).setCacheOnDisk (Boolean.TRUE);
SMOOKS.setReaderConfig (cfg);
Try with or without the 3rd line
I couldn't observe any difference in behaviour between M1 and M2-SNAPSHOT even with the given snippet. When cacheOnDisk is enabled, validationMode needs to be set to off or limited since Apache Daffodil cannot restore the parser with full validation mode.
Maybe that is related to the other PR, that allows the cached file on disk to be read. Since M1 was always creating new files that might not have shown up
I ran your snippet without any specified messageTypes and the schema was successfully loaded from disk in M1 and M2-SNAPSHOT unless I set the validation mode to full.
But as soon as you specify at least 2 message types, the disk cache breaks - right?
Yes, it doesn't load the cached schema.
Sorry - the details are alaready too far away :/
Hi guys, when filtering an EDIFACT message with validation mode "Full" I get the following error message when doing so. That worked without problems in M1:
Any ideas what that might have caused?