You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(3) |
Dec
(6) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(2) |
Feb
(1) |
Mar
|
Apr
(4) |
May
(5) |
Jun
(6) |
Jul
(3) |
Aug
(13) |
Sep
(28) |
Oct
(33) |
Nov
(8) |
Dec
(1) |
2003 |
Jan
(6) |
Feb
(2) |
Mar
|
Apr
(25) |
May
(21) |
Jun
(13) |
Jul
(12) |
Aug
(14) |
Sep
(6) |
Oct
(6) |
Nov
(16) |
Dec
(6) |
2004 |
Jan
(5) |
Feb
(7) |
Mar
(13) |
Apr
(17) |
May
(24) |
Jun
(14) |
Jul
(14) |
Aug
(8) |
Sep
(3) |
Oct
(8) |
Nov
(14) |
Dec
(26) |
2005 |
Jan
(18) |
Feb
(12) |
Mar
(29) |
Apr
(9) |
May
(4) |
Jun
(12) |
Jul
(17) |
Aug
(9) |
Sep
(12) |
Oct
|
Nov
(12) |
Dec
|
2006 |
Jan
(46) |
Feb
(18) |
Mar
(11) |
Apr
(13) |
May
(12) |
Jun
(27) |
Jul
(34) |
Aug
(45) |
Sep
(27) |
Oct
(13) |
Nov
(26) |
Dec
(22) |
2007 |
Jan
(21) |
Feb
(29) |
Mar
(32) |
Apr
(6) |
May
(11) |
Jun
(13) |
Jul
(14) |
Aug
(11) |
Sep
(15) |
Oct
(7) |
Nov
(30) |
Dec
(16) |
2008 |
Jan
(11) |
Feb
(14) |
Mar
(5) |
Apr
(18) |
May
(12) |
Jun
(11) |
Jul
(5) |
Aug
(12) |
Sep
(3) |
Oct
(2) |
Nov
(15) |
Dec
(2) |
2009 |
Jan
(18) |
Feb
(6) |
Mar
(9) |
Apr
(10) |
May
(29) |
Jun
(16) |
Jul
(44) |
Aug
(49) |
Sep
(14) |
Oct
(21) |
Nov
(11) |
Dec
(22) |
2010 |
Jan
(12) |
Feb
(13) |
Mar
(5) |
Apr
(6) |
May
(15) |
Jun
(15) |
Jul
(14) |
Aug
(20) |
Sep
(17) |
Oct
(36) |
Nov
(19) |
Dec
(7) |
2011 |
Jan
(8) |
Feb
(14) |
Mar
(21) |
Apr
(12) |
May
(6) |
Jun
(12) |
Jul
(17) |
Aug
(6) |
Sep
(13) |
Oct
(15) |
Nov
(26) |
Dec
(9) |
2012 |
Jan
(25) |
Feb
(13) |
Mar
(31) |
Apr
(10) |
May
(16) |
Jun
(21) |
Jul
(61) |
Aug
(38) |
Sep
(16) |
Oct
(13) |
Nov
(37) |
Dec
(26) |
2013 |
Jan
(20) |
Feb
(26) |
Mar
(34) |
Apr
(32) |
May
(27) |
Jun
(56) |
Jul
(16) |
Aug
(38) |
Sep
(35) |
Oct
(17) |
Nov
(11) |
Dec
(7) |
2014 |
Jan
(36) |
Feb
(13) |
Mar
(25) |
Apr
|
May
(27) |
Jun
(33) |
Jul
(34) |
Aug
|
Sep
(4) |
Oct
(11) |
Nov
(42) |
Dec
(2) |
2015 |
Jan
(5) |
Feb
(6) |
Mar
(11) |
Apr
(3) |
May
|
Jun
(1) |
Jul
(2) |
Aug
(5) |
Sep
(5) |
Oct
(5) |
Nov
(8) |
Dec
(19) |
2016 |
Jan
(8) |
Feb
(12) |
Mar
(6) |
Apr
(5) |
May
(5) |
Jun
(3) |
Jul
(1) |
Aug
|
Sep
(9) |
Oct
(1) |
Nov
(2) |
Dec
(5) |
2017 |
Jan
(2) |
Feb
|
Mar
(3) |
Apr
(6) |
May
(8) |
Jun
(7) |
Jul
(14) |
Aug
(10) |
Sep
(6) |
Oct
(2) |
Nov
|
Dec
|
2018 |
Jan
|
Feb
(9) |
Mar
(2) |
Apr
(3) |
May
(1) |
Jun
(1) |
Jul
(1) |
Aug
(8) |
Sep
(4) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
2019 |
Jan
(10) |
Feb
(2) |
Mar
(6) |
Apr
(1) |
May
(2) |
Jun
|
Jul
(5) |
Aug
|
Sep
(1) |
Oct
(1) |
Nov
|
Dec
|
2020 |
Jan
(9) |
Feb
|
Mar
|
Apr
(6) |
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
(9) |
Oct
(1) |
Nov
(11) |
Dec
|
2021 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
(7) |
Nov
|
Dec
|
2022 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
(1) |
2023 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
(2) |
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2024 |
Jan
|
Feb
(7) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(6) |
Nov
|
Dec
|
From: Dayu H. <da...@st...> - 2014-05-29 14:18:04
|
Hello Just wonder if HAPI has any logging, if yes, how to turn it on. Thanks Dayu -- Dayu Han Software Developer Strata Health Solutions Phone: +1 403 261 0855 ext 2102 www.stratahealth.com |
From: James A. <ja...@ja...> - 2014-05-29 11:53:28
|
Hi Sara, This is probably a similar issue to the other one you had, where OpenMRS is importing an older version of a libaray (in this case, slf4j). The easiest fix here might be to remove the SLF4j and log4j dependencies from your pom entirely (since they are being pulled already by OpenMRS) and add an exclusion to the HAPI dependencies (each of them) along the line of <exclusion> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> </exclusion> Another paste of "mvn dependency:tree" for the module you are currently having issues with might be helpful.. Cheers, James On Thu, May 29, 2014 at 12:46 AM, Sara Fatima <sar...@gm...> wrote: > Hi all, > > I am trying to make this sample work ( > http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/CreateAMessage.html > ) > > When I run this as an individual java file I get the correct results. > However I need to use HAPI in my module and hence I am trying to write the > createMessage method in my service layer. > > But I am getting the below error. > > Results : >> Tests in error: >> >> shouldSetupContext(org.openmrs.module.hapiexample.api.HapiExampleServiceTest): >> org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V >> org.openmrs.module.hapiexample.api.HapiExampleServiceTest: >> org.slf4j.spi.LocationAwareLogger.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V > > > > *Contents of HapiExampleServiceTest.java file* > > package org.openmrs.module.hapiexample.api; >> import static org.junit.Assert.*; >> import org.junit.Test; >> import org.openmrs.api.context.Context; >> import org.openmrs.test.BaseModuleContextSensitiveTest; >> /** >> * Tests {@link ${HapiExampleService}}. >> */ >> public class HapiExampleServiceTest extends >> BaseModuleContextSensitiveTest { >> >> @Test >> public void shouldSetupContext() { >> assertNotNull(Context.getService(HapiExampleService.class)); >> } >> } > > > > I have attached a copy of my pom.xml file as well. > > Could someone tell me what is that I am doing wrong. > > Thanks & Regards > Sara > > > ------------------------------------------------------------------------------ > Time is money. Stop wasting it! Get your web API in 5 minutes. > www.restlet.com/download > http://p.sf.net/sfu/restlet > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > |
From: Christian O. <chr...@gm...> - 2014-05-20 13:39:08
|
Yes, that's what I was looking for. This dependency is not replaced by Maven because it has a different artifactId. 2014-05-20 15:14 GMT+02:00 James Agnew <ja...@ja...>: > Hi Sara, > > The issue likely lies in the following part of the dependency tree you > posted: > > [INFO] +- org.openmrs.api:openmrs-api:jar:1.8.0:provided > (....snip....) > [INFO] | +- ca.uhn.hapi:hapi:jar:0.5:provided > > What this means is that the OpenMRS library has a dependency on a very old > version of HAPI, and Maven is pulling that old version into your build even > though you are asking for a newer version because OpenMRN is asking for the > older one. If it's possible to upgrade OpenMRSto use a newer version of > HAPI that is probably the best thing to do. > > Alternately you can try specifying in your own project pom for HAPI to be > excluded from OpenMRS, by adding an exclusion section to the openmrs > dependency. That would look something like this (typed from memory, so it > may not be 100% correct): > > <dependency> > <groupId>org.openmrs.api</groupId> > <artifactId>openmrs-api</artifactId> > <version>1.8.0</version> > <exclusions> > <exclusion> > <groupId>ca.uhn.hapi</groupId> > <artifactId>hapi</artifactId> > </exclusion> > </exclusions> > </dependency> > > For log4j, the contents of the file will depend on your specific > application so it might be worth googling log4j and reading the intro. It's > just a logging framework, so it's not critical to getting things working > but you will have a much easier time once it is producing useful results. > Here is a simple example: > http://www.roseindia.net/tutorials/log4j/log4j-xml.shtml > > > Cheers, > James > > > > On Tue, May 20, 2014 at 7:27 AM, Sara Fatima <sar...@gm...>wrote: > >> Hi >> Where do I get the log4j.xml file? >> >> Also I tried running mvn dependency:tree Here is what I got. I can't >> understand what I am supposed to look into this for? >> >> E:\GSOC2014\hapiexample>mvn dependency:tree >> [INFO] Scanning for projects... >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Reactor Build Order: >> [INFO] >> [INFO] Hapi Example Module >> [INFO] Hapi Example Module API >> [INFO] Hapi Example Module OMOD >> [INFO] >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Building Hapi Example Module 1.0-SNAPSHOT >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] >> [INFO] --- maven-dependency-plugin:2.4:tree (default-cli) @ hapiexample >> --- >> [INFO] org.openmrs.module:hapiexample:pom:1.0-SNAPSHOT >> [INFO] >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Building Hapi Example Module API 1.0-SNAPSHOT >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] >> [INFO] --- maven-dependency-plugin:2.4:tree (default-cli) @ >> hapiexample-api --- >> [INFO] org.openmrs.module:hapiexample-api:jar:1.0-SNAPSHOT >> [INFO] +- org.openmrs.api:openmrs-api:jar:1.8.0:provided >> [INFO] | +- commons-collections:commons-collections:jar:3.2:provided >> [INFO] | +- commons-beanutils:commons-beanutils:jar:1.7.0:provided >> [INFO] | +- commons-io:commons-io:jar:1.4:provided >> [INFO] | +- org.azeckoski:reflectutils:jar:0.9.14:provided >> [INFO] | +- org.apache.velocity:velocity:jar:1.6.2:provided >> [INFO] | | \- commons-lang:commons-lang:jar:2.4:provided >> [INFO] | +- log4j:log4j:jar:1.2.15:provided >> [INFO] | +- org.springframework:spring-core:jar:3.0.2.RELEASE:provided >> [INFO] | | \- org.springframework:spring-asm:jar:3.0.2.RELEASE:provided >> [INFO] | +- org.springframework:spring-beans:jar:3.0.2.RELEASE:provided >> [INFO] | +- org.springframework:spring-context:jar:3.0.2.RELEASE:provided >> [INFO] | | \- >> org.springframework:spring-expression:jar:3.0.2.RELEASE:provided >> >> [INFO] | +- org.springframework:spring-aop:jar:3.0.2.RELEASE:provided >> [INFO] | | \- aopalliance:aopalliance:jar:1.0:provided >> [INFO] | +- org.springframework:spring-orm:jar:3.0.2.RELEASE:provided >> [INFO] | +- org.springframework:spring-tx:jar:3.0.2.RELEASE:provided >> [INFO] | +- org.springframework:spring-jdbc:jar:3.0.2.RELEASE:provided >> [INFO] | +- org.antlr:antlr-runtime:jar:3.2:provided >> [INFO] | | \- org.antlr:stringtemplate:jar:3.2:provided >> [INFO] | +- asm:asm-commons:jar:2.2.3:provided >> [INFO] | | \- asm:asm-tree:jar:2.2.3:provided >> [INFO] | +- asm:asm-util:jar:2.2.3:provided >> [INFO] | +- cglib:cglib-nodep:jar:2.2:provided >> [INFO] | +- ca.uhn.hapi:hapi:jar:0.5:provided >> [INFO] | +- org.openmrs.simpleframework:simple-xml:jar:1.6.1-mod:provided >> [INFO] | +- stax:stax:jar:1.2.0:provided >> [INFO] | +- stax:stax-api:jar:1.0.1:provided >> [INFO] | +- org.openmrs.hibernate:hibernate:jar:3.2.5.ga-mod:provided >> [INFO] | | +- javax.transaction:jta:jar:1.0.1B:provided >> [INFO] | | +- antlr:antlr:jar:2.7.6:provided >> [INFO] | | \- asm:asm:jar:1.5.3:provided >> [INFO] | +- dom4j:dom4j:jar:1.6.1:provided >> [INFO] | +- c3p0:c3p0:jar:0.9.1:provided >> [INFO] | +- net.sf.ehcache:ehcache-core:jar:2.2.0:provided >> [INFO] | +- org.slf4j:jcl-over-slf4j:jar:1.5.6:provided >> [INFO] | +- org.slf4j:slf4j-log4j12:jar:1.5.6:provided >> [INFO] | +- com.thoughtworks.xstream:xstream:jar:1.3.1:provided >> [INFO] | +- javax.mail:mail:jar:1.4.1:provided >> [INFO] | | \- javax.activation:activation:jar:1.1:provided >> [INFO] | +- org.openmrs.liquibase:liquibase-core:jar:1.9.4-mod:provided >> [INFO] | +- xerces:xercesImpl:jar:2.8.0:provided >> [INFO] | +- xml-apis:xml-apis:jar:1.3.03:provided >> [INFO] | \- xml-resolver:xml-resolver:jar:1.1:provided >> [INFO] +- org.openmrs.web:openmrs-web:jar:1.8.0:provided >> [INFO] | +- javax.servlet:servlet-api:jar:2.5:provided >> [INFO] | +- javax.servlet:jsp-api:jar:2.0:provided >> [INFO] | +- javax.servlet:jstl:jar:1.1.2:provided >> [INFO] | +- org.openmrs.directwebremoting:dwr:jar:2.0.5-mod:provided >> [INFO] | +- commons-fileupload:commons-fileupload:jar:1.2.1:provided >> [INFO] | +- net.sf.saxon:saxon:jar:8.7:provided >> [INFO] | +- net.sf.saxon:saxon-dom:jar:8.7:provided >> [INFO] | +- org.springframework:spring-web:jar:3.0.2.RELEASE:provided >> [INFO] | +- org.springframework:spring-webmvc:jar:3.0.2.RELEASE:provided >> [INFO] | | \- >> org.springframework:spring-context-support:jar:3.0.2.RELEASE:pro >> vided >> [INFO] | +- jfree:jfreechart:jar:1.0.12:provided >> [INFO] | | \- jfree:jcommon:jar:1.0.15:provided >> [INFO] | +- mysql:mysql-connector-java:jar:5.1.8:provided >> [INFO] | +- taglibs:request:jar:1.0.1:provided >> [INFO] | +- taglibs:response:jar:1.0.1:provided >> [INFO] | +- taglibs:standard:jar:1.1.2:provided >> [INFO] | +- taglibs:page:jar:1.0.1:provided >> [INFO] | +- org.codehaus.jackson:jackson-core-asl:jar:1.5.0:provided >> [INFO] | \- org.codehaus.jackson:jackson-mapper-asl:jar:1.5.0:provided >> [INFO] +- org.openmrs.api:openmrs-api:test-jar:tests:1.8.0:test >> [INFO] +- org.openmrs.web:openmrs-web:test-jar:tests:1.8.0:test >> [INFO] +- org.openmrs.test:openmrs-test:pom:1.8.0:test >> [INFO] | +- org.springframework:spring-test:jar:3.0.2.RELEASE:test >> [INFO] | +- junit:junit:jar:4.8.1:test >> [INFO] | +- org.databene:databene-benerator:jar:0.5.9:test >> [INFO] | | +- org.databene:databene-webdecs:jar:0.4.9:test >> [INFO] | | | +- org.apache.poi:poi:jar:3.5-beta5:test >> [INFO] | | | \- org.freemarker:freemarker:jar:2.3.9:test >> [INFO] | | +- org.databene:databene-commons:jar:0.4.9:test >> [INFO] | | | \- commons-logging:commons-logging:jar:1.1:test >> [INFO] | | | +- logkit:logkit:jar:1.0.1:test >> [INFO] | | | \- avalon-framework:avalon-framework:jar:4.1.3:test >> [INFO] | | +- org.databene:databene-gui:jar:0.1.9:test >> [INFO] | | +- net.sourceforge.jtds:jtds:jar:1.2.2:test >> [INFO] | | +- org.apache.derby:derbyclient:jar:10.4.2.0:test >> [INFO] | | \- postgresql:postgresql:jar:8.3-603.jdbc4:test >> [INFO] | +- com.h2database:h2:jar:1.2.135:test >> [INFO] | +- org.dbunit:dbunit:jar:2.4.7:test >> [INFO] | \- xmlunit:xmlunit:jar:1.3:test >> [INFO] +- ca.uhn.hapi:hapi-base:jar:2.1:compile >> [INFO] | \- org.slf4j:slf4j-api:jar:1.5.6:compile >> [INFO] \- ca.uhn.hapi:hapi-structures-v21:jar:2.1:compile >> [INFO] >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Building Hapi Example Module OMOD 1.0-SNAPSHOT >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] >> [INFO] --- maven-dependency-plugin:2.4:tree (default-cli) @ >> hapiexample-omod --- >> >> [INFO] org.openmrs.module:hapiexample-omod:jar:1.0-SNAPSHOT >> [INFO] +- org.openmrs.module:hapiexample-api:jar:1.0-SNAPSHOT:compile >> [INFO] | +- ca.uhn.hapi:hapi-base:jar:2.1:compile >> [INFO] | | \- org.slf4j:slf4j-api:jar:1.5.6:compile >> [INFO] | \- ca.uhn.hapi:hapi-structures-v21:jar:2.1:compile >> [INFO] +- org.openmrs.api:openmrs-api:jar:1.8.0:provided >> [INFO] | +- commons-collections:commons-collections:jar:3.2:provided >> [INFO] | +- commons-beanutils:commons-beanutils:jar:1.7.0:provided >> [INFO] | +- commons-io:commons-io:jar:1.4:provided >> [INFO] | +- org.azeckoski:reflectutils:jar:0.9.14:provided >> [INFO] | +- org.apache.velocity:velocity:jar:1.6.2:provided >> [INFO] | | \- commons-lang:commons-lang:jar:2.4:provided >> [INFO] | +- log4j:log4j:jar:1.2.15:provided >> [INFO] | +- org.springframework:spring-core:jar:3.0.2.RELEASE:provided >> [INFO] | | \- org.springframework:spring-asm:jar:3.0.2.RELEASE:provided >> [INFO] | +- org.springframework:spring-beans:jar:3.0.2.RELEASE:provided >> [INFO] | +- org.springframework:spring-context:jar:3.0.2.RELEASE:provided >> [INFO] | | \- >> org.springframework:spring-expression:jar:3.0.2.RELEASE:provided >> >> [INFO] | +- org.springframework:spring-aop:jar:3.0.2.RELEASE:provided >> [INFO] | | \- aopalliance:aopalliance:jar:1.0:provided >> [INFO] | +- org.springframework:spring-orm:jar:3.0.2.RELEASE:provided >> [INFO] | +- org.springframework:spring-tx:jar:3.0.2.RELEASE:provided >> [INFO] | +- org.springframework:spring-jdbc:jar:3.0.2.RELEASE:provided >> [INFO] | +- org.antlr:antlr-runtime:jar:3.2:provided >> [INFO] | | \- org.antlr:stringtemplate:jar:3.2:provided >> [INFO] | +- asm:asm-commons:jar:2.2.3:provided >> [INFO] | | \- asm:asm-tree:jar:2.2.3:provided >> [INFO] | +- asm:asm-util:jar:2.2.3:provided >> [INFO] | +- cglib:cglib-nodep:jar:2.2:provided >> [INFO] | +- ca.uhn.hapi:hapi:jar:0.5:provided >> [INFO] | +- org.openmrs.simpleframework:simple-xml:jar:1.6.1-mod:provided >> [INFO] | +- stax:stax:jar:1.2.0:provided >> [INFO] | +- stax:stax-api:jar:1.0.1:provided >> [INFO] | +- org.openmrs.hibernate:hibernate:jar:3.2.5.ga-mod:provided >> [INFO] | | +- javax.transaction:jta:jar:1.0.1B:provided >> [INFO] | | +- antlr:antlr:jar:2.7.6:provided >> [INFO] | | \- asm:asm:jar:1.5.3:provided >> [INFO] | +- dom4j:dom4j:jar:1.6.1:provided >> [INFO] | +- c3p0:c3p0:jar:0.9.1:provided >> [INFO] | +- net.sf.ehcache:ehcache-core:jar:2.2.0:provided >> [INFO] | +- org.slf4j:jcl-over-slf4j:jar:1.5.6:provided >> [INFO] | +- org.slf4j:slf4j-log4j12:jar:1.5.6:provided >> [INFO] | +- com.thoughtworks.xstream:xstream:jar:1.3.1:provided >> [INFO] | +- javax.mail:mail:jar:1.4.1:provided >> [INFO] | | \- javax.activation:activation:jar:1.1:provided >> [INFO] | +- org.openmrs.liquibase:liquibase-core:jar:1.9.4-mod:provided >> [INFO] | +- xerces:xercesImpl:jar:2.8.0:provided >> [INFO] | +- xml-apis:xml-apis:jar:1.3.03:provided >> [INFO] | \- xml-resolver:xml-resolver:jar:1.1:provided >> [INFO] +- org.openmrs.web:openmrs-web:jar:1.8.0:provided >> [INFO] | +- javax.servlet:servlet-api:jar:2.5:provided >> [INFO] | +- javax.servlet:jsp-api:jar:2.0:provided >> [INFO] | +- javax.servlet:jstl:jar:1.1.2:provided >> [INFO] | +- org.openmrs.directwebremoting:dwr:jar:2.0.5-mod:provided >> [INFO] | +- commons-fileupload:commons-fileupload:jar:1.2.1:provided >> [INFO] | +- net.sf.saxon:saxon:jar:8.7:provided >> [INFO] | +- net.sf.saxon:saxon-dom:jar:8.7:provided >> [INFO] | +- org.springframework:spring-web:jar:3.0.2.RELEASE:provided >> [INFO] | +- org.springframework:spring-webmvc:jar:3.0.2.RELEASE:provided >> [INFO] | | \- >> org.springframework:spring-context-support:jar:3.0.2.RELEASE:pro >> vided >> [INFO] | +- jfree:jfreechart:jar:1.0.12:provided >> [INFO] | | \- jfree:jcommon:jar:1.0.15:provided >> [INFO] | +- mysql:mysql-connector-java:jar:5.1.8:provided >> [INFO] | +- taglibs:request:jar:1.0.1:provided >> [INFO] | +- taglibs:response:jar:1.0.1:provided >> [INFO] | +- taglibs:standard:jar:1.1.2:provided >> [INFO] | +- taglibs:page:jar:1.0.1:provided >> [INFO] | +- org.codehaus.jackson:jackson-core-asl:jar:1.5.0:provided >> [INFO] | \- org.codehaus.jackson:jackson-mapper-asl:jar:1.5.0:provided >> [INFO] +- org.openmrs.api:openmrs-api:test-jar:tests:1.8.0:test >> [INFO] +- org.openmrs.web:openmrs-web:test-jar:tests:1.8.0:test >> [INFO] \- org.openmrs.test:openmrs-test:pom:1.8.0:test >> [INFO] +- org.springframework:spring-test:jar:3.0.2.RELEASE:test >> [INFO] +- junit:junit:jar:4.8.1:test >> [INFO] +- org.databene:databene-benerator:jar:0.5.9:test >> [INFO] | +- org.databene:databene-webdecs:jar:0.4.9:test >> [INFO] | | +- org.apache.poi:poi:jar:3.5-beta5:test >> [INFO] | | \- org.freemarker:freemarker:jar:2.3.9:test >> [INFO] | +- org.databene:databene-commons:jar:0.4.9:test >> [INFO] | | \- commons-logging:commons-logging:jar:1.1:test >> [INFO] | | +- logkit:logkit:jar:1.0.1:test >> [INFO] | | \- avalon-framework:avalon-framework:jar:4.1.3:test >> [INFO] | +- org.databene:databene-gui:jar:0.1.9:test >> [INFO] | +- net.sourceforge.jtds:jtds:jar:1.2.2:test >> [INFO] | +- org.apache.derby:derbyclient:jar:10.4.2.0:test >> [INFO] | \- postgresql:postgresql:jar:8.3-603.jdbc4:test >> [INFO] +- com.h2database:h2:jar:1.2.135:test >> [INFO] +- org.dbunit:dbunit:jar:2.4.7:test >> [INFO] \- xmlunit:xmlunit:jar:1.3:test >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Reactor Summary: >> [INFO] >> [INFO] Hapi Example Module ............................... SUCCESS >> [8.763s] >> [INFO] Hapi Example Module API ........................... SUCCESS >> [5.372s] >> [INFO] Hapi Example Module OMOD .......................... SUCCESS >> [0.568s] >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] BUILD SUCCESS >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Total time: 18.840s >> [INFO] Finished at: Tue May 20 16:53:19 IST 2014 >> [INFO] Final Memory: 9M/22M >> [INFO] >> ------------------------------------------------------------------------ >> E:\GSOC2014\hapiexample> >> >> Thanks & Regards >> Sara Fatima >> >> >> >> On Tue, May 20, 2014 at 4:33 PM, Christian Ohr <chr...@gm...>wrote: >> >>> You need a log4j.xml to make the warnings go away. >>> And you still seem to have version conflicts in your project. Have you >>> run mvn dependency:tree to check? >>> >>> Christian >>> >>> >>> 2014-05-20 12:45 GMT+02:00 Sara Fatima <sar...@gm...>: >>> >>>> Hi >>>> >>>> I have corrected the version numbers and could successfully compile. >>>> >>>> However when I am trying to run the class I have getting following >>>> errors. >>>> >>>> log4j:WARN No appenders could be found for logger >>>> (ca.uhn.hl7v2.parser.DefaultModelClassFactory). >>>> log4j:WARN Please initialize the log4j system properly. >>>> 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.hapiexample.CreateAMessage.main(CreateAMessage.java:33) >>>> >>>> >>>> Regards >>>> Sara Fatima >>>> >>>> >>>> >>>> >> >> >> ------------------------------------------------------------------------------ >> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE >> Instantly run your Selenium tests across 300+ browser/OS combos. >> Get unparalleled scalability from the best Selenium testing platform >> available >> Simple to use. Nothing to install. Get started now for free." >> http://p.sf.net/sfu/SauceLabs >> _______________________________________________ >> Hl7api-devel mailing list >> Hl7...@li... >> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >> >> > |
From: James A. <ja...@ja...> - 2014-05-20 13:15:06
|
Hi Sara, The issue likely lies in the following part of the dependency tree you posted: [INFO] +- org.openmrs.api:openmrs-api:jar:1.8.0:provided (....snip....) [INFO] | +- ca.uhn.hapi:hapi:jar:0.5:provided What this means is that the OpenMRS library has a dependency on a very old version of HAPI, and Maven is pulling that old version into your build even though you are asking for a newer version because OpenMRN is asking for the older one. If it's possible to upgrade OpenMRSto use a newer version of HAPI that is probably the best thing to do. Alternately you can try specifying in your own project pom for HAPI to be excluded from OpenMRS, by adding an exclusion section to the openmrs dependency. That would look something like this (typed from memory, so it may not be 100% correct): <dependency> <groupId>org.openmrs.api</groupId> <artifactId>openmrs-api</artifactId> <version>1.8.0</version> <exclusions> <exclusion> <groupId>ca.uhn.hapi</groupId> <artifactId>hapi</artifactId> </exclusion> </exclusions> </dependency> For log4j, the contents of the file will depend on your specific application so it might be worth googling log4j and reading the intro. It's just a logging framework, so it's not critical to getting things working but you will have a much easier time once it is producing useful results. Here is a simple example: http://www.roseindia.net/tutorials/log4j/log4j-xml.shtml Cheers, James On Tue, May 20, 2014 at 7:27 AM, Sara Fatima <sar...@gm...> wrote: > Hi > Where do I get the log4j.xml file? > > Also I tried running mvn dependency:tree Here is what I got. I can't > understand what I am supposed to look into this for? > > E:\GSOC2014\hapiexample>mvn dependency:tree > [INFO] Scanning for projects... > [INFO] > ------------------------------------------------------------------------ > [INFO] Reactor Build Order: > [INFO] > [INFO] Hapi Example Module > [INFO] Hapi Example Module API > [INFO] Hapi Example Module OMOD > [INFO] > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Hapi Example Module 1.0-SNAPSHOT > [INFO] > ------------------------------------------------------------------------ > [INFO] > [INFO] --- maven-dependency-plugin:2.4:tree (default-cli) @ hapiexample --- > [INFO] org.openmrs.module:hapiexample:pom:1.0-SNAPSHOT > [INFO] > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Hapi Example Module API 1.0-SNAPSHOT > [INFO] > ------------------------------------------------------------------------ > [INFO] > [INFO] --- maven-dependency-plugin:2.4:tree (default-cli) @ > hapiexample-api --- > [INFO] org.openmrs.module:hapiexample-api:jar:1.0-SNAPSHOT > [INFO] +- org.openmrs.api:openmrs-api:jar:1.8.0:provided > [INFO] | +- commons-collections:commons-collections:jar:3.2:provided > [INFO] | +- commons-beanutils:commons-beanutils:jar:1.7.0:provided > [INFO] | +- commons-io:commons-io:jar:1.4:provided > [INFO] | +- org.azeckoski:reflectutils:jar:0.9.14:provided > [INFO] | +- org.apache.velocity:velocity:jar:1.6.2:provided > [INFO] | | \- commons-lang:commons-lang:jar:2.4:provided > [INFO] | +- log4j:log4j:jar:1.2.15:provided > [INFO] | +- org.springframework:spring-core:jar:3.0.2.RELEASE:provided > [INFO] | | \- org.springframework:spring-asm:jar:3.0.2.RELEASE:provided > [INFO] | +- org.springframework:spring-beans:jar:3.0.2.RELEASE:provided > [INFO] | +- org.springframework:spring-context:jar:3.0.2.RELEASE:provided > [INFO] | | \- > org.springframework:spring-expression:jar:3.0.2.RELEASE:provided > > [INFO] | +- org.springframework:spring-aop:jar:3.0.2.RELEASE:provided > [INFO] | | \- aopalliance:aopalliance:jar:1.0:provided > [INFO] | +- org.springframework:spring-orm:jar:3.0.2.RELEASE:provided > [INFO] | +- org.springframework:spring-tx:jar:3.0.2.RELEASE:provided > [INFO] | +- org.springframework:spring-jdbc:jar:3.0.2.RELEASE:provided > [INFO] | +- org.antlr:antlr-runtime:jar:3.2:provided > [INFO] | | \- org.antlr:stringtemplate:jar:3.2:provided > [INFO] | +- asm:asm-commons:jar:2.2.3:provided > [INFO] | | \- asm:asm-tree:jar:2.2.3:provided > [INFO] | +- asm:asm-util:jar:2.2.3:provided > [INFO] | +- cglib:cglib-nodep:jar:2.2:provided > [INFO] | +- ca.uhn.hapi:hapi:jar:0.5:provided > [INFO] | +- org.openmrs.simpleframework:simple-xml:jar:1.6.1-mod:provided > [INFO] | +- stax:stax:jar:1.2.0:provided > [INFO] | +- stax:stax-api:jar:1.0.1:provided > [INFO] | +- org.openmrs.hibernate:hibernate:jar:3.2.5.ga-mod:provided > [INFO] | | +- javax.transaction:jta:jar:1.0.1B:provided > [INFO] | | +- antlr:antlr:jar:2.7.6:provided > [INFO] | | \- asm:asm:jar:1.5.3:provided > [INFO] | +- dom4j:dom4j:jar:1.6.1:provided > [INFO] | +- c3p0:c3p0:jar:0.9.1:provided > [INFO] | +- net.sf.ehcache:ehcache-core:jar:2.2.0:provided > [INFO] | +- org.slf4j:jcl-over-slf4j:jar:1.5.6:provided > [INFO] | +- org.slf4j:slf4j-log4j12:jar:1.5.6:provided > [INFO] | +- com.thoughtworks.xstream:xstream:jar:1.3.1:provided > [INFO] | +- javax.mail:mail:jar:1.4.1:provided > [INFO] | | \- javax.activation:activation:jar:1.1:provided > [INFO] | +- org.openmrs.liquibase:liquibase-core:jar:1.9.4-mod:provided > [INFO] | +- xerces:xercesImpl:jar:2.8.0:provided > [INFO] | +- xml-apis:xml-apis:jar:1.3.03:provided > [INFO] | \- xml-resolver:xml-resolver:jar:1.1:provided > [INFO] +- org.openmrs.web:openmrs-web:jar:1.8.0:provided > [INFO] | +- javax.servlet:servlet-api:jar:2.5:provided > [INFO] | +- javax.servlet:jsp-api:jar:2.0:provided > [INFO] | +- javax.servlet:jstl:jar:1.1.2:provided > [INFO] | +- org.openmrs.directwebremoting:dwr:jar:2.0.5-mod:provided > [INFO] | +- commons-fileupload:commons-fileupload:jar:1.2.1:provided > [INFO] | +- net.sf.saxon:saxon:jar:8.7:provided > [INFO] | +- net.sf.saxon:saxon-dom:jar:8.7:provided > [INFO] | +- org.springframework:spring-web:jar:3.0.2.RELEASE:provided > [INFO] | +- org.springframework:spring-webmvc:jar:3.0.2.RELEASE:provided > [INFO] | | \- > org.springframework:spring-context-support:jar:3.0.2.RELEASE:pro > vided > [INFO] | +- jfree:jfreechart:jar:1.0.12:provided > [INFO] | | \- jfree:jcommon:jar:1.0.15:provided > [INFO] | +- mysql:mysql-connector-java:jar:5.1.8:provided > [INFO] | +- taglibs:request:jar:1.0.1:provided > [INFO] | +- taglibs:response:jar:1.0.1:provided > [INFO] | +- taglibs:standard:jar:1.1.2:provided > [INFO] | +- taglibs:page:jar:1.0.1:provided > [INFO] | +- org.codehaus.jackson:jackson-core-asl:jar:1.5.0:provided > [INFO] | \- org.codehaus.jackson:jackson-mapper-asl:jar:1.5.0:provided > [INFO] +- org.openmrs.api:openmrs-api:test-jar:tests:1.8.0:test > [INFO] +- org.openmrs.web:openmrs-web:test-jar:tests:1.8.0:test > [INFO] +- org.openmrs.test:openmrs-test:pom:1.8.0:test > [INFO] | +- org.springframework:spring-test:jar:3.0.2.RELEASE:test > [INFO] | +- junit:junit:jar:4.8.1:test > [INFO] | +- org.databene:databene-benerator:jar:0.5.9:test > [INFO] | | +- org.databene:databene-webdecs:jar:0.4.9:test > [INFO] | | | +- org.apache.poi:poi:jar:3.5-beta5:test > [INFO] | | | \- org.freemarker:freemarker:jar:2.3.9:test > [INFO] | | +- org.databene:databene-commons:jar:0.4.9:test > [INFO] | | | \- commons-logging:commons-logging:jar:1.1:test > [INFO] | | | +- logkit:logkit:jar:1.0.1:test > [INFO] | | | \- avalon-framework:avalon-framework:jar:4.1.3:test > [INFO] | | +- org.databene:databene-gui:jar:0.1.9:test > [INFO] | | +- net.sourceforge.jtds:jtds:jar:1.2.2:test > [INFO] | | +- org.apache.derby:derbyclient:jar:10.4.2.0:test > [INFO] | | \- postgresql:postgresql:jar:8.3-603.jdbc4:test > [INFO] | +- com.h2database:h2:jar:1.2.135:test > [INFO] | +- org.dbunit:dbunit:jar:2.4.7:test > [INFO] | \- xmlunit:xmlunit:jar:1.3:test > [INFO] +- ca.uhn.hapi:hapi-base:jar:2.1:compile > [INFO] | \- org.slf4j:slf4j-api:jar:1.5.6:compile > [INFO] \- ca.uhn.hapi:hapi-structures-v21:jar:2.1:compile > [INFO] > [INFO] > ------------------------------------------------------------------------ > [INFO] Building Hapi Example Module OMOD 1.0-SNAPSHOT > [INFO] > ------------------------------------------------------------------------ > [INFO] > [INFO] --- maven-dependency-plugin:2.4:tree (default-cli) @ > hapiexample-omod --- > > [INFO] org.openmrs.module:hapiexample-omod:jar:1.0-SNAPSHOT > [INFO] +- org.openmrs.module:hapiexample-api:jar:1.0-SNAPSHOT:compile > [INFO] | +- ca.uhn.hapi:hapi-base:jar:2.1:compile > [INFO] | | \- org.slf4j:slf4j-api:jar:1.5.6:compile > [INFO] | \- ca.uhn.hapi:hapi-structures-v21:jar:2.1:compile > [INFO] +- org.openmrs.api:openmrs-api:jar:1.8.0:provided > [INFO] | +- commons-collections:commons-collections:jar:3.2:provided > [INFO] | +- commons-beanutils:commons-beanutils:jar:1.7.0:provided > [INFO] | +- commons-io:commons-io:jar:1.4:provided > [INFO] | +- org.azeckoski:reflectutils:jar:0.9.14:provided > [INFO] | +- org.apache.velocity:velocity:jar:1.6.2:provided > [INFO] | | \- commons-lang:commons-lang:jar:2.4:provided > [INFO] | +- log4j:log4j:jar:1.2.15:provided > [INFO] | +- org.springframework:spring-core:jar:3.0.2.RELEASE:provided > [INFO] | | \- org.springframework:spring-asm:jar:3.0.2.RELEASE:provided > [INFO] | +- org.springframework:spring-beans:jar:3.0.2.RELEASE:provided > [INFO] | +- org.springframework:spring-context:jar:3.0.2.RELEASE:provided > [INFO] | | \- > org.springframework:spring-expression:jar:3.0.2.RELEASE:provided > > [INFO] | +- org.springframework:spring-aop:jar:3.0.2.RELEASE:provided > [INFO] | | \- aopalliance:aopalliance:jar:1.0:provided > [INFO] | +- org.springframework:spring-orm:jar:3.0.2.RELEASE:provided > [INFO] | +- org.springframework:spring-tx:jar:3.0.2.RELEASE:provided > [INFO] | +- org.springframework:spring-jdbc:jar:3.0.2.RELEASE:provided > [INFO] | +- org.antlr:antlr-runtime:jar:3.2:provided > [INFO] | | \- org.antlr:stringtemplate:jar:3.2:provided > [INFO] | +- asm:asm-commons:jar:2.2.3:provided > [INFO] | | \- asm:asm-tree:jar:2.2.3:provided > [INFO] | +- asm:asm-util:jar:2.2.3:provided > [INFO] | +- cglib:cglib-nodep:jar:2.2:provided > [INFO] | +- ca.uhn.hapi:hapi:jar:0.5:provided > [INFO] | +- org.openmrs.simpleframework:simple-xml:jar:1.6.1-mod:provided > [INFO] | +- stax:stax:jar:1.2.0:provided > [INFO] | +- stax:stax-api:jar:1.0.1:provided > [INFO] | +- org.openmrs.hibernate:hibernate:jar:3.2.5.ga-mod:provided > [INFO] | | +- javax.transaction:jta:jar:1.0.1B:provided > [INFO] | | +- antlr:antlr:jar:2.7.6:provided > [INFO] | | \- asm:asm:jar:1.5.3:provided > [INFO] | +- dom4j:dom4j:jar:1.6.1:provided > [INFO] | +- c3p0:c3p0:jar:0.9.1:provided > [INFO] | +- net.sf.ehcache:ehcache-core:jar:2.2.0:provided > [INFO] | +- org.slf4j:jcl-over-slf4j:jar:1.5.6:provided > [INFO] | +- org.slf4j:slf4j-log4j12:jar:1.5.6:provided > [INFO] | +- com.thoughtworks.xstream:xstream:jar:1.3.1:provided > [INFO] | +- javax.mail:mail:jar:1.4.1:provided > [INFO] | | \- javax.activation:activation:jar:1.1:provided > [INFO] | +- org.openmrs.liquibase:liquibase-core:jar:1.9.4-mod:provided > [INFO] | +- xerces:xercesImpl:jar:2.8.0:provided > [INFO] | +- xml-apis:xml-apis:jar:1.3.03:provided > [INFO] | \- xml-resolver:xml-resolver:jar:1.1:provided > [INFO] +- org.openmrs.web:openmrs-web:jar:1.8.0:provided > [INFO] | +- javax.servlet:servlet-api:jar:2.5:provided > [INFO] | +- javax.servlet:jsp-api:jar:2.0:provided > [INFO] | +- javax.servlet:jstl:jar:1.1.2:provided > [INFO] | +- org.openmrs.directwebremoting:dwr:jar:2.0.5-mod:provided > [INFO] | +- commons-fileupload:commons-fileupload:jar:1.2.1:provided > [INFO] | +- net.sf.saxon:saxon:jar:8.7:provided > [INFO] | +- net.sf.saxon:saxon-dom:jar:8.7:provided > [INFO] | +- org.springframework:spring-web:jar:3.0.2.RELEASE:provided > [INFO] | +- org.springframework:spring-webmvc:jar:3.0.2.RELEASE:provided > [INFO] | | \- > org.springframework:spring-context-support:jar:3.0.2.RELEASE:pro > vided > [INFO] | +- jfree:jfreechart:jar:1.0.12:provided > [INFO] | | \- jfree:jcommon:jar:1.0.15:provided > [INFO] | +- mysql:mysql-connector-java:jar:5.1.8:provided > [INFO] | +- taglibs:request:jar:1.0.1:provided > [INFO] | +- taglibs:response:jar:1.0.1:provided > [INFO] | +- taglibs:standard:jar:1.1.2:provided > [INFO] | +- taglibs:page:jar:1.0.1:provided > [INFO] | +- org.codehaus.jackson:jackson-core-asl:jar:1.5.0:provided > [INFO] | \- org.codehaus.jackson:jackson-mapper-asl:jar:1.5.0:provided > [INFO] +- org.openmrs.api:openmrs-api:test-jar:tests:1.8.0:test > [INFO] +- org.openmrs.web:openmrs-web:test-jar:tests:1.8.0:test > [INFO] \- org.openmrs.test:openmrs-test:pom:1.8.0:test > [INFO] +- org.springframework:spring-test:jar:3.0.2.RELEASE:test > [INFO] +- junit:junit:jar:4.8.1:test > [INFO] +- org.databene:databene-benerator:jar:0.5.9:test > [INFO] | +- org.databene:databene-webdecs:jar:0.4.9:test > [INFO] | | +- org.apache.poi:poi:jar:3.5-beta5:test > [INFO] | | \- org.freemarker:freemarker:jar:2.3.9:test > [INFO] | +- org.databene:databene-commons:jar:0.4.9:test > [INFO] | | \- commons-logging:commons-logging:jar:1.1:test > [INFO] | | +- logkit:logkit:jar:1.0.1:test > [INFO] | | \- avalon-framework:avalon-framework:jar:4.1.3:test > [INFO] | +- org.databene:databene-gui:jar:0.1.9:test > [INFO] | +- net.sourceforge.jtds:jtds:jar:1.2.2:test > [INFO] | +- org.apache.derby:derbyclient:jar:10.4.2.0:test > [INFO] | \- postgresql:postgresql:jar:8.3-603.jdbc4:test > [INFO] +- com.h2database:h2:jar:1.2.135:test > [INFO] +- org.dbunit:dbunit:jar:2.4.7:test > [INFO] \- xmlunit:xmlunit:jar:1.3:test > [INFO] > ------------------------------------------------------------------------ > [INFO] Reactor Summary: > [INFO] > [INFO] Hapi Example Module ............................... SUCCESS [8.763s] > [INFO] Hapi Example Module API ........................... SUCCESS [5.372s] > [INFO] Hapi Example Module OMOD .......................... SUCCESS [0.568s] > [INFO] > ------------------------------------------------------------------------ > [INFO] BUILD SUCCESS > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: 18.840s > [INFO] Finished at: Tue May 20 16:53:19 IST 2014 > [INFO] Final Memory: 9M/22M > [INFO] > ------------------------------------------------------------------------ > E:\GSOC2014\hapiexample> > > Thanks & Regards > Sara Fatima > > > > On Tue, May 20, 2014 at 4:33 PM, Christian Ohr <chr...@gm...>wrote: > >> You need a log4j.xml to make the warnings go away. >> And you still seem to have version conflicts in your project. Have you >> run mvn dependency:tree to check? >> >> Christian >> >> >> 2014-05-20 12:45 GMT+02:00 Sara Fatima <sar...@gm...>: >> >>> Hi >>> >>> I have corrected the version numbers and could successfully compile. >>> >>> However when I am trying to run the class I have getting following >>> errors. >>> >>> log4j:WARN No appenders could be found for logger >>> (ca.uhn.hl7v2.parser.DefaultModelClassFactory). >>> log4j:WARN Please initialize the log4j system properly. >>> 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.hapiexample.CreateAMessage.main(CreateAMessage.java:33) >>> >>> >>> Regards >>> Sara Fatima >>> >>> >>> >>> > > > ------------------------------------------------------------------------------ > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE > Instantly run your Selenium tests across 300+ browser/OS combos. > Get unparalleled scalability from the best Selenium testing platform > available > Simple to use. Nothing to install. Get started now for free." > http://p.sf.net/sfu/SauceLabs > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > |
From: Sara F. <sar...@gm...> - 2014-05-20 11:27:40
|
Hi Where do I get the log4j.xml file? Also I tried running mvn dependency:tree Here is what I got. I can't understand what I am supposed to look into this for? E:\GSOC2014\hapiexample>mvn dependency:tree [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] Hapi Example Module [INFO] Hapi Example Module API [INFO] Hapi Example Module OMOD [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Hapi Example Module 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-dependency-plugin:2.4:tree (default-cli) @ hapiexample --- [INFO] org.openmrs.module:hapiexample:pom:1.0-SNAPSHOT [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Hapi Example Module API 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-dependency-plugin:2.4:tree (default-cli) @ hapiexample-api --- [INFO] org.openmrs.module:hapiexample-api:jar:1.0-SNAPSHOT [INFO] +- org.openmrs.api:openmrs-api:jar:1.8.0:provided [INFO] | +- commons-collections:commons-collections:jar:3.2:provided [INFO] | +- commons-beanutils:commons-beanutils:jar:1.7.0:provided [INFO] | +- commons-io:commons-io:jar:1.4:provided [INFO] | +- org.azeckoski:reflectutils:jar:0.9.14:provided [INFO] | +- org.apache.velocity:velocity:jar:1.6.2:provided [INFO] | | \- commons-lang:commons-lang:jar:2.4:provided [INFO] | +- log4j:log4j:jar:1.2.15:provided [INFO] | +- org.springframework:spring-core:jar:3.0.2.RELEASE:provided [INFO] | | \- org.springframework:spring-asm:jar:3.0.2.RELEASE:provided [INFO] | +- org.springframework:spring-beans:jar:3.0.2.RELEASE:provided [INFO] | +- org.springframework:spring-context:jar:3.0.2.RELEASE:provided [INFO] | | \- org.springframework:spring-expression:jar:3.0.2.RELEASE:provided [INFO] | +- org.springframework:spring-aop:jar:3.0.2.RELEASE:provided [INFO] | | \- aopalliance:aopalliance:jar:1.0:provided [INFO] | +- org.springframework:spring-orm:jar:3.0.2.RELEASE:provided [INFO] | +- org.springframework:spring-tx:jar:3.0.2.RELEASE:provided [INFO] | +- org.springframework:spring-jdbc:jar:3.0.2.RELEASE:provided [INFO] | +- org.antlr:antlr-runtime:jar:3.2:provided [INFO] | | \- org.antlr:stringtemplate:jar:3.2:provided [INFO] | +- asm:asm-commons:jar:2.2.3:provided [INFO] | | \- asm:asm-tree:jar:2.2.3:provided [INFO] | +- asm:asm-util:jar:2.2.3:provided [INFO] | +- cglib:cglib-nodep:jar:2.2:provided [INFO] | +- ca.uhn.hapi:hapi:jar:0.5:provided [INFO] | +- org.openmrs.simpleframework:simple-xml:jar:1.6.1-mod:provided [INFO] | +- stax:stax:jar:1.2.0:provided [INFO] | +- stax:stax-api:jar:1.0.1:provided [INFO] | +- org.openmrs.hibernate:hibernate:jar:3.2.5.ga-mod:provided [INFO] | | +- javax.transaction:jta:jar:1.0.1B:provided [INFO] | | +- antlr:antlr:jar:2.7.6:provided [INFO] | | \- asm:asm:jar:1.5.3:provided [INFO] | +- dom4j:dom4j:jar:1.6.1:provided [INFO] | +- c3p0:c3p0:jar:0.9.1:provided [INFO] | +- net.sf.ehcache:ehcache-core:jar:2.2.0:provided [INFO] | +- org.slf4j:jcl-over-slf4j:jar:1.5.6:provided [INFO] | +- org.slf4j:slf4j-log4j12:jar:1.5.6:provided [INFO] | +- com.thoughtworks.xstream:xstream:jar:1.3.1:provided [INFO] | +- javax.mail:mail:jar:1.4.1:provided [INFO] | | \- javax.activation:activation:jar:1.1:provided [INFO] | +- org.openmrs.liquibase:liquibase-core:jar:1.9.4-mod:provided [INFO] | +- xerces:xercesImpl:jar:2.8.0:provided [INFO] | +- xml-apis:xml-apis:jar:1.3.03:provided [INFO] | \- xml-resolver:xml-resolver:jar:1.1:provided [INFO] +- org.openmrs.web:openmrs-web:jar:1.8.0:provided [INFO] | +- javax.servlet:servlet-api:jar:2.5:provided [INFO] | +- javax.servlet:jsp-api:jar:2.0:provided [INFO] | +- javax.servlet:jstl:jar:1.1.2:provided [INFO] | +- org.openmrs.directwebremoting:dwr:jar:2.0.5-mod:provided [INFO] | +- commons-fileupload:commons-fileupload:jar:1.2.1:provided [INFO] | +- net.sf.saxon:saxon:jar:8.7:provided [INFO] | +- net.sf.saxon:saxon-dom:jar:8.7:provided [INFO] | +- org.springframework:spring-web:jar:3.0.2.RELEASE:provided [INFO] | +- org.springframework:spring-webmvc:jar:3.0.2.RELEASE:provided [INFO] | | \- org.springframework:spring-context-support:jar:3.0.2.RELEASE:pro vided [INFO] | +- jfree:jfreechart:jar:1.0.12:provided [INFO] | | \- jfree:jcommon:jar:1.0.15:provided [INFO] | +- mysql:mysql-connector-java:jar:5.1.8:provided [INFO] | +- taglibs:request:jar:1.0.1:provided [INFO] | +- taglibs:response:jar:1.0.1:provided [INFO] | +- taglibs:standard:jar:1.1.2:provided [INFO] | +- taglibs:page:jar:1.0.1:provided [INFO] | +- org.codehaus.jackson:jackson-core-asl:jar:1.5.0:provided [INFO] | \- org.codehaus.jackson:jackson-mapper-asl:jar:1.5.0:provided [INFO] +- org.openmrs.api:openmrs-api:test-jar:tests:1.8.0:test [INFO] +- org.openmrs.web:openmrs-web:test-jar:tests:1.8.0:test [INFO] +- org.openmrs.test:openmrs-test:pom:1.8.0:test [INFO] | +- org.springframework:spring-test:jar:3.0.2.RELEASE:test [INFO] | +- junit:junit:jar:4.8.1:test [INFO] | +- org.databene:databene-benerator:jar:0.5.9:test [INFO] | | +- org.databene:databene-webdecs:jar:0.4.9:test [INFO] | | | +- org.apache.poi:poi:jar:3.5-beta5:test [INFO] | | | \- org.freemarker:freemarker:jar:2.3.9:test [INFO] | | +- org.databene:databene-commons:jar:0.4.9:test [INFO] | | | \- commons-logging:commons-logging:jar:1.1:test [INFO] | | | +- logkit:logkit:jar:1.0.1:test [INFO] | | | \- avalon-framework:avalon-framework:jar:4.1.3:test [INFO] | | +- org.databene:databene-gui:jar:0.1.9:test [INFO] | | +- net.sourceforge.jtds:jtds:jar:1.2.2:test [INFO] | | +- org.apache.derby:derbyclient:jar:10.4.2.0:test [INFO] | | \- postgresql:postgresql:jar:8.3-603.jdbc4:test [INFO] | +- com.h2database:h2:jar:1.2.135:test [INFO] | +- org.dbunit:dbunit:jar:2.4.7:test [INFO] | \- xmlunit:xmlunit:jar:1.3:test [INFO] +- ca.uhn.hapi:hapi-base:jar:2.1:compile [INFO] | \- org.slf4j:slf4j-api:jar:1.5.6:compile [INFO] \- ca.uhn.hapi:hapi-structures-v21:jar:2.1:compile [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Hapi Example Module OMOD 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-dependency-plugin:2.4:tree (default-cli) @ hapiexample-omod --- [INFO] org.openmrs.module:hapiexample-omod:jar:1.0-SNAPSHOT [INFO] +- org.openmrs.module:hapiexample-api:jar:1.0-SNAPSHOT:compile [INFO] | +- ca.uhn.hapi:hapi-base:jar:2.1:compile [INFO] | | \- org.slf4j:slf4j-api:jar:1.5.6:compile [INFO] | \- ca.uhn.hapi:hapi-structures-v21:jar:2.1:compile [INFO] +- org.openmrs.api:openmrs-api:jar:1.8.0:provided [INFO] | +- commons-collections:commons-collections:jar:3.2:provided [INFO] | +- commons-beanutils:commons-beanutils:jar:1.7.0:provided [INFO] | +- commons-io:commons-io:jar:1.4:provided [INFO] | +- org.azeckoski:reflectutils:jar:0.9.14:provided [INFO] | +- org.apache.velocity:velocity:jar:1.6.2:provided [INFO] | | \- commons-lang:commons-lang:jar:2.4:provided [INFO] | +- log4j:log4j:jar:1.2.15:provided [INFO] | +- org.springframework:spring-core:jar:3.0.2.RELEASE:provided [INFO] | | \- org.springframework:spring-asm:jar:3.0.2.RELEASE:provided [INFO] | +- org.springframework:spring-beans:jar:3.0.2.RELEASE:provided [INFO] | +- org.springframework:spring-context:jar:3.0.2.RELEASE:provided [INFO] | | \- org.springframework:spring-expression:jar:3.0.2.RELEASE:provided [INFO] | +- org.springframework:spring-aop:jar:3.0.2.RELEASE:provided [INFO] | | \- aopalliance:aopalliance:jar:1.0:provided [INFO] | +- org.springframework:spring-orm:jar:3.0.2.RELEASE:provided [INFO] | +- org.springframework:spring-tx:jar:3.0.2.RELEASE:provided [INFO] | +- org.springframework:spring-jdbc:jar:3.0.2.RELEASE:provided [INFO] | +- org.antlr:antlr-runtime:jar:3.2:provided [INFO] | | \- org.antlr:stringtemplate:jar:3.2:provided [INFO] | +- asm:asm-commons:jar:2.2.3:provided [INFO] | | \- asm:asm-tree:jar:2.2.3:provided [INFO] | +- asm:asm-util:jar:2.2.3:provided [INFO] | +- cglib:cglib-nodep:jar:2.2:provided [INFO] | +- ca.uhn.hapi:hapi:jar:0.5:provided [INFO] | +- org.openmrs.simpleframework:simple-xml:jar:1.6.1-mod:provided [INFO] | +- stax:stax:jar:1.2.0:provided [INFO] | +- stax:stax-api:jar:1.0.1:provided [INFO] | +- org.openmrs.hibernate:hibernate:jar:3.2.5.ga-mod:provided [INFO] | | +- javax.transaction:jta:jar:1.0.1B:provided [INFO] | | +- antlr:antlr:jar:2.7.6:provided [INFO] | | \- asm:asm:jar:1.5.3:provided [INFO] | +- dom4j:dom4j:jar:1.6.1:provided [INFO] | +- c3p0:c3p0:jar:0.9.1:provided [INFO] | +- net.sf.ehcache:ehcache-core:jar:2.2.0:provided [INFO] | +- org.slf4j:jcl-over-slf4j:jar:1.5.6:provided [INFO] | +- org.slf4j:slf4j-log4j12:jar:1.5.6:provided [INFO] | +- com.thoughtworks.xstream:xstream:jar:1.3.1:provided [INFO] | +- javax.mail:mail:jar:1.4.1:provided [INFO] | | \- javax.activation:activation:jar:1.1:provided [INFO] | +- org.openmrs.liquibase:liquibase-core:jar:1.9.4-mod:provided [INFO] | +- xerces:xercesImpl:jar:2.8.0:provided [INFO] | +- xml-apis:xml-apis:jar:1.3.03:provided [INFO] | \- xml-resolver:xml-resolver:jar:1.1:provided [INFO] +- org.openmrs.web:openmrs-web:jar:1.8.0:provided [INFO] | +- javax.servlet:servlet-api:jar:2.5:provided [INFO] | +- javax.servlet:jsp-api:jar:2.0:provided [INFO] | +- javax.servlet:jstl:jar:1.1.2:provided [INFO] | +- org.openmrs.directwebremoting:dwr:jar:2.0.5-mod:provided [INFO] | +- commons-fileupload:commons-fileupload:jar:1.2.1:provided [INFO] | +- net.sf.saxon:saxon:jar:8.7:provided [INFO] | +- net.sf.saxon:saxon-dom:jar:8.7:provided [INFO] | +- org.springframework:spring-web:jar:3.0.2.RELEASE:provided [INFO] | +- org.springframework:spring-webmvc:jar:3.0.2.RELEASE:provided [INFO] | | \- org.springframework:spring-context-support:jar:3.0.2.RELEASE:pro vided [INFO] | +- jfree:jfreechart:jar:1.0.12:provided [INFO] | | \- jfree:jcommon:jar:1.0.15:provided [INFO] | +- mysql:mysql-connector-java:jar:5.1.8:provided [INFO] | +- taglibs:request:jar:1.0.1:provided [INFO] | +- taglibs:response:jar:1.0.1:provided [INFO] | +- taglibs:standard:jar:1.1.2:provided [INFO] | +- taglibs:page:jar:1.0.1:provided [INFO] | +- org.codehaus.jackson:jackson-core-asl:jar:1.5.0:provided [INFO] | \- org.codehaus.jackson:jackson-mapper-asl:jar:1.5.0:provided [INFO] +- org.openmrs.api:openmrs-api:test-jar:tests:1.8.0:test [INFO] +- org.openmrs.web:openmrs-web:test-jar:tests:1.8.0:test [INFO] \- org.openmrs.test:openmrs-test:pom:1.8.0:test [INFO] +- org.springframework:spring-test:jar:3.0.2.RELEASE:test [INFO] +- junit:junit:jar:4.8.1:test [INFO] +- org.databene:databene-benerator:jar:0.5.9:test [INFO] | +- org.databene:databene-webdecs:jar:0.4.9:test [INFO] | | +- org.apache.poi:poi:jar:3.5-beta5:test [INFO] | | \- org.freemarker:freemarker:jar:2.3.9:test [INFO] | +- org.databene:databene-commons:jar:0.4.9:test [INFO] | | \- commons-logging:commons-logging:jar:1.1:test [INFO] | | +- logkit:logkit:jar:1.0.1:test [INFO] | | \- avalon-framework:avalon-framework:jar:4.1.3:test [INFO] | +- org.databene:databene-gui:jar:0.1.9:test [INFO] | +- net.sourceforge.jtds:jtds:jar:1.2.2:test [INFO] | +- org.apache.derby:derbyclient:jar:10.4.2.0:test [INFO] | \- postgresql:postgresql:jar:8.3-603.jdbc4:test [INFO] +- com.h2database:h2:jar:1.2.135:test [INFO] +- org.dbunit:dbunit:jar:2.4.7:test [INFO] \- xmlunit:xmlunit:jar:1.3:test [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] Hapi Example Module ............................... SUCCESS [8.763s] [INFO] Hapi Example Module API ........................... SUCCESS [5.372s] [INFO] Hapi Example Module OMOD .......................... SUCCESS [0.568s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 18.840s [INFO] Finished at: Tue May 20 16:53:19 IST 2014 [INFO] Final Memory: 9M/22M [INFO] ------------------------------------------------------------------------ E:\GSOC2014\hapiexample> Thanks & Regards Sara Fatima On Tue, May 20, 2014 at 4:33 PM, Christian Ohr <chr...@gm...>wrote: > You need a log4j.xml to make the warnings go away. > And you still seem to have version conflicts in your project. Have you run > mvn dependency:tree to check? > > Christian > > > 2014-05-20 12:45 GMT+02:00 Sara Fatima <sar...@gm...>: > >> Hi >> >> I have corrected the version numbers and could successfully compile. >> >> However when I am trying to run the class I have getting following errors. >> >> log4j:WARN No appenders could be found for logger >> (ca.uhn.hl7v2.parser.DefaultModelClassFactory). >> log4j:WARN Please initialize the log4j system properly. >> 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.hapiexample.CreateAMessage.main(CreateAMessage.java:33) >> >> >> Regards >> Sara Fatima >> >> >> >> |
From: Christian O. <chr...@gm...> - 2014-05-20 11:03:17
|
You need a log4j.xml to make the warnings go away. And you still seem to have version conflicts in your project. Have you run mvn dependency:tree to check? Christian 2014-05-20 12:45 GMT+02:00 Sara Fatima <sar...@gm...>: > Hi > > I have corrected the version numbers and could successfully compile. > > However when I am trying to run the class I have getting following errors. > > log4j:WARN No appenders could be found for logger > (ca.uhn.hl7v2.parser.DefaultModelClassFactory). > log4j:WARN Please initialize the log4j system properly. > 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.hapiexample.CreateAMessage.main(CreateAMessage.java:33) > > > Regards > Sara Fatima > > > > |
From: Sara F. <sar...@gm...> - 2014-05-20 10:46:02
|
Hi I have corrected the version numbers and could successfully compile. However when I am trying to run the class I have getting following errors. log4j:WARN No appenders could be found for logger (ca.uhn.hl7v2.parser.DefaultModelClassFactory). log4j:WARN Please initialize the log4j system properly. 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.hapiexample.CreateAMessage.main(CreateAMessage.java:33) Regards Sara Fatima On Tue, May 20, 2014 at 4:03 PM, Christian Ohr <chr...@gm...>wrote: > Try running mvn dependency:tree in your project and check if there is any > old hapi library in the classpath. HapiContext exist as of version 2.1. > Sometimes mvn help:effective-pom also helps. > > Christian > > > 2014-05-20 11:40 GMT+02:00 Sara Fatima <sar...@gm...>: > >> Hi >> I have changed the HAPI base version to 2.2 as shown below. However it >> still doesn't seem to work and i am getting the same error. >> Do we need to add any JAR files while we are using maven too? >> >> <dependency> >> <groupId>ca.uhn.hapi</groupId> >> <artifactId>hapi-base</artifactId> >> <version>2.2</version> >> </dependency> >> >> <!-- These are structure JARs for HL7 v2.1 and 2.5.1 (as an example) --> >> <dependency> >> <groupId>ca.uhn.hapi</groupId> >> <artifactId>hapi-structures-v21</artifactId> >> <version>2.2</version> >> </dependency> >> <dependency> >> <groupId>ca.uhn.hapi</groupId> >> <artifactId>hapi-structures-v251</artifactId> >> <version>2.2</version> >> </dependency> >> >> Regards >> Sara Fatima >> >> >> >> On Tue, May 20, 2014 at 11:21 AM, Sara Fatima <sar...@gm...>wrote: >> >>> Hi >>> >>> >>> >>> I am facing few errors while using HAPI. >>> >>> >>> >>> These are the changes I have done into the pom.xml , I have also >>> attached a screen shot of the error screen. >>> >>> >>> >>> <dependency> >>> >>> <groupId>ca.uhn.hapi</groupId> >>> >>> <artifactId>*hapi*-base</artifactId> >>> >>> <version>2.1</version> >>> >>> </dependency> >>> >>> >>> >>> <!-- These are structure JARs for HL7 v2.1 and 2.5.1 (as an example) --> >>> >>> <dependency> >>> >>> <groupId>ca.uhn.hapi</groupId> >>> >>> <artifactId>*hapi*-structures-v21</artifactId> >>> >>> <version>2.2</version> >>> >>> </dependency> >>> >>> <dependency> >>> >>> <groupId>ca.uhn.hapi</groupId> >>> >>> <artifactId>*hapi*-structures-v251</artifactId> >>> >>> <version>2.2</version> >>> >>> </dependency> >>> >>> >>> >>> <repository> >>> >>> <id>*hapi*-*sf*</id> >>> >>> <name>HAPI *Sourceforge* Repository</name> >>> >>> <url>http://repo1.maven.org</url> >>> >>> </repository> >>> >>> >>> >>> >>> >>> >>> >>> Thanks in advance. >>> >>> >>> Regards >>> Sara Fatima >>> >>> >> >> >> ------------------------------------------------------------------------------ >> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE >> Instantly run your Selenium tests across 300+ browser/OS combos. >> Get unparalleled scalability from the best Selenium testing platform >> available >> Simple to use. Nothing to install. Get started now for free." >> http://p.sf.net/sfu/SauceLabs >> _______________________________________________ >> Hl7api-devel mailing list >> Hl7...@li... >> https://lists.sourceforge.net/lists/listinfo/hl7api-devel >> >> > > > ------------------------------------------------------------------------------ > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE > Instantly run your Selenium tests across 300+ browser/OS combos. > Get unparalleled scalability from the best Selenium testing platform > available > Simple to use. Nothing to install. Get started now for free." > http://p.sf.net/sfu/SauceLabs > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > |
From: Christian O. <chr...@gm...> - 2014-05-20 10:33:20
|
Try running mvn dependency:tree in your project and check if there is any old hapi library in the classpath. HapiContext exist as of version 2.1. Sometimes mvn help:effective-pom also helps. Christian 2014-05-20 11:40 GMT+02:00 Sara Fatima <sar...@gm...>: > Hi > I have changed the HAPI base version to 2.2 as shown below. However it > still doesn't seem to work and i am getting the same error. > Do we need to add any JAR files while we are using maven too? > > <dependency> > <groupId>ca.uhn.hapi</groupId> > <artifactId>hapi-base</artifactId> > <version>2.2</version> > </dependency> > > <!-- These are structure JARs for HL7 v2.1 and 2.5.1 (as an example) --> > <dependency> > <groupId>ca.uhn.hapi</groupId> > <artifactId>hapi-structures-v21</artifactId> > <version>2.2</version> > </dependency> > <dependency> > <groupId>ca.uhn.hapi</groupId> > <artifactId>hapi-structures-v251</artifactId> > <version>2.2</version> > </dependency> > > Regards > Sara Fatima > > > > On Tue, May 20, 2014 at 11:21 AM, Sara Fatima <sar...@gm...>wrote: > >> Hi >> >> >> >> I am facing few errors while using HAPI. >> >> >> >> These are the changes I have done into the pom.xml , I have also attached >> a screen shot of the error screen. >> >> >> >> <dependency> >> >> <groupId>ca.uhn.hapi</groupId> >> >> <artifactId>*hapi*-base</artifactId> >> >> <version>2.1</version> >> >> </dependency> >> >> >> >> <!-- These are structure JARs for HL7 v2.1 and 2.5.1 (as an example) --> >> >> <dependency> >> >> <groupId>ca.uhn.hapi</groupId> >> >> <artifactId>*hapi*-structures-v21</artifactId> >> >> <version>2.2</version> >> >> </dependency> >> >> <dependency> >> >> <groupId>ca.uhn.hapi</groupId> >> >> <artifactId>*hapi*-structures-v251</artifactId> >> >> <version>2.2</version> >> >> </dependency> >> >> >> >> <repository> >> >> <id>*hapi*-*sf*</id> >> >> <name>HAPI *Sourceforge* Repository</name> >> >> <url>http://repo1.maven.org</url> >> >> </repository> >> >> >> >> >> >> >> >> Thanks in advance. >> >> >> Regards >> Sara Fatima >> >> > > > ------------------------------------------------------------------------------ > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE > Instantly run your Selenium tests across 300+ browser/OS combos. > Get unparalleled scalability from the best Selenium testing platform > available > Simple to use. Nothing to install. Get started now for free." > http://p.sf.net/sfu/SauceLabs > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > |
From: Sara F. <sar...@gm...> - 2014-05-20 09:40:31
|
Hi I have changed the HAPI base version to 2.2 as shown below. However it still doesn't seem to work and i am getting the same error. Do we need to add any JAR files while we are using maven too? <dependency> <groupId>ca.uhn.hapi</groupId> <artifactId>hapi-base</artifactId> <version>2.2</version> </dependency> <!-- These are structure JARs for HL7 v2.1 and 2.5.1 (as an example) --> <dependency> <groupId>ca.uhn.hapi</groupId> <artifactId>hapi-structures-v21</artifactId> <version>2.2</version> </dependency> <dependency> <groupId>ca.uhn.hapi</groupId> <artifactId>hapi-structures-v251</artifactId> <version>2.2</version> </dependency> Regards Sara Fatima On Tue, May 20, 2014 at 11:21 AM, Sara Fatima <sar...@gm...>wrote: > Hi > > > > I am facing few errors while using HAPI. > > > > These are the changes I have done into the pom.xml , I have also attached > a screen shot of the error screen. > > > > <dependency> > > <groupId>ca.uhn.hapi</groupId> > > <artifactId>*hapi*-base</artifactId> > > <version>2.1</version> > > </dependency> > > > > <!-- These are structure JARs for HL7 v2.1 and 2.5.1 (as an example) --> > > <dependency> > > <groupId>ca.uhn.hapi</groupId> > > <artifactId>*hapi*-structures-v21</artifactId> > > <version>2.2</version> > > </dependency> > > <dependency> > > <groupId>ca.uhn.hapi</groupId> > > <artifactId>*hapi*-structures-v251</artifactId> > > <version>2.2</version> > > </dependency> > > > > <repository> > > <id>*hapi*-*sf*</id> > > <name>HAPI *Sourceforge* Repository</name> > > <url>http://repo1.maven.org</url> > > </repository> > > > > > > > > Thanks in advance. > > > Regards > Sara Fatima > > |
From: Jens V. <jen...@gm...> - 2014-05-20 07:08:27
|
Your Hapi base version is 2.1 while your structures are using 2.2. Please use the same version at all places On 20 May 2014 07:51, Sara Fatima <sar...@gm...> wrote: > Hi > > > > I am facing few errors while using HAPI. > > > > These are the changes I have done into the pom.xml , I have also attached > a screen shot of the error screen. > > > > <dependency> > > <groupId>ca.uhn.hapi</groupId> > > <artifactId>*hapi*-base</artifactId> > > <version>2.1</version> > > </dependency> > > > > <!-- These are structure JARs for HL7 v2.1 and 2.5.1 (as an example) --> > > <dependency> > > <groupId>ca.uhn.hapi</groupId> > > <artifactId>*hapi*-structures-v21</artifactId> > > <version>2.2</version> > > </dependency> > > <dependency> > > <groupId>ca.uhn.hapi</groupId> > > <artifactId>*hapi*-structures-v251</artifactId> > > <version>2.2</version> > > </dependency> > > > > <repository> > > <id>*hapi*-*sf*</id> > > <name>HAPI *Sourceforge* Repository</name> > > <url>http://repo1.maven.org</url> > > </repository> > > > > > > > > Thanks in advance. > > > Regards > Sara Fatima > > > > ------------------------------------------------------------------------------ > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE > Instantly run your Selenium tests across 300+ browser/OS combos. > Get unparalleled scalability from the best Selenium testing platform > available > Simple to use. Nothing to install. Get started now for free." > http://p.sf.net/sfu/SauceLabs > _______________________________________________ > 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 |
From: Jens V. <jen...@gm...> - 2014-05-19 10:58:30
|
Hmmm ... sounds like there is some transitive dependency resolution that goes wrong in your cases. Are you able to resolve <dependency> <groupId>ca.uhn.hapi</groupId> <artifactId>hapi-base</artifactId> <version>2.2</version> </dependency> ? and second - I would use the usual maven repo (http://repo1.maven.org) On 19 May 2014 12:10, Sara <sar...@gm...> wrote: > I am also facing the same error. However I am using version 2.2 > > Here is what I added to my pom.xml > > <dependency> > <groupId>ca.uhn.hapi</groupId> > > <artifactId>hapi-structures-v21</artifactId> > <version>2.2</version> > </dependency> > <dependency> > <groupId>ca.uhn.hapi</groupId> > <artifactId>hapi-structures- > v251</artifactId> > <version>2.2</version> > </dependency> > > > <repository> > <id>hapi-sf</id> > <name>HAPI Sourceforge Repository</name> > <url>http://hl7api.sourceforge.net/m2</url> > </repository> > > > > > > > ------------------------------------------------------------------------------ > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE > Instantly run your Selenium tests across 300+ browser/OS combos. > Get unparalleled scalability from the best Selenium testing platform > available > Simple to use. Nothing to install. Get started now for free." > http://p.sf.net/sfu/SauceLabs > _______________________________________________ > 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 |
From: Sara <sar...@gm...> - 2014-05-19 10:20:19
|
I am also facing the same error. However I am using version 2.2 Here is what I added to my pom.xml <dependency> <groupId>ca.uhn.hapi</groupId> <artifactId>hapi-structures-v21</artifactId> <version>2.2</version> </dependency> <dependency> <groupId>ca.uhn.hapi</groupId> <artifactId>hapi-structures- v251</artifactId> <version>2.2</version> </dependency> <repository> <id>hapi-sf</id> <name>HAPI Sourceforge Repository</name> <url>http://hl7api.sourceforge.net/m2</url> </repository> |
From: Christian O. <chr...@gm...> - 2014-05-07 17:22:32
|
HL7 cannot deny its U.S roots... Fortunately, there's DefaultValidationWithoutTN in the same package that omits the validation rules for U.S. phone number schemes. You can also inherit from DefaultValidationWithoutTNBuilder and add your own/UK-specific rules. See e.g. http://hl7api.sourceforge.net/xref/ca/uhn/hl7v2/examples/CustomMessageValidation.htmlfor how to do this Christian 2014-05-07 18:01 GMT+02:00 Oliver Wilkie <oli...@gm...>: > > The DefaultValidation ca.uhn.hl7v2.validation.impl.DefaultValidation > seems to be US-centric. For instance, it complains about non-US telephone > numbers. > > I’m writing code for the NHS in the UK. Is there an existing Validator out > there that is more UK/NHS-friendly? > > I very much doubt I am the first person to use Hapi in the UK for the NHS! > > Best, > Oli > > > > *Oliver Wilkie* > ( 07854601573 | 2 uk.linkedin.com/in/owilkie 8 o<rob...@im...> > liv...@gm... > > > > ------------------------------------------------------------------------------ > Is your legacy SCM system holding you back? Join Perforce May 7 to find > out: > • 3 signs your SCM is hindering your productivity > • Requirements for releasing software faster > • Expert tips and advice for migrating your SCM now > http://p.sf.net/sfu/perforce > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > |
From: Oliver W. <oli...@gm...> - 2014-05-07 16:01:54
|
The DefaultValidation ca.uhn.hl7v2.validation.impl.DefaultValidation seems to be US-centric. For instance, it complains about non-US telephone numbers. I’m writing code for the NHS in the UK. Is there an existing Validator out there that is more UK/NHS-friendly? I very much doubt I am the first person to use Hapi in the UK for the NHS! Best, Oli Oliver Wilkie ( 07854601573 | 2 uk.linkedin.com/in/owilkie 8 oli...@gm... |
From: James A. <ja...@ja...> - 2014-05-07 15:16:45
|
HI Oliver, I'm fairly sure XPN.1 is a composite type, so that message looks invalid to me. I believe specifically that it should have a child element called <FN.1> or something similar. I'm on my phone at the moment so I can't check, but if you create a message instance in code with XPN populated and encode it using the XmlParser you will get an example of how XPN.1 should look. Do you have control over the system creating the data? If not, you may need to correct the message manually before parsing it. You could also go the route of creating a custom structure for your message with the datatype in XPN.1 redefined to something primitive, but that would be a lot of effort.. Cheers, James On Wed, May 7, 2014 at 6:27 AM, Oliver Wilkie <oli...@gm...>wrote: > Hi! > > I’m a first-time user of the HAPI library (version 2.2) and am seeing some > strange behaviour. > > I’m parsing in an ADT A01 Hl7v2.4 message which has the following patient > info section > > <hl7v2:PID.5> > <hl7v2:XPN.1>SMITH</hl7v2:XPN.1> > <hl7v2:XPN.2>FREDRICA</hl7v2:XPN.2> > <hl7v2:XPN.3>J</hl7v2:XPN.3> > <hl7v2:XPN.5>MRS</hl7v2:XPN.5> > <hl7v2:XPN.7>L</hl7v2:XPN.7> > </hl7v2:PID.5> > > When I parse the message using the DefaultHapiContext() with no > validation() the XPN.1 value disappears. XPN.2, XPN.3, XPN.5, and XPN.7 are > there still but XPN.1 isn’t. > > I look across the rest of my message and see that all the XPN.1s and > XAD.1s are missing. > > What am I doing wrong? > > Thanks > Oli > > > *Oliver Wilkie* > ( 07854601573 | 2 uk.linkedin.com/in/owilkie 8 o<rob...@im...> > liv...@gm... > > > > ------------------------------------------------------------------------------ > Is your legacy SCM system holding you back? Join Perforce May 7 to find > out: > • 3 signs your SCM is hindering your productivity > • Requirements for releasing software faster > • Expert tips and advice for migrating your SCM now > http://p.sf.net/sfu/perforce > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > |
From: Pablo P. <pab...@ca...> - 2014-05-07 13:58:56
|
Hi Daniel, thanks for the response. The MLLP encapsulation is done by HAPI, so I don't have much control over that. Right now the problem is solved, it seems it happened because a network problem (wasn't able to reach the destination because I didn't opened the receiving port). The weirdness might be to receive that error message related to encoding instead of receiving a message related to the network, but I really don't know if this was the case. Now this is working as expected and I'm sending Imaginology Structured Reports to my PACS like crazy :) Thanks! On Wed, May 7, 2014 at 6:33 AM, Daniel Nebot <dan...@ya...> wrote: > It does not seem to complain about your message, but about the Lower Layer > encapsulation. > > It says "Expected byte '11'" so, given that dec 11= hex 0B (namely VT), I > would rather check your MLLP encapsulation > ( 0B msg 1C 0D) > Is that what you are asking? > > Hope that helps > > Daniel Nebot > IZASA > > On Friday, 2 May 2014, 16:58, Pablo Pazos <pab...@ca...> > wrote: > Hi all, > > I'm trying to send an ORU^O01 message to a DCM4CHEE PACS and I'm getting > this error: > > Message: MLLP protocol violation - Expected byte '11' in state START but > was '7' > > > Does anyone knows what that means? > > The message looks like this: > > > MSH|^~\&|MESA_RPT_MGR|EAST_RADIOLOGY|REPOSITORY|XYZ|199904140038||ORU^R01|576457764576|P|2.3.1 > PID|1||5555555||MISTER^CR|||||||||||||123456444 > > OBR|1|A601Z^MESA_ORDPLC|B601Z^MESA_ORDFIL|B601Z^MESA_ORDFIL^test|||20010501141500|||||||||||||||20010109100821|||F||||||||||| > OBX|1|HD|a^Study Instance > UID||1.3.51.0.7.633918642.633920010109.6339100821||||||F > OBX|2|HD|b^Series Instance UID||1.3.51.0.7.11111.22222.33333||||||F > OBX|3|HD|c^SOP Instance UID||1.3.51.0.7.11111.22222.33333.5555||||||F > OBX|4|HD|d^SR Instance UID||1.3.51.0.7.11111.22222.33333.4444||||||F > OBX|5|TX|e^SR Text||History todo||||||F > > > Thanks! > -- > Atte. > Ing. Pablo Pazos Gutiérrez > Cel:(00598) 99 043 145 > Skype: cabolabs > <http://cabolabs.com/> > http://www.cabolabs.com > pab...@ca... > > > ------------------------------------------------------------------------------ > "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE > Instantly run your Selenium tests across 300+ browser/OS combos. Get > unparalleled scalability from the best Selenium testing platform available. > Simple to use. Nothing to install. Get started now for free." > http://p.sf.net/sfu/SauceLabs > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > > -- Atte. Ing. Pablo Pazos Gutiérrez Cel:(00598) 99 043 145 Skype: cabolabs <http://cabolabs.com/> http://www.cabolabs.com pab...@ca... |
From: Oliver W. <oli...@gm...> - 2014-05-07 10:27:49
|
Hi! I’m a first-time user of the HAPI library (version 2.2) and am seeing some strange behaviour. I’m parsing in an ADT A01 Hl7v2.4 message which has the following patient info section <hl7v2:PID.5> <hl7v2:XPN.1>SMITH</hl7v2:XPN.1> <hl7v2:XPN.2>FREDRICA</hl7v2:XPN.2> <hl7v2:XPN.3>J</hl7v2:XPN.3> <hl7v2:XPN.5>MRS</hl7v2:XPN.5> <hl7v2:XPN.7>L</hl7v2:XPN.7> </hl7v2:PID.5> When I parse the message using the DefaultHapiContext() with no validation() the XPN.1 value disappears. XPN.2, XPN.3, XPN.5, and XPN.7 are there still but XPN.1 isn’t. I look across the rest of my message and see that all the XPN.1s and XAD.1s are missing. What am I doing wrong? Thanks Oli Oliver Wilkie ( 07854601573 | 2 uk.linkedin.com/in/owilkie 8 oli...@gm... |
From: Daniel N. <dan...@ya...> - 2014-05-07 09:34:04
|
It does not seem to complain about your message, but about the Lower Layer encapsulation. It says "Expected byte '11'" so, given that dec 11= hex 0B (namely VT), I would rather check your MLLP encapsulation ( 0B msg 1C 0D) Is that what you are asking? Hope that helps Daniel Nebot IZASA On Friday, 2 May 2014, 16:58, Pablo Pazos <pab...@ca...> wrote: Hi all, I'm trying to send an ORU^O01 message to a DCM4CHEE PACS and I'm getting this error: Message: MLLP protocol violation - Expected byte '11' in state START but was '7' Does anyone knows what that means? The message looks like this: MSH|^~\&|MESA_RPT_MGR|EAST_RADIOLOGY|REPOSITORY|XYZ|199904140038||ORU^R01|576457764576|P|2.3.1 PID|1||5555555||MISTER^CR|||||||||||||123456444 OBR|1|A601Z^MESA_ORDPLC|B601Z^MESA_ORDFIL|B601Z^MESA_ORDFIL^test|||20010501141500|||||||||||||||20010109100821|||F||||||||||| OBX|1|HD|a^Study Instance UID||1.3.51.0.7.633918642.633920010109.6339100821||||||F OBX|2|HD|b^Series Instance UID||1.3.51.0.7.11111.22222.33333||||||F OBX|3|HD|c^SOP Instance UID||1.3.51.0.7.11111.22222.33333.5555||||||F OBX|4|HD|d^SR Instance UID||1.3.51.0.7.11111.22222.33333.4444||||||F OBX|5|TX|e^SR Text||History todo||||||F Thanks! -- Atte. Ing. Pablo Pazos Gutiérrez Cel:(00598) 99 043 145 Skype: cabolabs http://www.cabolabs.com pab...@ca... ------------------------------------------------------------------------------ "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE Instantly run your Selenium tests across 300+ browser/OS combos. Get unparalleled scalability from the best Selenium testing platform available. Simple to use. Nothing to install. Get started now for free." http://p.sf.net/sfu/SauceLabs _______________________________________________ Hl7api-devel mailing list Hl7...@li... https://lists.sourceforge.net/lists/listinfo/hl7api-devel |
From: Pablo P. <pab...@ca...> - 2014-05-02 14:57:05
|
Hi all, I'm trying to send an ORU^O01 message to a DCM4CHEE PACS and I'm getting this error: Message: MLLP protocol violation - Expected byte '11' in state START but was '7' Does anyone knows what that means? The message looks like this: MSH|^~\&|MESA_RPT_MGR|EAST_RADIOLOGY|REPOSITORY|XYZ|199904140038||ORU^R01|576457764576|P|2.3.1 PID|1||5555555||MISTER^CR|||||||||||||123456444 OBR|1|A601Z^MESA_ORDPLC|B601Z^MESA_ORDFIL|B601Z^MESA_ORDFIL^test|||20010501141500|||||||||||||||20010109100821|||F||||||||||| OBX|1|HD|a^Study Instance UID||1.3.51.0.7.633918642.633920010109.6339100821||||||F OBX|2|HD|b^Series Instance UID||1.3.51.0.7.11111.22222.33333||||||F OBX|3|HD|c^SOP Instance UID||1.3.51.0.7.11111.22222.33333.5555||||||F OBX|4|HD|d^SR Instance UID||1.3.51.0.7.11111.22222.33333.4444||||||F OBX|5|TX|e^SR Text||History todo||||||F Thanks! -- Atte. Ing. Pablo Pazos Gutiérrez Cel:(00598) 99 043 145 Skype: cabolabs <http://cabolabs.com/> http://www.cabolabs.com pab...@ca... |
From: <ki...@ao...> - 2014-03-19 04:49:07
|
Dear all, I apologize for the inconvenience caused by me. Actually My mail was hacked by some one and now it is under control. -- Sathish On Tuesday 18 March 2014 11:22 PM, Bob Gage wrote: > If you cannot filter this spammer, please unsubscribe me immediately. > > -----Original Message----- > From: Sathish kumar [mailto:ki...@ao...] > Sent: Monday, March 17, 2014 3:16 PM > To: sun...@ra...; hl7...@li... > Subject: [HAPI-devel] Fwd: > > Hallo! http://www.unitedco-online.com/were.you.looking.for?jhihuhu302888 > > > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/13534_NeoTech > _______________________________________________ > Hl7api-devel mailing list > Hl7...@li... > https://lists.sourceforge.net/lists/listinfo/hl7api-devel -- Sathish |
From: Bob G. <Bob...@Me...> - 2014-03-18 18:05:29
|
If you cannot filter this spammer, please unsubscribe me immediately. -----Original Message----- From: Sathish kumar [mailto:ki...@ao...] Sent: Monday, March 17, 2014 3:16 PM To: sun...@ra...; hl7...@li... Subject: [HAPI-devel] Fwd: Hallo! http://www.unitedco-online.com/were.you.looking.for?jhihuhu302888 ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Hl7api-devel mailing list Hl7...@li... https://lists.sourceforge.net/lists/listinfo/hl7api-devel |
From: Sathish k. <ki...@ao...> - 2014-03-18 03:34:47
|
Hello there! http://altro-decor.ru/your.subscription?urjrjwu524315 |
From: Sathish k. <ki...@ao...> - 2014-03-18 02:25:24
|
Hello there! http://viziteazasitu.ro/best.of.the.best?ygjku875662 |
From: Sathish k. <ki...@ao...> - 2014-03-18 01:15:44
|
Hallo! http://www.unitedco-online.com/were.you.looking.for?jhihuhu302888 |
From: Sathish k. <ki...@ao...> - 2014-03-17 23:58:16
|
Hi there! http://argotmusic.com.ar/best.of.the.best?atemyqum800642 |