IRC Chat : 2013-03-23 - OpenMRS

01:25:27 <djazayeri> wyclif_, jkeiper : I'm debugging a metadata sharing error, and I can't get the new unit test I write to run. It's giving me a very strange NoClassDef exception for org/junit/Assume$AssumptionViolatedException
01:25:34 <djazayeri> ever seen this before?
01:27:45 <wyclif_> nope, have you tried mvn clean install
01:28:14 <wyclif_> djazayeri, or mvn package to rebuild the test jars
01:28:22 <wyclif_> djazayeri, nope, have you tried mvn clean install
01:29:45 <djazayeri> wyclif_: I'm trying mvn clean package. Let me try mvn clean install
01:30:11 <djazayeri> wyclif_: but this happens in both intellij and the command line, and it only happens for my test, not for all the existing tests; I don't see anything I'm doing differently...
01:31:59 <wyclif_> djazayeri, hmm!! that is strange
01:32:16 <djazayeri> wyclif_: doesn't help. Oh well, maybe I'll try hacking this into an existing test just to get something to run...
01:32:21 <djazayeri> wyclif_: gotta run now, thanks.
01:32:29 <wyclif_> djazayeri, may there is a different version of junit being added by the module or its jars
01:32:37 <wyclif_> djazayeri, ok
01:40:38 *** rajith has joined #openmrs
01:49:34 *** jb360 has joined #openmrs
02:03:20 *** harshadura has joined #openmrs
02:08:39 <mseaton> djazayeri: you still there?
02:09:00 <djazayeri> mseaton: yes; hating MDS's test framework
02:10:11 <mseaton> djazayeri: not guilty. question about another annoying unit test adoption: is there any easy way to use the same set of dbunit xml files for 1.9.1- and 1.9.2+, with the orders.urgency change?
02:10:58 <djazayeri> mseaton: not that I'm aware of. Maybe there's a way to override the executeDataset method and do something hacky in there...
02:12:24 <mseaton> hmm. i've done that before actually djazayeri now that you mention it. i can't remember where i did that now, but at the time i was really annoyed by having to come up with random uuids for everything (as well as lots of audit information) for my dbunit files, so i added something like [standardData] to the xml, and then replaced that in bulk before
02:12:24 <mseaton> applying it...
02:12:47 <mseaton> djazayeri: thanks for the tip
02:12:52 <djazayeri> mseaton: doesn't sound fun, but might be the way to go
02:13:40 <djazayeri> mseaton: ever seen this before?
02:13:40 <djazayeri> java.lang.NoClassDefFoundError: org/junit/Assume$AssumptionViolatedException
02:14:33 <mseaton> djazayeri: not that i can recall. you say this only happens for one test class in a suite of other tests that don't have this issue?
02:14:44 <djazayeri> mseaton: only the test that I added
02:15:47 <mseaton> djazayeri: is your test at all non-standard? eg. it extends BaseModuleContextSensitiveTest, has Test at the end of the classname, etc
02:16:00 <mseaton> djazayeri: this is in mds?
02:16:08 <djazayeri> mseaton: actually I just verified that if I add my line of code into an existing test, it breaks it.
02:16:40 <djazayeri> mseaton: though all I'm doing is
02:16:40 <djazayeri> Privilege p = new Privilege();
02:16:40 <djazayeri> p.setName("Priv 1");
02:16:40 <djazayeri> p.setDescription("Description");
02:16:40 <djazayeri> p.setUuid(UUID.randomUUID().toString());
02:17:31 <mseaton> that's all djazayeri ?
02:18:03 <djazayeri> mseaton: and then I return the privilege (this extends BaseShareTest and uses ShareTestHelper)
02:18:25 <mseaton> djazayeri: i assume this is in mds, and i can reproduce with a very simple step? happy to try to sanity check.
02:18:48 <djazayeri> mseaton: sure, it's MDS. Open up ConceptShareTest, make sure it runs right.
02:19:00 <mseaton> djazayeri: you mean out of the box?
02:19:04 <djazayeri> Yes
02:19:30 <djazayeri> mseaton: then add those 4 lines to prepareExportServer() and also add p to the returned list.
02:19:37 <djazayeri> mseaton: run again, and verify that it fails.
02:20:12 <djazayeri> mseaton: (actually the test turns green, but it says Terminated rather than Passed, and the console shows the NoClassDefFoundError
02:20:26 *** jb360 has quit IRC
02:20:47 <djazayeri> mseaton: I assume there's some funky classloading stuff somehow implied by the ConceptMock.newInstance() that Rafal is otherwise using.
02:21:47 *** jb360 has joined #openmrs
02:22:28 <mseaton> djazayeri: stay tuned...
02:22:39 <djazayeri> mseaton: don't waste time on this...
02:23:39 <mseaton> djazayeri: tests pass with clean checkout
02:28:11 <mseaton> djazayeri: i get that error too.
02:28:20 <mseaton> djazayeri: i notice that ConceptMock contains this import: junit.framework.Assert;
02:28:35 <djazayeri> mseaton: yeah, I tried making my own PrivilegeMock, but it didn't work
02:29:00 <djazayeri> mseaton: maybe I just didn't something wrong, but I'm going to stop messing with that, and do it in a hackier way, then ask Rafal for help when he's back...
02:29:17 <mseaton> djazayeri: try changing that to org.junit.Assert
02:29:43 <djazayeri> mseaton: it doesn't work in another class that has nothing to do with ConceptBuilder
02:31:52 <mseaton> djazayeri: http://forum.springsource.org/showthread.php?60230-spring-test-breaks-in-Junit-4-5
02:31:56 <OpenMRSBot> <http://ln-s.net/+sT1> (at forum.springsource.org)
02:32:11 <djazayeri> mseaton: yeah, but I have no idea where an old junit would be coming from...
02:32:32 <djazayeri> mseaton: hmm, unless it has something to do with the way MDS works with multiple OpenMRS versions...
02:32:46 <mseaton> djazayeri: looks like a spring + junit compatibility thing
02:32:53 <mseaton> djazayeri: might be
02:50:03 <djazayeri> mseaton: managed to replicate my error in a non-context-sensitive test
02:51:13 <mseaton> djazayeri: does that make you any closer to a solution?
02:51:51 <mseaton> djazayeri: or does that exclude the conditional bean loading as an issue?
02:52:09 <djazayeri> mseaton: I mean that I managed to create a proper failing unit test for the bug I've found.
02:52:40 <djazayeri> mseaton: I already know the solution, I just wanted to be able to test it without having to keep redeploying the module and re-running jetty to run the Mirebalais Activator.
02:52:47 <mseaton> djazayeri: i see. so you can punt this other issue
02:52:59 <djazayeri> mseaton: of course, I ended up spending 3 hours trying to figure out how to do a unit test...
02:53:06 <djazayeri> mseaton: yeah, I'll punt until Rafal gets back.
02:54:54 *** harshadura has quit IRC
03:08:23 *** harshadura has joined #openmrs
03:16:21 <downey> When is rafal back?
03:16:25 <downey> ^ djazayeri
03:28:26 *** lh has joined #openmrs
03:28:26 *** lh has joined #openmrs
03:59:49 *** Hasintha_i has joined #openmrs
04:03:03 *** Hasintha_i has quit IRC
05:09:06 *** khayamuddin31 has joined #openmrs
05:11:08 <khayamuddin31> in form2program module are we are creating each entry for each program and encounter type?
05:16:33 *** harshadura has quit IRC
05:16:40 *** denuwanthi has joined #openmrs
05:26:03 <OpenMRSBot> Recent updates in the world of openmrs: Shazin Sadakath: Android 4.1.2 Jelly Bean and Arduino Mega 2560 with USB Host Shield Communication <http://shazsterblog.blogspot.com/2013/03/android-412-jelly-bean-and-arduino-mega.html>
05:30:27 *** harsz89 has joined #openmrs
05:48:32 *** wluyima has joined #openmrs
05:48:32 *** wyclif_ has quit IRC
05:55:27 *** khayamuddin31 has quit IRC
06:21:18 *** denuwanthi has quit IRC
06:36:21 *** Anuruddha has joined #openmrs
06:41:49 *** dioodeS has joined #openmrs
06:42:20 <dioodeS> Hi, I am setting up the development environment
06:42:43 <dioodeS> I faced some problems and I would Like some help
06:48:43 *** dioodeS has quit IRC
07:43:07 *** rajith has quit IRC
07:54:59 *** rajith has joined #openmrs
08:50:35 *** Anuruddha has quit IRC
08:52:36 *** Anuruddha has joined #openmrs
09:02:55 *** rajith has quit IRC
09:31:17 *** rajith has joined #openmrs
09:46:16 *** rajith has quit IRC
13:06:14 *** Anuruddha has quit IRC
13:37:06 *** rajith has joined #openmrs
14:27:06 *** harsha89 has joined #openmrs
14:31:35 *** harsz89 has quit IRC
14:31:49 *** harsha89 has quit IRC
14:32:07 *** harsz89 has joined #openmrs
15:33:14 *** kavuri has joined #openmrs
15:34:29 *** harsz89 has quit IRC
15:45:38 *** harsz89 has joined #openmrs
15:51:02 *** kavuri has quit IRC
16:07:27 *** sashrika has joined #openmrs
16:11:12 <sashrika> Hi all... Gsoc organisation registration opened yesterday...Hope to see you there :)
16:37:40 *** wluyima has quit IRC
16:39:29 *** ruwanego has joined #openmrs
16:45:25 *** ruwanego has quit IRC
16:45:53 *** ruwanego has joined #openmrs
16:46:49 *** ruwanego has joined #openmrs
17:29:01 *** kavuri has joined #openmrs
17:33:58 *** k-joseph has joined #openmrs
17:44:39 *** dkayiwa has joined #openmrs
17:44:42 *** wluyima has joined #openmrs
17:46:31 *** robbyoconnor has quit IRC
17:49:24 *** GitHub134 has joined #openmrs
17:49:24 <GitHub134> [openmrs-core] guilhermejccavalcanti opened pull request #256: TRUNK-2280 - Refactor maximum length checking in the view layer (master...TRUNK-2280) http://git.io/j0b97A
17:49:24 *** GitHub134 has left #openmrs
17:53:30 *** robbyoconnor has joined #openmrs
17:53:30 *** ChanServ sets mode: +v robbyoconnor
18:03:04 *** rajith has quit IRC
18:04:30 <downey> sashrika: actually it opened 18 March :)
18:32:57 *** sashrika has quit IRC
18:36:53 *** dkayiwa has quit IRC
18:40:52 *** k-joseph has quit IRC
18:43:14 *** dkayiwa has joined #openmrs
18:52:04 *** lh has joined #openmrs
18:52:04 *** lh has joined #openmrs
18:55:33 *** kavuri has quit IRC
19:03:17 *** dkayiwa has quit IRC
19:10:08 *** lh has quit IRC
19:16:25 *** dkayiwa has joined #openmrs
19:51:33 *** lh has joined #openmrs
20:12:04 *** ruwanego has quit IRC
20:16:11 *** sandeep_hukku has joined #openmrs
21:10:27 *** sandeep_hukku has quit IRC
21:11:04 *** dkayiwa has quit IRC
21:22:29 *** lh has quit IRC
22:16:52 *** librea has joined #openmrs
22:17:07 <librea> hello friends
22:18:08 <librea> what is OPENMRS' s licence?
22:18:52 *** jkeiper has quit IRC
22:19:10 *** jkeiper has joined #openmrs
22:19:10 *** ChanServ sets mode: +v jkeiper
22:23:08 *** librea has quit IRC
22:56:38 <burke> librea: OpenMRS Public License 1.0 http://go.openmrs.org/license
22:59:24 <robbyoconnor> burke!!!!
22:59:55 <burke> hey robbyoconnor
23:00:32 <robbyoconnor> did you get my pm earlier?
23:01:04 <robbyoconnor> (by earlier I mean days ago)
23:01:05 <burke> yeah.
23:01:11 <burke> but u were gone
23:01:16 <robbyoconnor> Yeah -- school
23:01:24 <burke> I guess you haven't discovered IRCCloud yet, eh?
23:01:48 <robbyoconnor> It took me a long time to set up my irc client.
23:01:56 <robbyoconnor> I have it -- just too lazy to set it up
23:02:34 <burke> set it up? What does that mean? It took me ~30 seconds to "set up" IRCCloud. :-)
23:04:25 <burke> robbyoconnor: I know the Groovy module could benefit from some love... both UI and under the hood. What specifically were you thinking for GSoC?
23:15:32 <robbyoconnor> well there are a few tickets that could use implementing -- I never had time to do it :/
23:15:42 <robbyoconnor> .let me declaim them
23:17:04 <robbyoconnor> wow...
23:17:13 <robbyoconnor> yeh all groovy RFE tickets
23:17:20 <robbyoconnor> there's enough if we took 1 or 2
23:18:31 <robbyoconnor> I wrote it and basically ripped http://groovyconsole.appspot.com
23:24:13 <burke> yup. it works pretty well. the UI could use some tweaks, but I think the higher priority would be a more robust backend (supporting scripting needs of the API, managing all running scripts, better handling of long-running scripts, streaming output to a file, exposing a REST call so you could submit a script to OpenMRS programmatically)
23:32:16 <robbyoconnor> better idea would be: use it as a jumping point
23:32:47 <robbyoconnor> It's been a LONG time since I touched that code
23:33:11 <robbyoconnor> did we ever add the ability to dynamically add bindings of the services?
23:33:25 <robbyoconnor> that'd be an easy thing to code actually
23:33:43 <robbyoconnor> anyways I've released a load of tickets I been meaning to do that
23:34:23 <robbyoconnor> I'd be willing to co-mentor on this if needed -- I know that codebase fairly well...unless it's radically changed