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
org.smooks.cdr.SmooksConfigurationException: Unable to locate Smooks digest configuration '/META-INF/xsd/smooks/edi-2.0.xsd-smooks.xml' for extended resource configuration namespace 'https://www.smooks.org/xsd/smooks/edi-2.0.xsd'. This resource must be available on the classpath. at org.smooks.cdr.XMLConfigDigester.assertExtendedConfigOK(XMLConfigDigester.java:554) #360
Comments
Smooks should be initiated only once. Can you post the Java code which starts Smooks and filters the doc? |
Hi @claudemamo , Thank you so much for the response.
This above common function is called from a ServiceClass=>
|
It appears to be a defect. I'll follow it up but, in the meantime, can you use Smook profiles instead? It should even lead to better performance. |
Thank you @claudemamo for the suggestion. We tried that actually our conversion logic remain the for a specific type of payload and does not vary depending on the content. Any suggestion on when this fix will be be available ? |
I might be misunderstanding the problem. If your Smooks configuration remains the same across executions, then you should construct Smooks once outside the parallelStream block. Only the createExecutionContext and filterSource methods need to be inside the block. |
Hi @claudemamo , thank you!! i followed your recommendation and that results in below error . For single threaded execution it works fine. Caused by: org.xml.sax.SAXException: SAX2 driver class org.smooks.cartridges.dfdl.parser.DfdlParser not found |
Please post the updated Java code Agnish along with the configs. I will try to reproduce it locally. |
Closing stale issue. |
Hello!
When trying to perform edi to xml transformation I am getting below error. (TRACE below)
Unable to locate Smooks digest configuration '/META-INF/xsd/smooks/edi-2.0.xsd-smooks.xml'
It works fine if I am making one call at a time to initiate Smooks.
i.e. // Instantiate Smooks with the config...
Smooks smooks = new Smooks(smookConfigPath);
It throws the below error when I am trying to concurrently perform the transformation by using ExecutorService
Using JAVA 8.
Please let me know if more details are required.
org.smooks.cdr.SmooksConfigurationException: Unable to locate Smooks digest configuration '/META-INF/xsd/smooks/edi-2.0.xsd-smooks.xml' for extended resource configuration namespace 'https://www.smooks.org/xsd/smooks/edi-2.0.xsd'. This resource must be available on the classpath.
at org.smooks.cdr.XMLConfigDigester.assertExtendedConfigOK(XMLConfigDigester.java:554)
at org.smooks.cdr.XMLConfigDigester.getExtenededConfigDigester(XMLConfigDigester.java:519)
at org.smooks.cdr.XMLConfigDigester.digestExtendedResourceConfig(XMLConfigDigester.java:477)
at org.smooks.cdr.XMLConfigDigester.digestV12XSDValidatedConfig(XMLConfigDigester.java:276)
at org.smooks.cdr.XMLConfigDigester.digestConfigRecursively(XMLConfigDigester.java:231)
at org.smooks.cdr.XMLConfigDigester.digestConfig(XMLConfigDigester.java:201)
at org.smooks.cdr.SmooksResourceConfigurationStore.registerResources(SmooksResourceConfigurationStore.java:246)
at org.smooks.Smooks.addConfigurations(Smooks.java:364)
at org.smooks.Smooks.addConfigurations(Smooks.java:336)
at org.smooks.Smooks.(Smooks.java:177)
The text was updated successfully, but these errors were encountered: