From: Jens V. <jen...@gm...> - 2013-09-19 20:04:03
|
That sounds like your class path is kinda screwed. Are you running it from a command line or from you IDE. I suggest that you take a look at "java.lang.NoSuchMethodError" - this is a pretty common exception and you should be able to find a lot of help regarding this - e.g. http://stackoverflow.com/questions/5407250/causes-of-java-lang-nosuchmethoderror-main-exception-in-thread-main. Are you new to Java? On 19 September 2013 03:08, Suranga Kasthurirathne <sur...@gm...>wrote: > > 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 > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > -- Med venlig hilsen / Kind regards *Jens Kristian Villadsen* cand.polyt Stålhøjen 24 8240 Risskov Denmark Mobile +4523373806 jen...@gm... jkiddo.dyndns.org |