work around THO 6.0.0 problem (hack, to be reversed later)

This commit is contained in:
Grahame Grieve 2024-07-16 21:47:03 +08:00
parent 14652e6e25
commit f5af20acad
2 changed files with 9 additions and 1 deletions

View File

@ -564,6 +564,7 @@ public abstract class BaseWorkerContext extends I18nBase implements IWorkerConte
public Map<String, NamingSystem> getNSUrlMap() { public Map<String, NamingSystem> getNSUrlMap() {
if (systemUrlMap == null) { if (systemUrlMap == null) {
systemUrlMap = new HashMap<>(); systemUrlMap = new HashMap<>();
try {
List<NamingSystem> nsl = systems.getList(); List<NamingSystem> nsl = systems.getList();
for (NamingSystem ns : nsl) { for (NamingSystem ns : nsl) {
for (NamingSystemUniqueIdComponent uid : ns.getUniqueId()) { for (NamingSystemUniqueIdComponent uid : ns.getUniqueId()) {
@ -572,6 +573,12 @@ public abstract class BaseWorkerContext extends I18nBase implements IWorkerConte
} }
} }
} }
} catch (Exception e) {
if (!nsFailHasFailed) {
e.printStackTrace();
nsFailHasFailed = true;
}
}
} }
return systemUrlMap; return systemUrlMap;
} }
@ -2530,6 +2537,7 @@ public abstract class BaseWorkerContext extends I18nBase implements IWorkerConte
protected IWorkerContextManager.IPackageLoadingTracker packageTracker; protected IWorkerContextManager.IPackageLoadingTracker packageTracker;
private boolean forPublication; private boolean forPublication;
private boolean cachingAllowed = true; private boolean cachingAllowed = true;
private static boolean nsFailHasFailed;
public Resource fetchResourceById(String type, String uri, FhirPublication fhirVersion) { public Resource fetchResourceById(String type, String uri, FhirPublication fhirVersion) {
return fetchResourceById(type, uri); return fetchResourceById(type, uri);

View File

@ -21,7 +21,7 @@
<commons_compress_version>1.26.0</commons_compress_version> <commons_compress_version>1.26.0</commons_compress_version>
<guava_version>32.0.1-jre</guava_version> <guava_version>32.0.1-jre</guava_version>
<hapi_fhir_version>6.4.1</hapi_fhir_version> <hapi_fhir_version>6.4.1</hapi_fhir_version>
<validator_test_case_version>1.5.15</validator_test_case_version> <validator_test_case_version>1.5.16-SNAPSHOT</validator_test_case_version>
<jackson_version>2.17.0</jackson_version> <jackson_version>2.17.0</jackson_version>
<junit_jupiter_version>5.9.2</junit_jupiter_version> <junit_jupiter_version>5.9.2</junit_jupiter_version>
<junit_platform_launcher_version>1.8.2</junit_platform_launcher_version> <junit_platform_launcher_version>1.8.2</junit_platform_launcher_version>