| 00:01:24 | *** rafa has joined #openmrs |
| 00:01:24 | *** ChanServ sets mode: +v rafa |
| 00:08:25 | *** morristic has joined #openmrs |
| 00:20:56 | *** wyclif has joined #openmrs |
| 00:22:09 | *** r_friedman has quit IRC |
| 00:54:18 | *** jportela has joined #openmrs |
| 00:54:18 | *** ChanServ sets mode: +v jportela |
| 01:26:20 | <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Modules: Validation Module 1.0.1 uploaded to OpenMRS Module Repository <https://dev.openmrs.org/modules/view.jsp?module=validation&version=&1.0.1> |
| 02:06:19 | *** jportela has quit IRC |
| 04:38:12 | *** surangak has joined #openmrs |
| 05:09:53 | *** surangak has quit IRC |
| 05:32:02 | *** surangak has joined #openmrs |
| 06:37:42 | *** dkayiwa has joined #openmrs |
| 06:54:52 | <surangak> good morning dkayiwa ! |
| 06:54:59 | <surangak> heard the happy news ? |
| 06:55:08 | <dkayiwa> surangak: hahahahaha :) |
| 06:55:28 | <surangak> I guess Ben is away looking for tickets :P |
| 06:55:58 | <dkayiwa> surangak: he is on holiday :) |
| 06:56:24 | <surangak> ohoo, I seee ... so is it only the two of us these days ? |
| 06:56:31 | <surangak> or are u going on holiday too ? :( |
| 06:56:41 | <dkayiwa> surangak: oh yeah :) |
| 07:16:32 | <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Modules: XForms 4.0.9 uploaded to OpenMRS Module Repository <https://dev.openmrs.org/modules/view.jsp?module=xforms&version=&4.0.9> |
| 07:43:00 | <surangak> hi dkayiwa .. just wondering.. when will u and Ben return ? ( I asssume Rafa wil also go on leave soon :( |
| 07:52:26 | <dkayiwa> surangak: Wyclif and Rafa will be on |
| 07:52:47 | <dkayiwa> surangak: not sure of Ben, but for me, will be back 8th Jan |
| 07:53:40 | <surangak> ooooooooooh , Happpy holidays to you Daniel :) |
| 07:53:52 | <surangak> rafa, and I will hold the fort while u guys are awayyy |
| 07:54:29 | <dkayiwa> :) |
| 08:29:30 | *** bryq has joined #openmrs |
| 08:29:30 | *** ChanServ sets mode: +v bryq |
| 08:49:46 | *** dkayiwa has left #openmrs |
| 08:55:30 | *** bryq has quit IRC |
| 10:14:45 | *** surangak_ has joined #openmrs |
| 10:14:48 | *** surangak has quit IRC |
| 10:29:04 | *** bryq has joined #openmrs |
| 10:29:04 | *** ChanServ sets mode: +v bryq |
| 10:35:41 | *** surangak_ has quit IRC |
| 12:00:12 | *** james_regen has joined #openmrs |
| 12:00:12 | *** ChanServ sets mode: +v james_regen |
| 13:26:54 | *** downeym has joined #openmrs |
| 13:26:54 | *** OpenMRSBot sets mode: +o downeym |
| 13:26:54 | *** ChanServ sets mode: +o downeym |
| 13:31:49 | *** rafa has quit IRC |
| 13:49:48 | *** jportela has joined #openmrs |
| 13:49:48 | *** ChanServ sets mode: +v jportela |
| 13:50:02 | *** jportela has left #openmrs |
| 13:50:27 | *** r4friedman has joined #openmrs |
| 13:50:48 | *** r4friedman is now known as r_friedman |
| 13:58:56 | *** wyclif has quit IRC |
| 14:25:09 | *** downeym has quit IRC |
| 14:31:45 | <r_friedman> djazayeri: hi darius, are you actually there? have you been up all night? |
| 14:48:58 | *** wyclif has joined #openmrs |
| 16:02:26 | *** james_regen has left #openmrs |
| 16:15:33 | <r_friedman> hi wyclif, got a minute? |
| 16:16:15 | <wyclif> hi r_friedman |
| 16:16:46 | <r_friedman> wyclif, do you have any idea why i can't resolve a referenc to javax.persistence? |
| 16:18:30 | <wyclif> hmm |
| 16:18:46 | <wyclif> is that in core? |
| 16:18:57 | <r_friedman> yes |
| 16:19:01 | <r_friedman> it's also in modules |
| 16:19:08 | <r_friedman> well let me take that back |
| 16:19:19 | <r_friedman> javax yes, javax.persistence no |
| 16:19:26 | <wyclif> r_friedman, i mean are you working on something in core? |
| 16:19:36 | <r_friedman> no in a module |
| 16:19:59 | <wyclif> r_friedman, are you using eclipse? |
| 16:20:21 | <r_friedman> wyclif: yes. my problem is to persist an enum, is that done anywhere in omrs? |
| 16:21:01 | <wyclif> r_friedman, those sound like 2 different things you want to solve |
| 16:21:14 | <wyclif> r_friedman, which one should i start with? |
| 16:21:41 | <r_friedman> wyclif: no, just one. everything i look at says to annotate the field to hold the enum with @Enumreated |
| 16:21:57 | <r_friedman> which is found in javax.persistence. |
| 16:23:01 | <r_friedman> wyclif: of course, it's @Enumerated |
| 16:23:03 | <wyclif> so you want to map a filed that is an enum type, right? |
| 16:23:12 | <r_friedman> yes |
| 16:23:16 | <wyclif> so you want to map a field that is an enum type, right? |
| 16:23:40 | <wyclif> r_friedman, let me add a code snippet for you at pastebin |
| 16:23:49 | <r_friedman> wyclif: tks |
| 16:27:20 | <wyclif> r_friedman, http://pastebin.com/imsXkNBX |
| 16:27:44 | <wyclif> r_friedman, replace everything starting with 'your' with your actual values |
| 16:28:06 | <r_friedman> wyclif: right, looks perfect |
| 16:28:08 | <wyclif> r_friedman, and dont forget to change the length value |
| 16:28:35 | <wyclif> r_friedman, i left it at 50 though that should be good enough for most enum values |
| 16:28:40 | <r_friedman> ha, i've got to change my datatype from int to char |
| 16:29:13 | <r_friedman> wyclif: tks, way is clear now |
| 16:29:22 | <wyclif> r_friedman, and make sure your required openmrs is 1.7+ because it is when we adde the openmrs hibernate enum type |
| 16:29:44 | <r_friedman> wyclif: tks, 1.8 it is |
| 16:29:52 | <wyclif> r_friedman, that is fine |
| 16:31:00 | <wyclif> r_friedman, FYI yourFullyQualifiedJavaClassName is meant to be the enum class name |
| 16:31:17 | <wyclif> r_friedman, and not the persistent object type |
| 16:31:28 | <r_friedman> wyclif: tks, that means it has to have its own file |
| 16:31:38 | <wyclif> r_friedman, not really |
| 16:32:21 | <wyclif> r_friedman, it could be an inner class as long it is public and the containing class is public |
| 16:32:45 | <r_friedman> ok, i think that will work fine |
| 16:33:01 | <wyclif> r_friedman, let me know if u get it working |
| 16:33:11 | <r_friedman> wyclif: will do |
| 16:53:04 | *** robbyoconnor has quit IRC |
| 17:06:51 | <r_friedman> wyclif: wyclif, could you point me to an example of the enum class being declared? |
| 17:09:24 | <wyclif> r_friedman, do you mean for an example on core for with an enum type mapping? |
| 17:09:40 | <r_friedman> yes, but the java file, not the hbm file |
| 17:09:50 | <wyclif> ConceptName |
| 17:09:56 | <wyclif> r_friedman, what is the problem |
| 17:10:15 | <r_friedman> hibernate is stil not finding the underlying enum |
| 17:10:26 | <r_friedman> i want to see if i have to wrap it |
| 17:10:31 | <wyclif> r_friedman, is your enum an inner class or separate? |
| 17:11:08 | <r_friedman> my enum is just public enum <name> { <value>,... }; |
| 17:11:21 | <r_friedman> public static actually |
| 17:11:47 | <wyclif> r_friedman, is it an inner class or not? |
| 17:12:01 | <r_friedman> wyclif: it is inside another class |
| 17:12:14 | <r_friedman> but it is just an enum statement, i may be missing some wrapper |
| 17:12:31 | <wyclif> r_friedman, then you need to use the fully qualified name including the outer class, let get you the syntax |
| 17:12:58 | <r_friedman> well that's what i did, <package>.<parentclass>.<enumname> |
| 17:13:49 | <r_friedman> <property name="testResultType" column="test_result_type" length="16"> |
| 17:14:12 | <r_friedman> <type name="org.openmrs.util.HibernateEnumType"> |
| 17:14:33 | <r_friedman> <param name="enumClassName">org.openmrs.module.jsslab.db.LabTestResult.LabResultType</param> |
| 17:15:05 | <r_friedman> </type></property> |
| 17:15:34 | <wyclif> r_friedman, and what error are you getting? |
| 17:16:05 | <r_friedman> MappingException: enumClass org.openmrs.module.jsslab.db.LabTestResult.LabResultType not found |
| 17:17:59 | <wyclif> r_friedman, use org.openmrs.module.jsslab.db.LabTestResult$LabResultType |
| 17:19:51 | <r_friedman> wyclif: same message but with $ |
| 17:20:37 | <wyclif> r_friedman, are you running unit tests or web app? |
| 17:20:56 | <r_friedman> wyclif: neither, i am simply trying to load the module |
| 17:21:35 | <wyclif> r_friedman, make sure you have completely removed the module |
| 17:21:49 | <r_friedman> yes, i have been doing this all morning |
| 17:21:51 | <wyclif> r_friedman, because that should work |
| 17:22:47 | <wyclif> r_friedman, can you paste your LabTestResult class on paste bin |
| 17:23:02 | <wyclif> r_friedman, and i take a look |
| 17:23:11 | <wyclif> r_friedman, and your hbm file |
| 17:24:31 | <r_friedman> Thanks wyclif, http://pastebin.com/TzRB7XZZ |
| 17:25:32 | <r_friedman> wyclif: i have to leave in 10 minutes, will be gone about 1.5 hours |
| 17:26:05 | <wyclif> ok |
| 17:26:14 | <wyclif> give me a sec |
| 17:30:50 | <wyclif> r_friedman, looks correct to me |
| 17:31:01 | <wyclif> r_friedman, can you try again |
| 17:31:09 | <r_friedman> wyclif: sure |
| 17:31:28 | <wyclif> r_friedman, i mean stop openmrs too |
| 17:31:41 | <r_friedman> wyclif: sure |
| 17:32:16 | <wyclif> r_friedman, and start it up again rather than deploying the module from inside the app because it could be the module class loader that has issues |
| 17:32:55 | <r_friedman> wyclif: i am restarting tomcat for the fun of it |
| 17:33:07 | <wyclif> r_friedman, ok |
| 17:33:38 | <wyclif> r_friedman, make sure you repackaged the omod |
| 17:33:51 | <wyclif> and dropped it in the module folder |
| 17:34:10 | <r_friedman> ok will do |
| 17:35:08 | <wyclif> r_friedman, question, why are your domain objects in the ***.db package |
| 17:35:47 | <wyclif> r_friedman, conventionally they should be in org.openmrs.module |
| 17:36:23 | <wyclif> r_friedman, sorry, org.openmrs.module.moduleId |
| 17:36:43 | <r_friedman> wyclif: you mean the modules directory under the apppath? |
| 17:37:05 | <r_friedman> or app dir, what'ever it's called in the properties file |
| 17:37:15 | <r_friedman> wyclif: right? |
| 17:38:44 | <wyclif> r_friedman, i just noticed that your domain objects are in an unconvetional package, i dont think it is the problem but such things can cause issues at times |
| 17:39:04 | <wyclif> r_friedman, i mean the java package name |
| 17:39:37 | <r_friedman> it's in my workspace in the target/omod |
| 17:40:44 | <r_friedman> wyclif: ok, got a much more normal error, out of permgen space, i can deal with that after my meeting |
| 17:40:47 | <r_friedman> thanks for your help |
| 17:40:55 | <r_friedman> maybe class loader was running out of memory |
| 17:41:56 | <wyclif> r_friedman, cool |
| 17:42:46 | <r_friedman> wyclif: tks much |
| 17:43:34 | <wyclif> no problem, happy holidays!!! |
| 18:19:48 | *** jriley has joined #openmrs |
| 18:43:50 | *** jportela has joined #openmrs |
| 18:43:50 | *** ChanServ sets mode: +v jportela |
| 18:55:49 | *** wyclif has quit IRC |
| 19:44:40 | *** bryq has left #openmrs |
| 19:58:16 | *** wyclif has joined #openmrs |
| 20:08:36 | *** r_friedman has quit IRC |
| 20:39:09 | *** djazayeri1 has joined #openmrs |
| 20:40:09 | *** djazayeri has quit IRC |
| 20:45:27 | *** r8friedman has joined #openmrs |
| 20:45:35 | *** r8friedman is now known as r_friedman |
| 20:45:57 | <r_friedman> wyclif: hey wyclif, pushed up my PermGen space and now the same old error is back |
| 20:47:29 | <wyclif> hi r_friedman |
| 20:47:45 | <wyclif> r_friedman, what error message are you getting? |
| 20:48:02 | <r_friedman> MappingException: enumClass org.openmrs.module.jsslab.db.LabTestResult$LabResultType not found |
| 20:49:12 | <wyclif> r_friedman, that is strange |
| 20:49:46 | <r_friedman> yeah, i think i will try to make it a standalone class, wyclif |
| 20:50:03 | <r_friedman> wyclif: is there an example you can point me to? |
| 20:50:04 | <wyclif> try loading the class from the module just to test that the module class loader is not the one failing |
| 20:50:26 | <r_friedman> wyclif: how? |
| 20:50:32 | <wyclif> r_friedman, try making it separate class and see if that work |
| 20:50:58 | <r_friedman> wyclif: yes, if you knew of an example i could clone it would speed things up |
| 20:51:00 | <wyclif> r_friedman, if that works may be it is bug in the classloading |
| 20:51:25 | <wyclif> r_friedman, what do you mean by example |
| 20:52:09 | <r_friedman> wyclif: i have seen some examples on the web of standalone enum classes that have getters and setters, I want to make sure i do it right |
| 20:52:46 | <wyclif> r_friedman, we have one in core |
| 20:52:56 | <wyclif> see conceptname.hbm.xml |
| 20:53:01 | <wyclif> r_friedman, see conceptname.hbm.xml |
| 20:53:18 | <r_friedman> ok tks wyclif that's what i need |
| 20:53:30 | <wyclif> r_friedman, i know what you have done right but there is some other problem i guess |
| 20:53:52 | <r_friedman> wyclif: it is my fate to find the problems that no one else experiences |
| 20:53:58 | <wyclif> r_friedman, i did it with an inner class but it wasn't in a module |
| 20:54:23 | <wyclif> r_friedman, and that is why am scapeg-oating the module class loading |
| 20:55:17 | <r_friedman> wyclif: i'll keep investigating and if it doesn't work eventually i'll make a ticket |
| 20:55:36 | <wyclif> i did it for Order.java in the orde-entry branch] |
| 22:26:11 | *** r_friedman has quit IRC |
| 22:33:31 | *** robbyoconnor has joined #openmrs |
| 22:33:31 | *** ChanServ sets mode: +v robbyoconnor |
| 22:36:35 | *** robbyoconnor has quit IRC |
| 22:37:02 | *** robbyoconnor has joined #openmrs |
| 22:37:02 | *** ChanServ sets mode: +v robbyoconnor |
| 22:48:47 | *** robbyoconnor has quit IRC |
| 22:54:09 | *** jriley has quit IRC |
| 23:03:16 | *** robbyoconnor has joined #openmrs |
| 23:03:16 | *** ChanServ sets mode: +v robbyoconnor |
| 23:08:17 | *** robbyoconnor has quit IRC |
| 23:25:45 | *** robbyoconnor has joined #openmrs |
| 23:25:45 | *** ChanServ sets mode: +v robbyoconnor |
| 23:29:47 | *** robbyoconnor has quit IRC |
| 23:35:34 | *** robbyoconnor has joined #openmrs |
| 23:35:34 | *** ChanServ sets mode: +v robbyoconnor |
| 23:39:32 | *** robbyoconnor has quit IRC |
| 23:39:58 | *** robbyoconnor has joined #openmrs |
| 23:39:58 | *** ChanServ sets mode: +v robbyoconnor |
| 23:49:24 | *** robbyoconnor has quit IRC |
| 23:53:33 | *** robbyoconnor has joined #openmrs |
| 23:53:33 | *** ChanServ sets mode: +v robbyoconnor |