Wiki Spaces


Get Help from Others

Q&A: Ask OpenMRS »
Discussion: OpenMRS Talk »
Real-Time: IRC Chat

IRC Logs

Child pages
  • 2009-06-26 - OpenMRS
Skip to end of metadata
Go to start of metadata
00:02:24 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [8759]: ncd: manage critics UI partial progress - critic contexts and types. <> || OpenMRS Forum: Re: custom queue module <> || OpenMRS Changesets: Changeset [8758]: patientsearchbycohortdef module: initial import <>
00:11:36 *** Keelhaul has quit IRC
00:13:18 <r0bby> bwolfe
00:13:30 *** Glen_ has quit IRC
00:14:02 <r0bby> it's not possible
00:14:19 <r0bby> changes will be necessary to the core
00:15:18 <bwolfe> r0bby: changes other than the jar??
00:15:27 <r0bby> yes
00:15:33 <r0bby> hold on i'll pull the docs up
00:15:35 <bwolfe> I've heard reports to the contrary...
00:15:40 <r0bby> hrm
00:16:00 <r0bby> I wonder if i could bootstrap it from my Activator
00:16:06 <r0bby> :X
00:16:11 <bwolfe> docs
00:16:21 <r0bby> hold
00:17:06 <r0bby>
00:17:09 <r0bby> the setup
00:17:10 <OpenMRSBot> <> (at
00:17:23 <r0bby> this would be easy -- *IF* i wasn't working in the environment i was
00:17:36 <r0bby> WAIT
00:17:55 <r0bby> it's possible
00:18:16 <r0bby> just answer: can I do the programmatic configuration via my activator?
00:18:48 <r0bby> WAIT!
00:18:53 <r0bby> it's possible i think :)
00:18:57 <r0bby> lemme try this
00:24:50 <bwolfe> r0bby: looks like you can change the sessionFactory bean in the application Context and pass in the configurationClass of AnnotationConfiguration
00:25:34 <r0bby> Okay
00:25:36 <r0bby> let me try
00:26:12 <r0bby> okay so let'
00:26:14 <r0bby> s try this
00:26:27 <r0bby> should I blog this if it works -- so other openmrs devs can do this?
00:26:56 <r0bby> but then the question becomes: how do I configure the persistent classes -- an XML file is still necessary
00:27:34 <r0bby>
00:27:37 <OpenMRSBot> <> (at
00:27:37 <r0bby> see that
00:28:06 <r0bby> i was thinking of doing
00:28:08 <r0bby> sessionFactory = new AnnotationConfiguration()
00:28:08 <r0bby> .addPackage("test.animals") //the fully qualified package name
00:28:11 <r0bby> .addAnnotatedClass(Flight.class)
00:28:14 <r0bby> .addAnnotatedClass(Sky.class)
00:28:16 <r0bby> .addAnnotatedClass(Person.class)
00:28:19 <r0bby> .addAnnotatedClass(Dog.class)
00:28:21 <r0bby> .addResource("test/animals/orm.xml")
00:28:24 <r0bby> configure()..buildSessionFactory();
00:28:29 <r0bby> :X
00:28:52 <r0bby> how do I override the hibernate.cfg.xml file
00:28:53 <bwolfe> r0bby: just change the core hibernate cfg.xml to include the module packages
00:29:24 <r0bby> can I just commit it?
00:31:41 <r0bby> wait how do I do that?
00:32:46 <r0bby> org.openmrs.module.* doesn't include org.openmrs.module.facilitydata
00:32:48 <r0bby> etc
00:32:55 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [8760]: searchkeylogging: Updated to work with openmrs 1.5 Added new thread option … <>
00:36:00 <bwolfe> r0bby: you can absolutely not commit it
00:36:33 <bwolfe> r0bby: hmm, thats unfortunate
00:37:57 <r0bby> is there a way to override it?
00:38:01 <r0bby> wait a sec
00:38:13 <bwolfe> r0bby: have you just tried it maybe?
00:38:55 <r0bby> I like to know it's gonna at least work
00:39:03 <r0bby> before i waste my time
00:40:14 <bwolfe> r0bby: I see
00:40:25 <r0bby> or at least visualize it working to an extent
00:40:40 <r0bby> There's a key piece that needs to work (the XML file)
00:41:25 <r0bby> what we *COULD* do is add a thing to the config.xml DTD to <hibernate-annotated-classes>...</hibernate-annotated-classes>
00:41:41 <r0bby> similar to mappedResouces or whatever it is now
00:42:14 <bwolfe> r0bby: yeah, maybe. if need be
00:42:29 <bwolfe> but I don't think thats necessary
00:42:52 <bwolfe> let me find the ticket where a guy tried to use it
00:42:54 <r0bby> even with JPA you still need a persistence.xml file
00:43:55 <bwolfe> r0bby:
00:44:07 <bwolfe> r0bby: hibernate is already told about mappingJarLocations
00:44:11 <bwolfe> r0bby: that might be good rnough
00:44:31 <bwolfe> r0bby: read through that entire ticket. both mike and john said that the annotations worked when they put the annotations jar into trunk
00:46:09 <r0bby> Wait, they're using it?
00:46:23 <r0bby> which module(s)?
00:48:14 <r0bby>
00:48:16 <OpenMRSBot> <> (at
00:48:20 <r0bby> read that
00:48:33 <r0bby> it still needs to be told which classes are annotated
00:50:05 <r0bby> it's not 100% voodoo
00:50:32 *** nribeka has joined #openmrs
00:50:32 *** ChanServ sets mode: +v nribeka
00:54:02 <r0bby> wonder if mike would mind if i took an excursion and coded support into the core to allow modules to use annotations
01:00:54 <r0bby> WAIIIT
01:01:49 <r0bby> could i just do <mappingFiles> Foo.class, etc</mappingFiles>
01:04:59 *** Echidna has quit IRC
01:08:15 <r0bby> bwolfe: would you be opposed to me using hibernate validator? :X
01:08:29 <r0bby> adds @NotNull, length checking
01:08:30 <r0bby> :X
01:08:53 *** jmiranda has joined #openmrs
01:08:53 *** ChanServ sets mode: +o jmiranda
01:09:59 <r0bby> jmiranda: just discovered hibernate annotations in modules *MAY* be possible
01:10:03 <r0bby> investigating :)
01:12:37 *** atomicturtle has joined #openmrs
01:17:43 <Mkop> bwolfe: how hard is it to set up commit emails on an svn repo?
01:17:52 <bwolfe> r0bby: <mappingFiles> is used in a different way
01:17:54 <Mkop> I want to set up my svn repo so my boss gets all my commits
01:17:55 <bwolfe> Mkop: incredibly easy
01:18:21 <Mkop> ok, googling
01:19:32 <bwolfe> Mkop: . thats openmrs's post-commit script in svnhome/hooks
01:19:44 <Mkop> I assume I need shell access to set these up
01:19:53 <bwolfe> Mkop: yeah
01:19:59 <Mkop> which means I have to wait for my coworker to get back from Indai
01:20:01 <Mkop> India*
01:20:05 <Mkop> or get my boss to set it up
01:20:18 <r0bby> well let's see first if it works
01:20:28 <r0bby> you may be right this could be pure voodoo :)
01:21:21 <r0bby> fan is a spinning
01:29:08 <Mkop> check out my new quit message - suggested by someone in another channel but appropos to here too
01:29:09 <Mkop> good night
01:29:19 *** Mkop has quit IRC
01:33:40 <r0bby> bwolfe: wait a sec...
01:33:59 <r0bby> the BaseOpenmrsMetadata classes.. the UUID etc aren't mapped using annotations :(
01:36:19 <bwolfe> nothing is mapped via annotations
01:37:05 <r0bby> it is :)
01:37:10 <r0bby> in my case it will be
01:37:29 <r0bby> how will that be handled if i use annotations :/
01:37:33 <bwolfe> r0bby: nothing in trunk will be. feel free to use it for testing though
01:38:14 <r0bby> what if I hijack it and put it in my module to use it?
01:38:26 <r0bby> since modules seem to be able to add :X
01:38:29 <r0bby> sigh
01:38:36 <r0bby> wait clash
01:38:37 <r0bby> :/
01:38:58 <r0bby> that just hit me
01:39:09 <r0bby> this wont work
01:40:10 <r0bby> WAIT
01:40:11 <r0bby> it may
01:40:20 <r0bby> I just have to override all the getters/setters
01:40:25 <r0bby> actually just getters
01:41:22 <r0bby> it'll work
01:41:30 *** atomicturtle has left #openmrs
01:41:34 <r0bby> you annotate getters
01:50:16 <r0bby> by the way ben, i'm blaming you in my email to let 'em know what's going on :-)
01:50:50 <bwolfe> blaming me for what?
01:50:57 <r0bby> me working on this :)
01:51:27 <bwolfe> who are you emailing ?
01:51:47 <r0bby> guess :P
01:51:53 <r0bby> Actually i haven't emailed him much
01:51:59 <r0bby> he wondered why i didn't last night
01:52:12 <r0bby> I instead, bitch and whine on twitter
01:52:25 <bwolfe> you have tonight to try to get it working. if you don't get it, move on to UI
01:52:39 <bwolfe> you HAVE to get something done. you've been spinning your wheels for 2 weeks now
01:52:55 <bwolfe> and before you email him, read the email 3 times
01:52:57 <bwolfe> maybe 4
01:53:07 <bwolfe> just _chill_
01:53:33 <r0bby> I got to figure this out
01:53:41 <r0bby> Im gonna try the annotations
01:53:53 <bwolfe> tonight. thats it
01:53:54 <r0bby> if i have to do some utility to get this to work in the module, i'll do it
01:54:07 <bwolfe> more than likely you'll have to modify core
01:54:10 <r0bby> Aye Aye captain!
01:54:27 <bwolfe> just put your module class or module package into the cfg.xml in core, put some annotations in your module, and go from there
01:55:02 <r0bby> bwolfe: how does it work for the mapping files?
01:55:12 <bwolfe> I can't remember
01:55:27 <r0bby> perhaps I can add something to allow for a custom hibernate config file
01:55:30 <bwolfe> I think the HibernateSessionFactoryBean class (in openmrs) tells the parent class about the mappingJars to look into
01:56:05 <bwolfe> and spring is told to look for all *.hbm.xml files in the jars
01:56:28 <bwolfe> its been way too long since I set all that up
01:56:47 <bwolfe> I'm out
01:56:50 <bwolfe> good luck.
01:57:08 *** bwolfe has quit IRC
01:57:17 * r0bby plans no sleep :D
02:20:10 *** upul has joined #openmrs
02:20:10 *** ChanServ sets mode: +v upul
02:58:57 *** Mkop has joined #openmrs
03:10:50 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Re: custom queue module <>
03:16:35 <upul> Mkop: how long did it take you to get the unaffiliated cloak?
03:17:14 <Mkop> you need to wait two weeks after you register, and then it's just a question of catching a staffer
03:17:53 <Mkop> mention in #freenode you want a cloak, then just hang around
03:18:01 <Mkop> why are you getting rid of your apache cloak?
03:18:35 <upul> nope, just asking
03:18:52 <Mkop> I'm sure there's more to it than that....
03:19:34 <r0bby> I'm in with the guifications devs
03:19:44 <r0bby> I tried to get an autorejoin plugin written
03:19:58 <upul> why do you have mkop2?
03:20:03 <r0bby> but it wound up being messy as at the time there wasn't a signal I could catch for parts
03:20:08 <Mkop> i.e. why is that my account name?
03:20:14 <r0bby> yes
03:20:34 <upul> who's mkop1
03:20:39 <Mkop> there is none
03:20:50 <Mkop> when I first started hanging out here, I was Mkop2 for some reason
03:21:21 <Mkop> then I switched to Mkop, so I grouped that
03:23:56 <r0bby> I have alot of nicks linked to mine
03:24:21 <r0bby> or i did :x
03:25:33 *** r0bby is now known as r0bby|arr
03:26:26 *** r0bby has joined #openmrs
03:26:53 *** r0bby is now known as Guest83788
03:27:12 *** r0bby|arr is now known as r0bby
03:27:21 *** Guest83788 has quit IRC
03:27:26 <r0bby> :)
03:27:31 <r0bby> tool
03:28:32 <r0bby> who is that.
03:29:04 <Mkop> what?
03:29:07 * r0bby eyes upul
03:29:35 <r0bby> upul: you *DO* realize mibbit puts your hostname in your Real Name field right?
03:29:59 <r0bby> and my ns password is so bad, even i can't type it myself
03:30:08 <r0bby> so good luck guessing it
03:30:36 <upul> when you send your password in irc it shows as ****
03:30:58 <Mkop> lol
03:31:04 <upul> for example my password is *******
03:32:23 <upul> :-) r0bby don't type you password if you are going to
03:38:25 * Mkop is looking for a good youtube link
03:39:39 <upul> have you seen hitler angry of vista not selling and xbox one
03:41:01 <upul> there were lots of them those two were better
03:42:51 <Mkop> ooh, I'll watch Ali G
04:03:36 <r0bby> oh emm gee
04:03:36 <r0bby> :D
04:12:59 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [8762]: mdrtb-14x: Add extension point to bottom of patient header on patient … <> || OpenMRS Changesets: Changeset [8761]: pihhaiti: Add extension point which adds HIV coinfection alert to patient … <>
04:13:44 <Mkop> lol
04:20:03 <r0bby> :DDDDDDDD
04:21:15 <r0bby> i thought it'd be a lot of work to add JPA annotation support
04:21:17 <r0bby> it wasn't
04:29:08 <Mkop> how do they do this?
04:29:10 <OpenMRSBot> <> (at
04:40:54 <r0bby> camera magic
04:41:06 <r0bby> Boston - More than a feeling rocks
05:17:02 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Tickets: Ticket #1593 (defect created): Module startup errors are now causing OpenMRS to fail <>
05:58:53 *** Mkop has quit IRC
06:45:32 *** upul has quit IRC
06:45:57 *** upul has joined #openmrs
06:45:57 *** ChanServ sets mode: +v upul
09:03:07 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [8763]: Initial file upload. <>
09:12:36 <r0bby> upul: =)
09:16:08 <upul> Hi r0bby
09:16:13 <upul> Michael is dead
09:21:35 <r0bby> welcome to yesterday :P
09:21:59 <r0bby> I'm figuring out how to modify Openmrs's core to make it work w/ JPA annotations :X
09:22:01 <upul> actually it's Friday afternoon
09:25:32 <upul> is it that using AnnotatedConfiguration and adding classes?
09:26:42 <r0bby> it's actually easy
09:26:45 <r0bby> the question is
09:26:51 <r0bby> What I'm thinking of doing
09:27:30 <r0bby> <annotatedClasses> org.openmrs.@MODULE_ID@.Foo </annotatedClass>
09:28:01 <r0bby> then I get a Class object using Class.forName(element) and add it to the AnnotationConfiguration
09:28:12 <r0bby> yeh im gonna do that
09:30:19 <r0bby> i wanna get this done it's possible and i know it
10:07:15 *** jmiranda has quit IRC
11:12:41 *** james_regen has joined #openmrs
11:12:42 *** ChanServ sets mode: +v james_regen
11:21:48 *** upul has quit IRC
11:29:17 *** nribeka has quit IRC
11:43:17 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: Re: custom queue module <>
12:00:41 *** bwolfe has joined #openmrs
12:00:41 *** ChanServ sets mode: +o bwolfe
12:02:35 *** nribeka has joined #openmrs
12:02:35 *** ChanServ sets mode: +v nribeka
12:38:54 *** Echidna has joined #openmrs
12:46:51 *** jmiranda has joined #openmrs
12:46:51 *** ChanServ sets mode: +o jmiranda
12:47:00 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Forum: need to know <>
13:11:02 *** nribeka has quit IRC
13:49:28 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [8764]: 1.5.x: Setting version to beta 2 <>
13:52:06 *** bmckown has joined #openmrs
13:52:06 *** ChanServ sets mode: +o bmckown
14:31:34 *** sdefabbiakane has joined #openmrs
14:38:43 <sdefabbiakane> unit testing question: is there any way to have the @ properties (@MODULE_PACKAGE@, etc.) get replaced properly in moduleApplicationContext.xml when unit tests are run, or do I need to go do that manually?
14:40:17 <bwolfe> I've never found a way to have it done
14:40:24 <bwolfe> its best to just change it to your package
14:40:29 <sdefabbiakane> alright, thanks
14:43:51 *** jmiranda has quit IRC
14:46:33 *** nribeka has joined #openmrs
14:46:33 *** ChanServ sets mode: +v nribeka
14:50:18 <r0bby> bwolfe: we just hit a snag
14:50:20 <r0bby> aor i did
14:50:40 <r0bby> what version of hibernate core do we use?
14:50:43 <r0bby> 3.2?
14:51:41 <nribeka> 3.2.5 i think r0bby
14:51:50 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [8765]: Added ability to have special characters in passwords again - … <>
14:52:08 <r0bby> it needs to be upgraded to 3.3.2 GA
14:52:38 <sdefabbiakane> bwolfe: while we're on the subject...any idea what's causing this error when I try to run tests?:
14:52:40 <sdefabbiakane> java.sql.SQLException: Column already exists: PASSWORD in statement [alter table users add column password varchar(255)]
14:52:41 <sdefabbiakane> at org.hsqldb.jdbc.Util.throwErrror(Unknown Source)
14:52:43 <sdefabbiakane> ...
14:52:58 <r0bby> otherwise the 3.4.x annotations are incompatible
14:54:02 <bwolfe> r0bby: a hibernate upgrade can probably be arranged
14:54:24 <r0bby> I'm gonna try the upgrade local
14:54:25 <bwolfe> sdefabbiakane: make sure you're using the right versions of the openmrs-tests api jar in your module
14:54:35 <sdefabbiakane> bwolfe: will do, thanks
14:54:41 <r0bby> if it fixes my problem, i'll file a a ticket and we'll go from there
14:55:54 <bwolfe> sdefabbiakane: I'd suggest you do a package-all in trunk (or whatever brnach you're working off of) and use those openmrs-* jars
14:58:27 <Echidna> hi
14:58:52 <Echidna> remote desktop over the internet =)
14:58:56 <Echidna> it's actually usabel
14:59:02 <sdefabbiakane> bwolfe: yeah, just did
14:59:57 <sdefabbiakane> thanks
15:00:01 <bwolfe> Echidna: yeah, we use remote desktop a lot from indianapolis to eldoret Kenya
15:00:39 <bwolfe> Echidna: eldoret only has a 2.5-5 kb connection most of the time. remote desktop is very slow, but we can get things done
15:01:24 <Echidna> damn
15:01:29 <Echidna> this is cable on both sides
15:01:32 <Echidna> and within a town
15:01:41 <r0bby> im hungry
15:01:58 <Echidna> of course, RD is set to maximum
15:02:05 <Echidna> for "10+ mbit"
15:02:33 *** atomicturtle has joined #openmrs
15:03:01 *** atomicturtle has left #openmrs
15:04:04 <Echidna> Resolution: 1920x1200x16bpp 0Hz
15:04:08 <Echidna> nice
15:04:16 <Echidna> it shows my local res
15:05:00 <r0bby> anybody here have the philly cheesesteak pizza from dominos
15:06:47 <nribeka> anybody got a blank on they find patient page?
15:06:55 <nribeka> build 8726
15:07:37 <r0bby> I do
15:07:49 <r0bby> it pisses me off
15:10:46 <bwolfe> Echidna: ah yes. I have EVERYTHING set to the lowest possible when RDPing to eldoret. I use a tiny little 640x800 window with funky colors, but at least I can scroll around
15:10:52 <bwolfe> nribeka: a blank ?
15:11:23 <bwolfe> nribeka: is it a javascript issue? Have you tried clearing your browser cache?
15:12:43 <nribeka> not working bwolfe
15:12:51 <nribeka> still got blank patient search
15:12:58 <nribeka> just the find patient part
15:13:03 <bwolfe> strange
15:13:04 <bwolfe> very strange
15:13:05 <nribeka> the create patient part is there
15:14:22 <nribeka> dojo is not defined
15:14:32 <nribeka> findPatient.htm line 173
15:15:02 <bwolfe> the find patient part is javascript
15:15:02 <bwolfe> versions? windows? firefox? tomcat
15:15:31 <nribeka> xp sp3
15:15:33 <nribeka> ff
15:15:47 <nribeka> 1.6.0 build 8726
15:16:05 <nribeka> tomcat 6.0.20
15:16:21 <nribeka> jdk 1.6.0_14
15:18:22 <nribeka> bwolfe, someone is reporting the samething in the implementers list
15:18:29 <nribeka> the same thing
15:19:16 <bwolfe> nribeka: benefit #1 of you working here. I'll be over in a second. :-)
15:19:31 * bwolfe is guessing that its a windows thing. because it works for him
15:19:53 * bwolfe recommends all users upgrade their operating systems to Ubuntu
15:20:00 <sdefabbiakane> Oh it's bouncing back and forth (seemingly at random...) between not finding the unit test class and so not even getting to the tests, and giving me a service not found error when I finally do get to the tests. I think I've spent longer trying to get unit tests to work than actually working on any specific feature.
15:23:40 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [8767]: mdrtb14. updated findPatient to fix a calendar popup error on the tb … <> || OpenMRS Tickets: Ticket #1592 (task closed): Password Should Allow Whitespaces and Non Alphanumeric Char <> || OpenMRS Changesets: Changeset [8766]: 1.5.x: Added ability to have special characters in passwords again - … <>
15:28:07 <r0bby> okay
15:28:17 <r0bby> bwolfe: please upgrade hibernate core?
15:28:32 <nribeka> sdefabbiakane: make sure you do clean project on eclipse
15:28:47 <r0bby> seemed to fix my issue :)
15:29:03 <sdefabbiakane> nribeka: yeah, have been =/.
15:31:40 <r0bby> one new lib is needed
15:32:31 *** jmiranda has joined #openmrs
15:32:32 *** ChanServ sets mode: +o jmiranda
15:35:12 <r0bby> javassist-3.9.0.GA.jar (it's including in the core zip file)
15:39:33 <Echidna> whats GA
15:39:42 <r0bby> general release i belieev
15:39:46 <r0bby> it's a Redhat thing
15:39:51 <r0bby> jboss really
15:44:45 <Echidna> ok screw you guys, i'm going home ;]
15:45:50 <sdefabbiakane> getting: org.openmrs.api.APIException: Service not found: class org.openmrs.module.remarks.Remark
15:45:51 <sdefabbiakane> wiki says the most likely cause of that is an error in the .hbm.xml file, but the whole thing works fine when I actually use it in openmrs. anyone have any ideas?
15:51:32 <jmiranda> sdefabbiakane, are you doing this: Context.getService(Remark.class)?
15:51:49 <sdefabbiakane> jmiranda: yes
15:52:06 <jmiranda> is it a Service? or a Pojo?
15:52:54 <sdefabbiakane> Remark.class? A pojo
15:54:48 <jmiranda> ok, so i think you might not want to say Context.getService(Remark.class)
15:54:54 <jmiranda> what are you trying to do
15:55:14 <jmiranda> Context.getService(RemarkService.class) would be the way to do it
15:55:51 <jmiranda> and you need to define the RemarkService bean in your moduleApplicationContext.xml file
15:57:15 <nribeka> bwolfe, i got 400mb of logs for you
15:57:20 <sdefabbiakane> really? Context.getService(Remark.class) works fine when it's in actual code, just not when it's in a unit test. I'll try that though.
15:57:33 *** Mkop has joined #openmrs
16:04:21 <sdefabbiakane> org.hibernate.MappingException: Unknown entity: org.openmrs.module.remarks.Remark
16:04:23 <sdefabbiakane> at org.hibernate.impl.SessionFactoryImpl.getEntityPersister(
16:04:25 <sdefabbiakane> at org.hibernate.impl.SessionImpl.getEntityPersister(
16:04:29 <sdefabbiakane> ...
16:04:30 <sdefabbiakane> that's what I'm getting now
16:20:59 <r0bby> sdefabbiakane: you need to pass .getService() your service's interface
16:21:09 <r0bby> *NOT* the entity
16:21:56 *** Keelhaul has joined #openmrs
16:21:56 *** ChanServ sets mode: +v Keelhaul
16:22:23 <sdefabbiakane> r0bby: I am passing it the interface =/
16:22:33 <jmiranda> sdefabbiakane, what are you trying to do?
16:23:37 <jmiranda> that error sounds more appropriate
16:24:10 <jmiranda> either the .hbm.xml file is not pointing to the right class
16:24:26 <jmiranda> or there isn't an .hbm.xml in the classpath
16:24:30 <bwolfe> sdefabbiakane: is your omod in the /dist? And is /dist in your .classpath?
16:24:39 <jmiranda> for that you might need to compile the module as a jar
16:24:42 <sdefabbiakane> bwolfe: yes to both
16:24:55 <sdefabbiakane> jmiranda: I'm trying to get unit tests running
16:24:55 <jmiranda> yeah, as bwolfe says
16:25:08 <sdefabbiakane> it's also as a jar, and the jar is also directly in the classpath
16:25:17 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Tickets: Ticket #1591 (defect created): User List and Patient Search Box Don't appear <>
16:25:29 <sdefabbiakane> all of this works fine in actual code, just not in unit tests
16:26:19 <jmiranda> sdefabbiakane, right ... but why are you trying to call Context.getService(Remark.class)
16:26:19 <jmiranda> wouldn't "new Remark()" work
16:26:43 <bwolfe> sdefabbiakane: and you only have one omod in /dist ?
16:26:43 <bwolfe> sdefabbiakane: and you've done the eclipse clean right before running the test ? (eclipse vs ant clean is different)
16:26:45 <jmiranda> it appears that you might be trying to persist a Remark through a DAO, correct?
16:26:47 <bwolfe> I can't remember where this process is fickle, but I know that I usually have problems when /dist is out of date, has more than one omod, or I need to do an eclipse clean
16:28:13 <sdefabbiakane> jmiranda: I'm trying to get an instance of the RemarkService from Context. I changed Context.getService(Remark.class) to Context.getService(RemarkService.class), and now I'm getting the mapping exception.
16:28:46 <jmiranda> ok
16:28:59 <jmiranda> that makes more sense
16:29:12 <sdefabbiakane> bwolfe: doing eclipse clean now
16:29:23 <jmiranda> so do the clean magic and see if that fixes it
16:29:58 <bwolfe> sdefabbiakane: it might be a problem having both the jar and the omod in the classpath
16:33:03 <sdefabbiakane> okay, so I did the clean, and now I'm back to getting this before it even gets to the unit testing part:
16:33:04 <sdefabbiakane> Class not found org.openmrs.module.remarksmodule.impl.RemarkServiceTest
16:33:06 <sdefabbiakane> java.lang.ClassNotFoundException: org.openmrs.module.remarksmodule.impl.RemarkServiceTest
16:33:08 <sdefabbiakane> which seems to be coming and going quasi-randomly
16:34:06 <bwolfe> sdefabbiakane: that error means that eclipse has not compiled your RemarkServiceTest class yet after your eclipse clean. you can force this by editing RemarkServiceTest and saving it
16:34:28 <nribeka> ctrl + b to build all
16:34:29 <nribeka> :D
16:34:53 <sdefabbiakane> good to know...
16:36:27 <sdefabbiakane> and it's working! thanks everyone.
16:37:14 *** winwin has joined #openmrs
16:37:34 <winwin> anyone sees this error before?
16:37:41 <winwin>
16:37:52 <bwolfe> sdefabbiakane: very good. sorry it took so long. :-/ did you have to take out the module jar ?
16:38:26 <bwolfe> winwin: the module has a unit test compiled into it by mistake
16:38:43 <sdefabbiakane> bwolfe: it's still in the folder, but the direct reference to it out of the classpath and made sure the .omod was there and that made it work
16:39:16 <bwolfe> sdefabbiakane: ah, good to know. can you add an faq or statement to that effect on the module unit testing page?
16:41:58 <jmiranda> bwolfe, re: the unit test issue
16:42:12 <sdefabbiakane> bwolfe: I can...although at the moment I'm not really sure what in my classpath/other configuration is making it all work, and what's unnecessary
16:42:17 <jmiranda> we might want to just add test classes or the test-openmrs*.jar into the webapp
16:42:29 <jmiranda> it's going to be a huge headache
16:43:00 <jmiranda> and the test jar minus the xml data files is probably a few hundred kb
16:43:01 <winwin> thanks bwolfe
16:43:02 <winwin> ::D
16:43:17 <bwolfe> jmiranda: or we could just add some dummy classes
16:43:41 <jmiranda> we only really need three classes, i think
16:43:49 <bwolfe> but I'd rather people just make their omods smaller and don't include those Test classes. :-)
16:43:51 <jmiranda> the context sensitive ones
16:44:13 <jmiranda> right, but what about the omods that already live in the module repository
16:44:35 <bwolfe> jmiranda: you can go through and upgrade them. ;-)
16:44:49 <jmiranda> maybe we should have a filter in the Module Framework that weeds out test classes
16:45:24 <bwolfe> jmiranda: the ModuleClassLoader could ignore them I suppose
16:45:45 <bwolfe> although, I'm not sure how "ignoring" them would really work
16:45:50 <r0bby> I no feel good :(
16:46:22 <jmiranda> that's what happens when you stay up until 5:30am banging your head ... against your head
16:46:54 <jmiranda> i assume your doors, windows, walls, and desks have all been demolished by now
16:47:31 <jmiranda> bwolfe, yeah spring isn't using our classloader is it?
16:48:30 <bwolfe> jmiranda: it isn't for certain things.
16:48:31 <jmiranda> i would recommend adding (1) all the tests (2) some of the tests (3) dummy test classes into the war
16:49:37 <jmiranda> we ran into the same issue this morning with evan/jeff rafter down in malawi
16:50:08 <jmiranda> and it's making me nervous because even with the exclude in my omod build.xml, i still run into it every so often
16:55:57 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [8770]: birtmodule: Created 2.0.x development branch to upgrade to BIRT 2.3.1. <> || OpenMRS Tickets: Ticket #1594 (task created): Infopath schema incorrectly has HL7 sextuplits storing the selected name in both triplets. <> || OpenMRS Changesets: Changeset [8769]: reporting: Created branch for 1.9.x backports. <> || OpenMRS Changesets: Changeset [8768]: patientmatching module: in dupesList.jsp, commented out 'location.reload's … <>
17:07:36 *** Mkop has quit IRC
17:07:44 *** Mkop has joined #openmrs
17:55:59 *** nribeka1 has joined #openmrs
17:56:39 *** bmckown has quit IRC
17:58:01 *** nribeka has quit IRC
17:58:10 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [8771]: ncd: manage critics partial progress - partial implementation of manage … <> || OpenMRS Tickets: Ticket #1591 (defect closed): User List and Patient Search Box Don't appear <>
18:02:42 *** bmckown has joined #openmrs
18:02:42 *** ChanServ sets mode: +o bmckown
18:49:15 <sdefabbiakane> so I'm having the problem where the class that has the unit tests is not getting found again, and I'm quite sure it's compiled this time. anyone know of any other reasons this might be happening?
18:49:41 <Keelhaul>
18:49:44 <Keelhaul> mystery solved
18:49:44 <OpenMRSBot> <> (at
18:52:42 <sdefabbiakane> Class not found org.openmrs.module.remarks.impl.RemarkServiceTest
18:52:43 <sdefabbiakane> java.lang.ClassNotFoundException: org.openmrs.module.remarks.impl.RemarkServiceTest
18:52:45 <sdefabbiakane> =/
18:53:07 <Keelhaul> when loading a module?
18:53:21 <sdefabbiakane> when attempting to run unit tests for a module
18:53:24 <Keelhaul> oh
18:53:42 <Keelhaul> is eclipse set to auto build?
18:54:20 <sdefabbiakane> it is, but I disabled that and built it manually, too
18:55:10 <sdefabbiakane> that was the issue when I was having this problem earlier, but not now
18:55:57 <nribeka1> i wonder why there's still issues with utf8
18:56:16 <nribeka1> database are created by default for openmrs to use utf8, right?
19:02:02 <Mkop> Keelhaul: that link is hilarious
19:02:03 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Tickets: Ticket #1596 (defect created): Failure to serialize on Linux <> || OpenMRS Tickets: Ticket #1595 (defect created): Refreshing by location.reload() causes org.apache.commons.logging.LogConfigurationException <> || OpenMRS Modules: BirtReportModule 2.0.0-dev uploaded to OpenMRS Module Repository <>
19:04:13 <bwolfe> nribeka1: yes, for a long time now. but from his screenshot it looks like they are, not db issues
19:04:55 <bwolfe> sdefabbiakane: refresh the /build folder and see if you can find the /org/openmrs/module/remarks/impl/RemarkServiceTest class
19:12:51 <sdefabbiakane> bwolfe: it's was...thanks. I'll fix that.
19:13:12 <bwolfe> sdefabbiakane: thats where eclispe compiles to
19:13:25 <bwolfe> sdefabbiakane: so if its not there, eclipse hasn't compiled it. your ant task should compile there too
19:22:54 <sdefabbiakane> bwolfe: right, it was doing that earlier. And for some reason, it's not now =/.
19:23:44 <bwolfe> strange
19:23:47 <bwolfe> do you have build errors ?
19:23:58 <bwolfe> eclipse will stop building automatically if you have any build errors in your project
19:24:02 <sdefabbiakane> nope
19:24:13 <sdefabbiakane> I think eclipse just doesn't like me
19:24:43 <bwolfe> sdefabbiakane: its possible. did you accidentally mention Netbeans in its presence?
19:25:21 *** jmiranda has quit IRC
19:25:26 <sdefabbiakane> bwolfe: no, but I have been yelling at it all morning and yesterday afternoon...any such feelings are definitely mutual
19:27:25 <Mkop> interesting that the most productive days are when you love the language you're working in
19:27:35 <Mkop> the causality probably works both ways
19:27:39 <Mkop> positive feedback
19:27:47 <bwolfe> I find its just when I like the project
19:27:58 <bwolfe> other days I end up talking on IRC too much ;_)
19:27:59 <bwolfe> ;-)
19:30:01 <Mkop> yeah, that too
19:30:06 *** james_regen has quit IRC
19:42:05 <Keelhaul> Iranian state television's Channel Two is playing a Lord of the Rings marathon in an attempt to keep people inside watching hobbits and not protesting in the streets. Normally, people in Tehran are treated to one or two Hollywood movies a week, but with recent events the government hopes that sitting through a nine-hour trilogy will take the fight out of most of the protesters.
19:42:38 <bwolfe> dvr ftw
19:43:06 <Keelhaul> whats dvr
19:45:14 <bwolfe> digital video recorder
19:45:23 <Keelhaul> o
19:45:27 <bwolfe> it lets you record the current tv stream
19:45:37 <bwolfe> most cable providers in the US offer it now
19:45:40 <bwolfe> quite convenient
19:45:48 <Keelhaul> is it software or a box
19:45:49 <bwolfe> tivo is a dvr
19:46:00 <Keelhaul> isnt tivo like a the only product available
19:46:04 <Keelhaul> -a
19:46:16 <bwolfe> a dvr is a box. but you can also get just the software and put it onto a computer. I did that for a while
19:46:23 <Keelhaul> i heard theres a fee for using it
19:46:38 <bwolfe> tivo is the only one that isn't attached to a company
19:46:45 <bwolfe> but most companies offer their own
19:46:45 <Keelhaul> well
19:46:49 <Keelhaul> arent there aftermarket ones
19:46:51 <bwolfe> tivo is x dollars per year
19:46:52 <Keelhaul> that let you do whatever you want
19:46:59 *** meonkeys has joined #openmrs
19:47:00 <bwolfe> DVRs are usually an extra $5 per month
19:47:05 <Keelhaul> lame
19:47:19 <bwolfe> mythbuntu is a good one
19:47:29 <Keelhaul> i can get most american tv shows from torrents an hour after they were aired
19:48:30 <bwolfe> yeah, because people have a DVR or mythbox that records it! :-)
19:48:51 <Keelhaul> yea
19:48:56 <Keelhaul> its sufficient that some people have one
19:49:01 <Keelhaul> no need for everyone to pay =)
19:49:35 <Keelhaul> sometimes torrents are uploaded minutes after premiere
19:49:37 <Keelhaul> i wonder how they do it
19:49:42 <Keelhaul> real time encoding and uploading? =o
19:50:59 <bwolfe> Keelhaul: must be
19:51:16 <bwolfe> Keelhaul: or they got it early
19:51:22 <nribeka1> omg, chica requires socket hl7 listener but socket hl7 listener is not working because of uuid
19:52:02 <bwolfe> nribeka1: there was a guy in the forum that fixed it already
19:52:07 <bwolfe> nribeka1: see if you can get the patch from him
19:52:42 <Keelhaul> bwolfe: well the videos have the fox or whatnot watermarks
19:53:58 <bwolfe> Keelhaul: yeah, could be an early review. do they have commercials, or are those out too?
19:54:21 <Keelhaul> out
19:54:32 <nribeka1> it's the sqldiff problem
19:54:33 <Keelhaul> yea, thats nearly impossible to do in real time
19:54:43 <nribeka1> the patch is for sqldiff bwolfe/
20:00:35 <sdefabbiakane> so bwolfe, any suggestions for forcing eclipse to compile this test? as far as I can tell it's doing nothing at all.
20:01:35 <bwolfe> editing/saving the file doesn't do it ?
20:01:44 <bwolfe> anything in your "Problems" view ?
20:06:02 <sdefabbiakane> ...
20:06:04 <sdefabbiakane> ...
20:06:05 <sdefabbiakane> ...
20:06:10 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [8772]: 1.5.x: Split the uuid liquibase changesets into individual calls - #1514 <>
20:06:35 <sdefabbiakane> I added a blank line, resaved the .classpath file, and it works
20:06:51 <bwolfe> sdefabbiakane: thats the same as rebuilding all in eclipse
20:07:16 <bwolfe> sdefabbiakane: are you sure you have auto-build turned back on?
20:07:20 <sdefabbiakane> right, but I've rebuilt everything several times other ways and it's worked fine
20:07:22 <sdefabbiakane> yes
20:07:41 <sdefabbiakane> or rather
20:07:44 <sdefabbiakane> it hasn't done anything
20:10:44 <bwolfe> sdefabbiakane: hmm
20:10:55 <bwolfe> sdefabbiakane: did your test class get off the src classpath somehow?
20:11:20 <bwolfe> eclipse only builds files under the directories specific as "src" in the .classpath file
20:11:59 <sdefabbiakane> nope, that's been there the whole time
20:34:03 *** nribeka1 has quit IRC
20:34:34 *** sdefabbiakane has quit IRC
20:38:17 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [8773]: mdrtb14. changed MdrtbFactory to a singleton for performance, and added … <>
20:49:59 *** jmiranda has joined #openmrs
20:49:59 *** ChanServ sets mode: +o jmiranda
20:51:02 *** bwolfe has quit IRC
20:52:36 *** bmckown has quit IRC
21:10:21 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Tickets: Ticket #1597 (task created): DAOException: Error while running sql: CREATE TABLE `report_object` <>
21:42:19 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Tickets: Ticket #1601 (defect created): BIRT Report Module displays unhelpful error message when the BIRT Runtime Engine fails to startup <> || OpenMRS Tickets: Ticket #1600 (defect created): BirtReportException: The specified directory exists, but is not a directory at: /home/tomcat/.OpenMRS/reports/datasets <> || OpenMRS Tickets: Ticket #1597 (defect closed): DAOException: Error while running sql: CREATE TABLE `report_object` <> || OpenMRS Tickets: Ticket #1598 (defect closed): DAOException: Error while running sql: CREATE TABLE `report_object` <> || OpenMRS Changesets: Changeset [8775]: birtmodule: Upgrade BIRT Report Module to BIRT Runtime/Design Engine API … <> || OpenMRS Tickets: Ticket #1599 (defect created): DuplicateMappingException: Duplicate class/entity mapping org.openmrs.reporting.ReportObjectWrapper <> || OpenMRS Changesets: Changeset [8774]: reportingcompatibility: Fixed SQL diff issue when tables already exist … <> || OpenMRS Tickets: Ticket #1598 (defect created): DAOException: Error while running sql: CREATE TABLE `report_object` <>
22:14:21 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [8777]: birtmodule: Backported fixes for tickets (#1600, #1601) to BIRT Report … <> || OpenMRS Changesets: Changeset [8776]: birtmodule: Fixed module deployment issues related to module startup and … <>
22:33:30 *** Agnor has joined #openmrs
22:33:34 <Agnor> yo
22:33:35 *** Mkop has quit IRC
22:46:25 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Tickets: Ticket #1600 (defect closed): BirtReportException: The specified directory exists, but is not a directory at: /home/tomcat/.OpenMRS/reports/datasets <> || OpenMRS Tickets: Ticket #1601 (defect closed): BIRT Report Module displays unhelpful error message when the BIRT Runtime Engine fails to startup <> || OpenMRS Changesets: Changeset [8778]: birtmodule: In trunk, fixed module deployment issues related to module … <>
23:00:19 *** Mkop has joined #openmrs
23:05:58 <Keelhaul> i'm getting into eclipse rcp + swt
23:06:02 <Keelhaul> it's actually quite nice
23:06:26 <Mkop> definition: oxymoron: getting an email from an account that says at the bottom "Sent from my blackberry"
23:06:29 <Keelhaul> too bad this graphical editor costs 250 bucks or so
23:13:48 <r0bby> too bad it also blows :)
23:13:52 <r0bby> use swing :)
23:15:59 <Keelhaul> nah
23:16:02 <Keelhaul> swing feels unnatural
23:24:06 *** jmiranda has quit IRC
23:33:13 *** jmiranda has joined #openmrs
23:33:13 *** ChanServ sets mode: +o jmiranda
  • No labels