IRC Chat : 2013-01-06 - OpenMRS

00:19:32 *** djazayeri has quit IRC
00:55:32 *** mseaton has joined #openmrs
00:55:32 *** ChanServ sets mode: +v mseaton
02:30:15 *** mseaton has quit IRC
05:13:01 *** djazayeri has joined #openmrs
05:13:01 *** ChanServ sets mode: +o djazayeri
06:03:28 *** k-joseph has joined #openmrs
06:19:37 *** robbyoconnor has joined #openmrs
06:19:37 *** ChanServ sets mode: +v robbyoconnor
06:23:43 *** kaweesi has joined #openmrs
06:25:50 *** kaweesi has quit IRC
06:25:57 *** djazayeri has quit IRC
06:26:04 *** k-joseph has quit IRC
08:24:52 *** dkayiwa has joined #openmrs
08:28:57 *** kavuri has joined #openmrs
08:55:22 *** judy has joined #openmrs
08:55:43 <judy> hey @dkayiwa
08:55:47 <dkayiwa> hey judy
08:56:14 <dkayiwa> judy: so some providers submit while others dont?
08:56:45 <judy> yes
08:56:58 <dkayiwa> judy: which openmrs version
08:59:06 <judy> 1.9.1
08:59:40 <dkayiwa> judy: whats the difference between providers that work and those that dont
09:05:15 <judy> icreated the 2 providers beforre starting with the forms
09:05:22 <judy> asfter all forms were done
09:05:30 <judy> i created the other providers....
09:05:45 <judy> unless you mean to ask something different
09:06:04 <dkayiwa> judy: did you afterwards refresh the form
09:07:13 <judy> i didnt...
09:07:22 <judy> let me try that....
09:07:42 <judy> but the form has been picking the new providers....
09:08:22 <judy> only on save it doesnt work
09:08:58 <dkayiwa> judy: doesn't work?
09:14:11 <judy> i havent tried refreshing...
09:14:14 <judy> jus a sec...
09:14:22 <dkayiwa> judy: ok
09:14:32 <judy> ps: meant the form doesnt save when you select the provider
09:14:44 <judy> thats when i get the error i posted..
09:15:03 <dkayiwa> judy: ok tell me if all works after refresh
10:12:33 *** judy has quit IRC
10:39:35 *** judy has joined #openmrs
10:44:01 <judy> hey @dkayiwa
10:44:08 <dkayiwa> judy: hi
10:44:17 <judy> so some forms are able to refresh .. and the providers work after refreshing
10:44:30 <judy> but most forms are not getting refreshed...
10:44:36 <judy> i get this error
10:45:21 <judy> http://pastebin.com/iiNmfs34
10:45:35 <dkayiwa> judy: ok looking at it
10:46:15 <judy> emailed you a sample fo the form with this error
10:46:24 <dkayiwa> judy: ok
11:02:26 <judy> dkayiwa figured out the problem?
11:02:38 <dkayiwa> judy: not yet
11:12:10 <kavuri> dkayiwa: hi
11:12:15 <dkayiwa> kavuri: hi
11:13:59 <dkayiwa> hi judy
11:14:01 <kavuri> dkayiwa: I am trying to modify atom feed module to store the changes to database, rather than to file. In that aspect. I created a unit testcase to save the changes to database and it passes fine. But when I deploy the module and test it with openmrs, I get a null pointer exception which I am unable to figure out where
11:14:47 <judy> yes dkayiwa
11:15:02 <kavuri> dkayiwa: the stack trace is pretty big, the first few lines are:
11:15:03 <kavuri> 16:37:23,711 ERROR [org.openmrs.api] (ActiveMQ Session Task) An error occurred while executing this method. Error message: null: java.lang.NullPointerException
11:15:03 <kavuri> at org.openmrs.event.api.db.hibernate.HibernateEventInterceptor.onSave(HibernateEventInterceptor.java:66) [event.jar:]
11:15:03 <kavuri> at org.openmrs.api.db.hibernate.ChainingInterceptor.onSave(ChainingInterceptor.java:97) [openmrs-api-1.9.2-SNAPSHOT.jar:1.9.2.0]
11:15:03 <dkayiwa> judy: what is your selected locale?
11:15:35 <kavuri> dkayiwa: any hint on what might be going wrong?
11:15:42 <dkayiwa> kavuri: checking
11:19:43 <judy> i think eng USA
11:19:45 <judy> not sure...
11:19:50 <judy> from xforms its english
11:19:59 <judy> have a way of confirming this?
11:19:59 <dkayiwa> judy: sent you email
11:20:31 <dkayiwa> kavuri: can you pastebin the stack trace?
11:21:42 <kavuri> dkayiwa: http://pastebin.com/zgjvQMSb
11:25:00 <dkayiwa> kavuri: does it work well when you remove your changes?
11:25:28 <kavuri> dkayiwa: atom module does not have support for storing changes to db
11:25:39 <kavuri> dkayiwa: this is new implementation
11:25:52 <dkayiwa> kavuri: when does the exception happen?
11:26:50 <kavuri> dkayiwa: this happens when I create a concept and the event listener receives the JMS message. In the onMessage() method, I get the service object and add values to the DataPoint object and store to db
11:27:19 <dkayiwa> kavuri: how do your changes look like?
11:27:35 <kavuri> dkayiwa: shall I pastebin hem?
11:27:36 <kavuri> them?
11:27:43 <dkayiwa> kavuri: yes all
11:29:37 <judy> hey @dkayiwa
11:29:48 <judy> i was able to refresh to the form...
11:29:59 <judy> but when i try and save the form i get a dfferent error
11:30:00 <judy> http://pastebin.com/u0HtS89R
11:30:07 <dkayiwa> judy: ok looking at it now
11:30:15 <judy> it looks like a memory error so wi will restart tomcat and get back to you
11:30:23 <dkayiwa> judy: ok
11:30:38 <judy> so what was the problem with the refresh?
11:31:54 <dkayiwa> judy: it was a case when a concept did not have a name in selected locale resulting into NPE
11:32:03 <kavuri> dkayiwa: here are some important files: http://pastebin.com/gwNAihbj
11:32:24 <dkayiwa> kavuri: not all?
11:32:40 <kavuri> dkayiwa: ok, I will post all :)
11:33:37 <dkayiwa> kavuri: can you do something like a git commit?
11:34:04 <kavuri> dkayiwa: ok, I will post them to github
11:41:57 <judy> hey @dkayiwa working well
11:42:00 <judy> thanks....
11:42:09 <dkayiwa> judy: ok good
11:42:10 <judy> i guess there is no need for a ticket for this
11:42:21 <judy> cos you already solved it :)
11:42:34 <judy> i am sure i will have another question for you ...
11:42:42 <dkayiwa> judy: ticket necessary for history of changes and why :)
11:43:10 <judy> in other news.. I have several standalones.. and i like to specify the database to connect to
11:43:19 <judy> I am able to do this from the standalone
11:43:27 <judy> and use it
11:43:39 <judy> but when i shut the standalone down and start it ..
11:44:00 <judy> it defaults to its mysql port (despite changing it in the properties)
11:44:24 <judy> and hence cannot find the database i connected it to initially...
11:44:35 <judy> any suggested approach
11:46:02 <dkayiwa> judy: you could be changing a wrong value or wrong properties file
11:46:43 <kavuri> dkayiwa: https://github.com/kavuri/openmrs-module-changetracker
11:46:47 <OpenMRSBot> <http://ln-s.net/+PhJ> (at github.com)
11:46:54 <kavuri> dkayiwa: uploaded all the files
11:47:02 <dkayiwa> kavuri: ok
11:50:32 <dkayiwa> judy: seen the ticket. you are so fast. :)
11:53:44 *** r0bby has joined #openmrs
11:53:44 *** ChanServ sets mode: +v r0bby
11:55:42 *** r0bby_ has joined #openmrs
11:55:42 *** ChanServ sets mode: +v r0bby_
11:56:56 *** robbyoconnor has quit IRC
11:57:27 <dkayiwa> judy: your forms look nice :)
12:00:20 *** r0bby has quit IRC
12:00:35 <kavuri> dkayiwa: can you please take a look at the code..
12:01:01 <kavuri> dkayiwa: I was stuck with this problem since couple or hrs now
12:01:24 <dkayiwa> kavuri: i thought you were committing only the change when the error started happening
12:01:58 <kavuri> dkayiwa: hmm..no I took the openmrs-module-basic, added the stuff from atom feed module ...
12:02:16 <kavuri> dkayiwa: wanted to try out writing a new module :)
12:03:07 *** r0bby_ has quit IRC
12:09:38 <dkayiwa> kavuri: why dont you add that stuff to the atom feed module?
12:10:19 <kavuri> dkayiwa: ok, will make the changes to atom feed module and check
12:14:50 <kavuri> dkayiwa: will have to signoff for now. Will be back later
12:14:57 <dkayiwa> kavuri: ok
12:19:20 *** kavuri has quit IRC
12:20:11 *** robbyoconnor has joined #openmrs
12:20:11 *** ChanServ sets mode: +v robbyoconnor
12:46:46 *** robbyoconnor has quit IRC
13:40:01 *** robbyoconnor has joined #openmrs
13:40:01 *** ChanServ sets mode: +v robbyoconnor
14:46:16 *** yony258 has joined #openmrs
14:46:37 <yony258> dkayiwa: Hi :)
14:47:09 <yony258> dkayiwa: I dont want to interrupr, let me know when you have some free time. wanted to ask for your help :D
14:47:14 <yony258> *interrupt
14:54:11 <dkayiwa> yony258: ready :)
14:54:19 <yony258> dkayiwa: Cool, Thanks
14:54:30 <yony258> dkayiwa: So im having 2 very weird bugs with a new form im doing
14:54:37 <yony258> dkayiwa: Wanted to know if you can help me with them
14:54:48 <yony258> dkayiwa: I cant seem to resolve them
14:54:56 <yony258> dkayiwa: If you could pull it would be graet :)
14:54:59 <yony258> great*
14:55:56 <dkayiwa> yony258: ok
14:57:40 <dkayiwa> yony258: pulled
14:57:54 <yony258> dkayiwa: Ok so the form im talking about is "Manage Appointments" form
14:58:07 <yony258> dkayiwa: The first bug is with the "dates filter"
14:59:12 <yony258> dkayiwa: I want to show an error if startDate>endDate, so I did errors.reject("message"). But when it posts, the log files of the server saying there is a problem with the provider name property (although I did used the Editor).
14:59:41 <yony258> dkayiwa: Steps to reproduce: select a start date that is after the end date
15:00:00 <yony258> dkayiwa: press "apply filters"
15:00:05 <dkayiwa> yony258: ok
15:00:22 <yony258> dkayiwa: You can confirm what im saying by removing ${provider.name} from the JSP file (appointmentList.jsp) and doing the same steps.
15:05:16 <dkayiwa> yony258: where did you put the validation?
15:05:33 <yony258> dkayiwa: In the post method of the controller
15:05:50 <yony258> dkayiwa: its an if statement
15:06:04 <dkayiwa> yony258: controller name?
15:06:27 <yony258> dkayiwa: "appointmentListController.java"
15:08:22 <dkayiwa> yony258: does the code run the controller before the error?
15:08:47 <yony258> dkayiwa: Sorry, what?
15:09:20 <dkayiwa> yony258: does the error originate from the controller?
15:09:58 <yony258> dkayiwa: The controller should reject, but the bug isn't from the controller post method
15:10:09 <yony258> dkayiwa: its something with getting the provider name property
15:10:24 <yony258> dkayiwa: does that answer the question?
15:10:49 <dkayiwa> yony258: am wondering why it does not happen when the date are correct. are you doing some validation in the jsp?
15:11:07 <yony258> dkayiwa: Nope. no JSP validation
15:15:00 <yony258> dkayiwa: I also just wanted to say that I catch an API Exception at one of the controller functions if the startDate is after the endDate but I dont think it causes an error with getting the provider.name...
15:15:15 <dkayiwa> yony258: ok
15:15:44 <dkayiwa> yony258: for all get methods in the service, add this: @Transactional(readOnly = true)
15:15:50 <dkayiwa> yony258: then compile and test again
15:16:06 <yony258> dkayiwa: In which file?
15:16:22 <dkayiwa> yony258: AppointmentService
15:16:33 <yony258> dkayiwa: But there are some that aren't readOnly
15:16:37 <yony258> dkayiwa: I think
15:16:48 <dkayiwa> yony258: and they are get methods?
15:17:07 <yony258> dkayiwa: nope
15:17:20 <dkayiwa> yony258: thats why i said for all get methods :)
15:17:27 <yony258> dkayiwa: Oh sorry :D
15:19:45 <yony258> dkayiwa: Ok. did that
15:19:53 <dkayiwa> yony258: ok
15:20:47 <yony258> dkayiwa: Log error: http://pastebin.com/PU6j6hWe
15:20:50 *** kavuri has joined #openmrs
15:21:11 <yony258> dkayiwa: The main problem as far as I can tell is: javax.el.ELException: Error reading 'name' on type org.openmrs.Provider
15:21:12 <dkayiwa> yony258: ok
15:21:55 <dkayiwa> yony258: and the error does not happen when date are correct
15:22:02 <yony258> dkayiwa: correct
15:22:17 <dkayiwa> yony258: do you have some conditional reading in the jsp?
15:22:28 <yony258> dkayiwa: ?
15:22:52 <yony258> dkayiwa: I have stuff like ${condition ? true_Value : false_Value}
15:23:22 <dkayiwa> yony258: ok let me analyze it a bit more
15:23:27 <yony258> dkayiwa: ok
15:56:11 <judy> thanks dkayiwa
15:56:12 <judy> for
15:56:13 <judy> <dkayiwa> judy: your forms look nice :)
15:56:22 <dkayiwa> judy: :)
15:56:26 <judy> they are in use right now so things are a bit hectic...
15:56:38 <dkayiwa> judy: oh
15:56:39 <judy> but fun fun!
15:56:46 <dkayiwa> judy: :D
16:02:36 <dkayiwa> yony258: will continue with it when i come back
16:02:56 <yony258> dkayiwa: sure, no problem. Thank you
16:03:07 *** dkayiwa has quit IRC
16:07:15 *** dkayiwa has joined #openmrs
16:09:01 *** r0bby has joined #openmrs
16:09:01 *** ChanServ sets mode: +v r0bby
16:11:43 *** dkayiwa has quit IRC
16:13:02 *** robbyoconnor has quit IRC
16:34:17 *** r0bby_ has joined #openmrs
16:34:17 *** ChanServ sets mode: +v r0bby_
16:37:48 *** r0bby has quit IRC
16:48:09 *** k-joseph has joined #openmrs
17:16:46 *** judy has quit IRC
17:32:25 *** Echidna has quit IRC
17:32:54 *** Echidna has joined #openmrs
17:32:54 *** ChanServ sets mode: +v Echidna
18:13:09 *** kavuri has quit IRC
18:29:22 *** Mkop has quit IRC
18:40:16 *** djazayeri has joined #openmrs
18:40:16 *** ChanServ sets mode: +o djazayeri
18:48:44 *** k-joseph has quit IRC
18:59:49 *** djazayeri1 has joined #openmrs
18:59:53 *** djazayeri has quit IRC
19:05:56 *** r0bby_ has quit IRC
20:19:29 *** Alex1_ has joined #openmrs
20:20:10 <Alex1_> Hey guys I need some urgent help.
20:20:40 <Alex1_> The form entry tab doesn't list my forms
20:21:08 <Alex1_> Is there something I need to do to enable this?
20:27:09 <Alex1_>
20:31:17 *** Alex1_ has quit IRC
20:39:36 *** Alex2_ has joined #openmrs
20:43:48 *** Alex2_ has quit IRC
20:50:46 *** dkayiwa has joined #openmrs
20:52:09 <dkayiwa> hi yony258
20:52:22 <yony258> dkayiwa: Hi :)
20:52:30 <dkayiwa> yony258: did you fix it?
20:52:35 <yony258> dkayiwa: nope
20:52:45 <dkayiwa> yony258: oh :O
20:52:48 <yony258> dkayiwa: was working on another bug
20:52:54 <dkayiwa> yony258: ok
20:53:34 <yony258> dkayiwa: These two bugs driving me insane :
20:53:47 <yony258> dkayiwa: The one we talked about and the one I was working on
20:53:52 <dkayiwa> yony258: ok
21:08:22 *** yony258 has quit IRC
21:13:04 *** yony258 has joined #openmrs
21:13:12 <yony258> dkayiwa: Sorry had a DC
21:13:19 <dkayiwa> yony258: ok
21:26:15 <yony258> dkayiwa: Any progress with that bug?
21:26:22 <dkayiwa> yony258: no
21:26:40 <yony258> dkayiwa: Do you want me to explain to you the second bug, or you need to work or something else?
21:26:51 <dkayiwa> yony258: yes explain
21:27:27 <yony258> dkayiwa: Ok this one is a bit tricky to explain, so I need you to open that "Manage Appointment Form", tell me when its done. (verify that you have more than 1 appointment in you DB)
21:28:16 <dkayiwa> yony258: do you have sql script to insert them?
21:28:30 <yony258> dkayiwa: You can use the "Schedule new appointment" button
21:29:13 <dkayiwa> yony258: no types, no slots, etc
21:29:41 <yony258> dkayiwa: Hmm, I dont have a script but all you need is 1 appoiontment type, 1 patient, 1 provider and a block with at least 1 slot
21:52:41 <yony258> dkayiwa: Should I wait or do you prefer to do that in another time?
21:52:58 <dkayiwa> yony258: another time because i do not have the data
21:53:20 <yony258> dkayiwa: Ok, thanks anyway
21:53:54 *** yony258 has quit IRC
22:06:05 *** dkayiwa has quit IRC
23:29:41 *** djazayeri1 has quit IRC