Metadatasharing module compatibility with Platform 1.11-1.12

I am having trouble using the latest metadatasharing module on OpenMRS 1.12.0.

Issue: While searching for an individual concept to add to my export package, an error is thrown. URL: https://local/openmrs/module/metadatasharing/export/json/items.form?type=Concept&sEcho=14&iColumns=7&sColumns=selected%2Cname%2Cdescription%2CdateChanged%2Cretired%2Cid%2Cuuid&iDisplayStart=0&iDisplayLength=25&sSearch=Hypertension&bEscapeRegex=true&sSearch_0=&bEscapeRegex_0=true&bSearchable_0=true&sSearch_1=&bEscapeRegex_1=true&bSearchable_1=true&sSearch_2=&bEscapeRegex_2=true&bSearchable_2=true&sSearch_3=&bEscapeRegex_3=true&bSearchable_3=true&sSearch_4=&bEscapeRegex_4=true&bSearchable_4=true&sSearch_5=&bEscapeRegex_5=true&bSearchable_5=true&sSearch_6=&bEscapeRegex_6=true&bSearchable_6=true

Error: java.lang.NoClassDefFoundError: org/openmrs/ConceptWord

Offending line: https://github.com/openmrs/openmrs-module-metadatasharing/blob/master/api-1.9/src/main/java/org/openmrs/module/metadatasharing/api/db/hibernate/HibernateCompatibility1_9.java#L88

ConceptWord has not been in use since 1.11.0. Do we need to have another maven module within openmrs-module-metadatasharing with a new version of HibernateCompatibility?

That’s correct Vinay. We need HibernateCompatibility1_11.

Alright. Will raise a PR and work on it.

This also occured with me, making sharing data impossible. I tried with Platform 1.11.5. Is there any workaround?

Have you tried the latest version that is 1.2 of the metadatasharing module? It should have been fixed in

https://github.com/openmrs/openmrs-module-metadatasharing/commit/bc4391486062fc064f788f0f9da38170ccfe239a

I updated module to version 1.2 on Reference Application 2.3.1 (which uses Platform 1.11.5), I confirm that now importing is working correctly!

1 Like

@vinay : https://local/openmrs/module/metadatasharing/export/json/items.form?type=Concept&sEcho=14&iColumns=7&sColumns=selected%2Cname%2Cdescription%2CdateChanged%2Cretired%2Cid%2Cuuid&iDisplayStart=0&iDisplayLength=25&sSearch=Hypertension&bEscapeRegex=true&sSearch_0=&bEscapeRegex_0=true&bSearchable_0=true&sSearch_1=&bEscapeRegex_1=true&bSearchable_1=true&sSearch_2=&bEscapeRegex_2=true&bSearchable_2=true&sSearch_3=&bEscapeRegex_3=true&bSearchable_3=true&sSearch_4=&bEscapeRegex_4=true&bSearchable_4=true&sSearch_5=&bEscapeRegex_5=true&bSearchable_5=true&sSearch_6=&bEscapeRegex_6=true&bSearchable_6=true is not available