IRC Chat : 2012-03-18 - OpenMRS

01:22:04 *** anu_GSOC has joined #openmrs
02:29:28 *** morristic has joined #openmrs
03:03:13 *** pulasthi7 has joined #openmrs
03:19:04 *** anu_GSOC has quit IRC
03:24:21 *** anu_GSOC has joined #openmrs
03:31:01 *** anu_GSOC has quit IRC
03:52:19 *** manash_ has joined #openmrs
04:02:48 *** Mkop has quit IRC
04:06:16 *** Mkop has joined #openmrs
04:06:16 *** zelazny.freenode.net sets mode: +v Mkop
04:19:38 *** anu_GSOC has joined #openmrs
04:27:06 *** Guest7388 has quit IRC
04:46:26 *** Gihan_ has joined #openmrs
04:50:26 *** GC has joined #openmrs
04:50:49 *** Anuruddha_ has joined #openmrs
04:51:42 *** Gihan_ has quit IRC
04:52:21 *** GC has quit IRC
04:53:18 *** Gihan1 has joined #openmrs
04:54:30 *** anu_GSOC has quit IRC
05:03:44 *** Gihan1 has quit IRC
05:05:17 *** GC has joined #openmrs
05:18:59 *** GC has quit IRC
05:24:10 *** anu_GSOC has joined #openmrs
05:24:43 *** Anuruddha_ has quit IRC
05:34:40 *** pushkar has joined #openmrs
05:38:46 *** pushkar has quit IRC
06:10:37 *** maurya has joined #openmrs
06:14:01 *** morristic has joined #openmrs
06:17:03 *** Gihan1 has joined #openmrs
06:22:29 *** morristic has quit IRC
06:29:26 *** dkayiwa has joined #openmrs
06:31:41 *** maurya has quit IRC
06:37:10 *** manash_ has quit IRC
07:00:03 *** bryq has joined #openmrs
07:00:03 *** ChanServ sets mode: +v bryq
07:01:16 *** robbyoconnor has joined #openmrs
07:01:16 *** ChanServ sets mode: +v robbyoconnor
07:22:41 *** bryq has quit IRC
07:29:33 *** Anuruddha_ has joined #openmrs
07:33:05 *** anu_GSOC has quit IRC
07:35:13 *** Anuruddha_ has quit IRC
07:43:03 *** snoppy has joined #openmrs
07:46:42 *** harshadura has joined #openmrs
07:56:31 *** dewmal has joined #openmrs
08:05:30 *** anu_GSOC has joined #openmrs
08:50:16 *** ShellZero has joined #openmrs
08:56:45 *** magiclko has joined #openmrs
09:09:38 *** Gihan1 has left #openmrs
09:33:41 *** ShellZero has quit IRC
09:42:23 *** snoppy has quit IRC
09:47:38 *** snoppy has joined #openmrs
10:01:02 *** snoppy has quit IRC
10:02:17 *** anu_GSOC has quit IRC
10:11:39 *** dkayiwa has quit IRC
10:19:28 *** kernelhunter92 has joined #openmrs
10:26:22 *** snoppy has joined #openmrs
10:47:16 *** riomus has joined #openmrs
10:52:24 *** ShellZero has joined #openmrs
11:00:44 *** anu_GSOC has joined #openmrs
11:13:22 *** anu_GSOC has quit IRC
11:18:46 *** bryq has joined #openmrs
11:18:46 *** ChanServ sets mode: +v bryq
11:31:01 *** manash_ has joined #openmrs
11:33:01 *** anu_GSOC has joined #openmrs
11:42:49 <jingx> to magicalmyxosoma: not yet.
11:43:45 *** jingx has left #openmrs
11:45:46 *** jingx has joined #openmrs
11:47:01 *** riomus has quit IRC
11:47:40 *** manash_ has joined #openmrs
11:53:38 *** rafa has joined #openmrs
11:53:38 *** ChanServ sets mode: +v rafa
12:04:51 *** Anuruddha_ has joined #openmrs
12:05:30 *** r_friedman has joined #openmrs
12:06:04 <r_friedman> wyclif: hey wyclif, you really there?
12:07:18 <r_friedman> hey rafa, are you there?
12:07:26 <rafa> hi r_friedman
12:07:34 <r_friedman> hi rafa, got a minute
12:07:41 <rafa> yes
12:07:55 <rafa> what can i do for you?
12:07:58 <r_friedman> i'm trying to use the test case generator with my module
12:08:20 <rafa> ok
12:08:32 <r_friedman> and when I try to start a test, it fails to start openmrs
12:08:43 <r_friedman> there's a dependency on logic 0.5 and the message i get is
12:09:07 *** anu_GSOC has quit IRC
12:09:07 <r_friedman> Error creating bean with name 'groovyLanguageHandler'
12:09:25 *** maurya has joined #openmrs
12:09:26 <rafa> r_friedman: can you pastebin the whole log?
12:09:29 <r_friedman> Constructor threw exception; nested exception is java.lang.NoClassDefFoundError
12:10:19 <rafa> r_friedman: do you run it as junit test from eclipse or simply maven install?
12:10:34 <r_friedman> http://pastebin.com/p4CTcjAX
12:10:42 <r_friedman> junit from eclipse
12:11:30 <rafa> r_friedman: I believe you need to add groovy dependency to your pom
12:11:52 <r_friedman> ok which pom and what are the parameters
12:12:11 <rafa> r_friedman: let me check in logic
12:14:00 <rafa> r_friedman: hmmm it seems it's included in logic actually
12:14:32 <r_friedman> ok let me give you a bigger picture
12:14:35 <rafa> r_friedman: did you add logic as dependecy to your module pom?
12:14:41 <r_friedman> no
12:14:50 <r_friedman> it's a dependency of openmrs
12:14:50 <rafa> r_friedman: okay then it's needed
12:15:57 <rafa> r_friedman: that's not entirely right, it's not included in openmrs pom
12:16:33 <rafa> r_friedman: you just need to add it to your module pom and it'll work
12:16:35 <r_friedman> ok, i thought all of the "requireed" modules were included
12:17:21 <r_friedman> but just give me a hand writing the dependency -- it goes in project pom only, or does it need references in the api and omod poms as well?
12:17:41 <rafa> r_friedman: it needs references in the api and omod
12:18:38 <rafa> r_friedman: add to your main pom:
12:18:39 <rafa> <dependency>
12:18:39 <rafa> <groupId>org.openmrs.module</groupId>
12:18:39 <rafa> <artifactId>logic-api</artifactId>
12:18:39 <rafa> <version>0.5</version>
12:18:39 <rafa> <scope>provided<scope>
12:18:40 <rafa> </dependency>
12:18:48 <rafa> and to api and omod poms:
12:18:55 <rafa> <dependency>
12:18:55 <rafa> <groupId>org.openmrs.module</groupId>
12:18:55 <rafa> <artifactId>logic-api</artifactId>
12:18:55 <rafa> </dependency>
12:19:47 <r_friedman> ok i am looking in main pom and it has the dependency as jar [provided]
12:20:08 <rafa> ok
12:20:14 <rafa> check in api and omod poms
12:21:03 <r_friedman> omod poms has logic jar [compile]
12:21:51 <rafa> r_friedman: in subprojects you shouldn't specify scope, version or type. Just groupId and artifactId. The rest is read from the main pom
12:21:55 <rafa> r_friedman: so correct that
12:22:07 <r_friedman> main pom references logic, not logic-api
12:22:23 <rafa> r_friedman: that should be also fine
12:22:44 *** manash_ has quit IRC
12:23:14 <rafa> r_friedman: I'm not sure how the logic is set up, but it should work either way
12:23:29 <rafa> r_friedman: the more correct way is to depend on api I believe
12:24:32 <rafa> r_friedman: the point is if you go with logic instead of logic-api, you need to be consistent in api and omod poms
12:24:59 <r_friedman> so api pom was set up as you say, omod as i just told you, maybe check the module archetype to see what it's creating
12:26:07 <r_friedman> maybe would be good to include the dependencies from https://wiki.openmrs.org/display/docs/Module+Unit+Testing
12:26:08 <OpenMRSBot> <http://ln-s.net/90Rl> (at wiki.openmrs.org)
12:26:40 *** Anuruddha_ has quit IRC
12:27:49 *** anu_GSOC has joined #openmrs
12:27:49 <rafa> r_friedman: logic jar includes web classes, logic-api jar includes only api classes
12:28:11 <rafa> r_friedman: I meant logic jar includes both api and web classes
12:28:20 <r_friedman> ok so i am still getting the same error
12:28:50 <rafa> r_friedman: where can I see those poms?
12:29:54 <r_friedman> shall I pastebin?
12:30:02 <r_friedman> or i could commit them
12:30:54 <rafa> r_friedman: both way is fine
12:32:57 <r_friedman> ok, i have committed, jsslab module
12:33:40 <rafa> ok let me check out
12:34:23 <rafa> r_friedman: I see something strange in the repo
12:34:39 <rafa> r_friedman: there is jsslab/trunk and jsslab/trunk/trunk
12:34:45 <rafa> r_friedman: which one should I check out?
12:34:58 <r_friedman> just trunk
12:35:14 <r_friedman> i have no idea where trunk/trunk came from
12:35:35 <r_friedman> although i think i am the only one committing
12:35:43 <rafa> r_friedman: okay, you may consider removing that :)
12:35:56 *** bryq has quit IRC
12:37:38 <r_friedman> probably just ben playing a prank
12:39:14 <rafa> r_friedman: which test are you trying to run?
12:40:11 <rafa> r_friedman: is it LabInstrumentControllerTest?
12:41:31 *** anu_GSOC has quit IRC
12:41:55 <r_friedman> rafa yes
12:41:58 *** anu_GSOC has joined #openmrs
12:42:21 <r_friedman> you need for me to commit more stuff, i didn't commit all the test stuff i have been working on
12:43:01 <r_friedman> actually no, not that one, that's old garbage
12:43:30 <r_friedman> the one i'm trying to do is LabOrderServiceTest which is not committed
12:44:18 <rafa> r_friedman: poms look fine
12:45:03 <rafa> r_friedman: did you try maven -> update project configuration
12:46:50 <r_friedman> just did, no change
12:47:42 <r_friedman> do i need to have logic in my workspace?
12:49:58 <rafa> r_friedman: no, it's deployed to the repo
12:50:21 <rafa> r_friedman: do you see still the same error?
12:50:58 <r_friedman> yes
12:51:18 <r_friedman> and i see the logic dependency with groovy in the lib in my omod maven dependencies
12:51:42 <r_friedman> clean install?
12:55:52 <rafa> r_friedman: yes
12:56:20 <r_friedman> rafa, after clean install, now Class not found org.openmrs.module.jsslab.LabOrderServiceTest when it is right there in src/test/java
12:56:54 <rafa> r_friedman: check if you have project -> build automatically selected
12:57:10 <r_friedman> check where?
12:57:16 <rafa> r_friedman: in eclipse top menu
12:57:37 <r_friedman> build automatically checked
12:58:01 <rafa> clean install was successful?
12:58:05 <r_friedman> oh yes
12:58:41 <rafa> so the test must have passed in maven
12:58:53 <r_friedman> no, i had skip tests checked
12:58:53 <rafa> you didn't have skipTests selected right?
12:59:11 <r_friedman> shall i try clean install with tests?
12:59:16 <rafa> r_friedman: yes
12:59:30 <rafa> r_friedman: see what error it'll give you
13:01:15 <r_friedman> rafa, ok, back to groovy class loader error
13:01:45 <rafa> r_friedman: can you commit that test case?
13:03:02 <r_friedman> done
13:06:11 <rafa> r_friedman: okay I see the same error
13:06:46 <r_friedman> at least we are in same universe :-)
13:07:15 *** pushkar has joined #openmrs
13:07:28 <rafa> r_friedman: I wonder why groovy is not listed on the classpath although it's mentioned in logic pom
13:09:49 <pushkar> r_friedman: I was working to get the hr module installed on my machine but i have some issues with loading of liquibase.xml do you have a working hr module on your box?
13:10:12 *** Echidna has quit IRC
13:10:12 *** Echidna_ has joined #openmrs
13:10:45 *** rafa_ has joined #openmrs
13:10:45 *** ChanServ sets mode: +v rafa_
13:11:00 <r_friedman> pushkar, i haven't looked at it in a while ... it needs to work under 1.8.x, is that what you are using?
13:12:11 <pushkar> I am using the trunk of openmrs..is this an issue?
13:12:26 <r_friedman> pushkar, yes, trunk is 1.9
13:13:30 <pushkar> okay i will try using 1.8 war and let you know :)
13:13:42 <r_friedman> pushkar, thanks
13:15:16 *** Anuruddha_ has joined #openmrs
13:16:24 *** dewmal has quit IRC
13:16:39 *** Anuruddha_ has joined #openmrs
13:17:38 <r_friedman> rafa_, i need to be away about 30 mins, would now be a good time or should i wait?
13:19:13 *** anu_GSOC has quit IRC
13:19:13 *** rafa has quit IRC
13:20:29 <harshadura> hi thr
13:22:55 *** ShellZero has quit IRC
13:22:57 <harshadura> hi rafa_
13:23:43 *** ShellZero has joined #openmrs
13:23:50 <harshadura> hi r_friedman
13:32:58 *** dewmal has joined #openmrs
13:47:00 <r_friedman> harshadura: hi harsha
13:47:51 <r_friedman> rafa_: , back
14:12:24 *** Anuruddha_ has quit IRC
14:12:31 *** maurya has quit IRC
14:12:48 *** anu_GSOC has joined #openmrs
14:14:03 <rafa_> r_friedman: hi Roger, sorry I'm back
14:14:27 <rafa_> r_friedman: there's something wrong with the logic module deployed to the repo
14:16:05 <rafa_> r_friedman: it needs to be fixed
14:16:30 <rafa_> r_friedman: but before that happens you can just checkout logic and build it yourself
14:17:09 <rafa_> r_friedman: the version of the logic module in trunk is 0.5-SNAPSHOT
14:18:05 <rafa_> r_friedman: so after you run mvn clean install on the logic module, you'll need to change the logic version in your module pom to 0.5-SNAPSHOT
14:24:14 <r_friedman> rafa_, tks
14:24:39 <r_friedman> i will do so and get back
14:29:18 *** SravanthiSinha has joined #openmrs
14:29:24 *** SravanthiSinha has left #openmrs
14:33:16 <rafa_> r_friedman: great and use logic-api instead of logic for 0.5-SNAPSHOT
14:35:38 <r_friedman> rafa_, i built logic 0.5.2 and got only an omod, no jar, should i have gotten trunk instead?
14:36:33 <r_friedman> should i have gotten 0.5? does trunk include the pending changes to logic?
14:36:57 <rafa_> r_friedman: jar should be in api/target
14:37:33 <rafa_> r_friedman: is it there?
14:37:47 <r_friedman> rafa_: son of a gun ... would be nice if things were more uniform
14:38:29 <rafa_> r_friedman: it actually makes sense since it's api jar :)
14:39:12 <r_friedman> can't tell the players without a scorecard
14:39:34 <rafa_> lol :D
14:52:58 *** anu_GSOC has quit IRC
14:53:25 <r_friedman> rafa_: ok, we have a testing environment (sort of) ... now i just have to find a version of the standard test data that uses an older version of the db structure
15:15:25 *** manash_ has joined #openmrs
15:18:30 *** anu_GSOC has joined #openmrs
15:28:22 *** morristic has joined #openmrs
15:47:08 *** dewmal has quit IRC
15:48:38 *** magiclko has quit IRC
15:48:50 *** dkayiwa has joined #openmrs
15:59:02 *** bryq has joined #openmrs
15:59:03 *** ChanServ sets mode: +v bryq
16:02:46 *** magiclko has joined #openmrs
16:03:40 <r_friedman> rafa_: can i bug you again?
16:04:29 <rafa_> r_friedman: sorry Rogger, I have to pack for a trip
16:04:42 <r_friedman> ok, i hope it's to Colombia, if so I'll see you here
16:05:06 <rafa_> r_friedman: nope to Cracow for a java conference :)
16:05:20 <r_friedman> don't eat too much cabbage
16:05:40 <rafa_> r_friedman: haha it's good
16:05:52 <r_friedman> yes, but you don't want to be an old fart
16:06:00 <rafa_> r_friedman: haha true
16:06:08 *** kernelhunter92 has quit IRC
16:19:09 *** dkayiwa has quit IRC
16:21:44 *** dkayiwa has joined #openmrs
16:26:33 *** rafa_ has quit IRC
16:34:33 <r_friedman> dkayiwa: hi daniel, got a minute?
16:35:01 <dkayiwa> r_friedman: no problem
16:35:21 <r_friedman> have you ever tried to create unit tests for a module that has its own tables?
16:36:01 <dkayiwa> r_friedman: i think yes
16:36:35 <r_friedman> dkayiwa: great, I have used dbUnit to create a file for my unit test, and it works OK for the base tables but not for my added tables
16:36:49 <r_friedman> I think junit must not be seeing my hbm.xml files
16:37:41 <dkayiwa> r_friedman: what do you mean by base tables?
16:37:46 <r_friedman> openmrs tables
16:37:54 <dkayiwa> oh i see
16:40:30 <r_friedman> dkayiwa: they are in omod src/main/resources
16:41:21 <dkayiwa> r_friedman: looks like you may need to do something like is in CreateInitialDataSet.java
16:45:13 <r_friedman> dkayiwa: it appears that that is dynamically creating the standard test data set, although I can't figure out the annotations and the switches
16:46:06 <r_friedman> dkayiwa: could it be that this is being executed before the modules are loaded?
16:46:31 <dkayiwa> r_friedman: did you run a method like executeDataSet()
16:47:43 <r_friedman> yes
16:47:48 <r_friedman> exactly that method
16:48:05 <dkayiwa> r_friedman: and what error did you get
16:49:03 <r_friedman> dkayiwa: table does not exist when i tried to add data to one of my module-defined tables
16:49:25 <r_friedman> dkayiwa: the xml first does all the openmrs tables, and in cleaning up data errors I have evidence that it works through them
16:49:31 *** dkayiwa has quit IRC
16:50:08 *** dkayiwa has joined #openmrs
16:50:19 <r_friedman> dkayiwa: scared you away
16:50:34 <dkayiwa> r_friedman: no. african connection problems :)
16:51:25 <r_friedman> so as i was saying, the openmrs tables are filled first, then as soon as it tries to fill one my module tables, it does table does not exist
16:51:57 <dkayiwa> r_friedman: did you create the hibernate mapping file for the table?
16:52:11 <r_friedman> org.dbunit.dataset.NoSuchTableException: jsslab_instrument
16:52:27 <r_friedman> yes, it works fine in jetty
16:52:45 <dkayiwa> r_friedman: meaning unit test works fine in jetty?
16:53:12 <r_friedman> oh not the unit test, i am just trying to get the first unit test up and running
16:53:27 <dkayiwa> member:r_friedman: did you create the hibernate mapping file for the table?
16:53:53 <r_friedman> oh yes, it is in omod src/main/resources
16:54:24 <dkayiwa> r_friedman: under which project?
16:54:28 <dkayiwa> the api or omod
16:54:42 <r_friedman> the whole module works to at least some extent in jetty
16:54:45 <r_friedman> the omod
16:55:47 <dkayiwa> r_friedman: is the module source code checked in?
16:55:58 <r_friedman> oh yes, jsslab
16:56:28 <r_friedman> maybe not the latest version of the test data file
16:56:49 <dkayiwa> r_friedman: can i checkout and run it here to reproduce the error?
16:57:44 <r_friedman> sure, i have just checked in the latest and greatest
16:58:16 <r_friedman> you will need to have openmrs 1.8.x, webservices.rest trunk, and logic 0.5.2 as well
16:58:19 <dkayiwa> r_friedman: ok
16:58:33 <dkayiwa> r_friedman: which test class is it?
16:58:52 <r_friedman> LabOrderServiceTest
16:59:00 <dkayiwa> ok
17:01:43 *** manash_ has quit IRC
17:13:13 *** manash_ has joined #openmrs
17:20:25 *** magiclko has quit IRC
17:23:44 * r_friedman is testing his connection
17:31:10 *** SravanthiSinha has joined #openmrs
17:31:16 *** SravanthiSinha has left #openmrs
17:53:24 *** anu_GSOC has quit IRC
17:56:25 <r_friedman> dkayiwa: daniel, i am going out for several hours, if you find anything, please e-mail me at r.friedman
17:56:33 <r_friedman> dkayiwa: at mindspring.com
17:56:41 <dkayiwa> r_friedman: ok
17:56:47 <r_friedman> dkayiwa: tks
18:07:31 *** pushkar has quit IRC
18:08:53 *** dkayiwa has quit IRC
18:08:59 *** dkayiwa has joined #openmrs
18:11:05 *** selvam1991 has joined #openmrs
18:24:32 *** harshadura has quit IRC
18:37:46 *** harshadura has joined #openmrs
18:43:34 *** selvam1991 has quit IRC
19:44:37 *** dkayiwa_ has joined #openmrs
19:44:39 *** dkayiwa has quit IRC
19:44:39 *** dkayiwa_ is now known as dkayiwa
19:54:14 *** magiclko has joined #openmrs
19:55:03 *** ShellZero has quit IRC
20:00:19 *** pulasthi7 has quit IRC
20:01:45 *** razoraxon_ has joined #openmrs
20:11:22 *** amaya_ has joined #openmrs
20:13:38 *** robbyoconnor has quit IRC
20:15:38 *** amaya_ has quit IRC
20:16:34 *** robbyoconnor has joined #openmrs
20:16:34 *** ChanServ sets mode: +v robbyoconnor
20:17:28 *** magiclko has quit IRC
20:26:41 *** razoraxon_ has quit IRC
20:27:44 *** selvam1991 has joined #openmrs
20:48:53 *** dkayiwa has quit IRC
20:50:32 *** nadee has joined #openmrs
21:03:35 *** bryq has quit IRC
21:28:15 *** selvam1991 has quit IRC
22:02:15 *** nadee has quit IRC
22:07:12 *** snoppy has quit IRC
23:22:54 *** panie has joined #openmrs
23:26:02 *** panie has quit IRC
23:37:26 *** maurya has joined #openmrs
23:38:23 *** r_friedman has quit IRC