Issue with EDI to XML & EDIFACT to XML Conversion – Daffodil Version Compatibility

26 views
Skip to first unread message

Ashish Singh

unread,
Feb 4, 2025, 2:31:51 AMFeb 4
to Smooks Users
Hi Team ,
 I have a project that includes code for converting EDI to XML as well as EDIFACT to XML. However, I am encountering the following error with the jar files listed below:  
org.smooks.api.SmooksConfigException: org.smooks.cartridges.dfdl.DfdlSmooksException: org.apache.daffodil.japi.InvalidParserException: The saved parser is only compatible with Daffodil 3.10.0. Current version is 3.9.0


Gradle :

  implementation('org.smooks:smooks-core:2.2.0') // implementation('org.smooks.cartridges.edi:smooks-edi-cartridge:2.1.0') implementation('org.smooks.cartridges.edi:smooks-edi-cartridge:2.0.2') implementation('org.smooks.cartridges.edi:smooks-edifact-cartridge:2.0.2') implementation('org.smooks.cartridges.edi:edifact-schemas:2.0.2:d03b')  

If I update the Gradle dependencies as below, I get a different error:
org.smooks.cartridges.dfdl.DfdlSmooksException: org.apache.daffodil.japi.InvalidParserException: The saved parser is only compatible with Daffodil 3.9.0. Current version is 3.10.0


gradle:
  implementation('org.smooks:smooks-core:2.2.1') implementation('org.smooks.cartridges.edi:smooks-edi-cartridge:2.1.0') implementation('org.smooks.cartridges.edi:smooks-edifact-cartridge:2.1.0') implementation('org.smooks.cartridges.edi:edifact-schemas:2.1.0:d03b')  
  Please advise on the appropriate versioning to resolve this compatibility issue?  

Claude Mamo

unread,
Feb 4, 2025, 2:43:48 AMFeb 4
to smook...@googlegroups.com
Do you have cacheOnDisk set to true?

--
You received this message because you are subscribed to the Google Groups "Smooks Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smooks-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/smooks-user/d5ae9f65-2fc2-46e4-8fef-de52ab0eedd0n%40googlegroups.com.

Ashish Singh

unread,
Feb 4, 2025, 3:26:28 AMFeb 4
to Smooks Users

Thanks for your response, Claude.

Yes, in EdifactReaderConfigurator and EdiReaderConfigurator, I have cacheOnDisk set to true.

Should I change it to false and test? Also, which version of the library should be used?

If I set it to false, would it impact performance? My application needs to process EDI and Edifact files concurrently.

Claude Mamo

unread,
Feb 4, 2025, 3:36:44 AMFeb 4
to smook...@googlegroups.com
OK. Sounds like we have a bug in the DFDL cartridge. It should invalidate the cache when the schema binaries are no longer compatible. As a workaround, you can just delete the cache directory ".smooks" before running the app for the first time following the upgrade.

Ashish Singh

unread,
Feb 4, 2025, 1:16:44 PMFeb 4
to Smooks Users
Thanks Calude, After deleting the folder it started working. 
Reply all
Reply to author
Forward
0 new messages