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
------------------------------------------------------------------------------
LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99!
1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint
2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes
Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13.
http://pubads.g.doubleclick.net/gampad/clk?id=58041151&iu=/4140/ostg.clktrk
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel