From: Suranga K. <sur...@gm...> - 2013-09-19 01:08:10
|
Hi James / all, I was trying out the example which James had kindly provided at ( http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/HandlingMultipleVersions.html ). I tried it using HAPI 2.1, but I seem to be getting an error from the line "HapiContext context = new DefaultHapiContext();" The error message is, SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/C:/Users/HP/.m2/repository/org/slf4j/slf4j-log4j12/1.6.0/slf4j-log4j12-1.6.0.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/C:/Users/HP/Downloads/hapi-dist-2.0-all/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. Exception in thread "main" java.lang.NoSuchMethodError: ca.uhn.hl7v2.validation.impl.ValidationContextFactory.defaultValidation()Lca/uhn/hl7v2/validation/ValidationContext; at ca.uhn.hl7v2.DefaultHapiContext.<init>(DefaultHapiContext.java:109) at ca.uhn.hl7v2.DefaultHapiContext.<init>(DefaultHapiContext.java:100) at org.openmrs.module.RegenstriefHl7Adapter.test.main(test.java:33) I tried googling, but unfortunately it doesn't seem to help. I was wondering if anyone could advise me on what the problem is :-( -- Best Regards, Suranga |