IRC Chat : 2010-02-07 - OpenMRS

00:01:15 <majj> I am having a little bit of trouble getting OpenMRS started
00:01:32 <majj> In particular: how necessary is MySQL?
00:02:11 <robbyoconnor> LOL!!!
00:02:11 <robbyoconnor> I got it!
00:03:31 <robbyoconnor> bwolfe: hand me the dunce cap please?
00:03:58 <bwolfe> majj: mysql or some other database is definitely needed
00:04:16 <robbyoconnor> majj: it relies on it HEAVILY
00:04:27 <majj> bwolfe: that's what I thought. for some reason I can't get mysql to start
00:05:12 <bwolfe> majj: firewall issue maybe?
00:05:18 <bwolfe> or port conflict?
00:05:28 <majj> bwolfe: hmm, not sure. this is the error message that i get
00:06:13 <majj> bwolfe: 100206 15:24:30 mysqld_safe mysqld from pid file /usr/local/mysql/data/DN0a211b44.SUNet.pid ended
00:06:14 <majj> 100206 15:27:10 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/data
00:06:14 <majj> dyld: unknown required load command 0x80000022
00:06:35 <bwolfe> majj: wow, thats odd
00:06:45 <bwolfe> majj: how'd you install it? sudo apt-get install mysql ?
00:06:45 <robbyoconnor> one fix down
00:06:52 <majj> bwolfe: i'm on mac os x leopard, so i installed the .pkg
00:06:56 <bwolfe> I see
00:06:59 <bwolfe> hmm
00:07:48 <robbyoconnor> Dear mr. JVM: finish taking out the trash
00:08:31 <bwolfe> majj: not sure on macs
00:08:45 <bwolfe> there is this page: http://openmrs.org/wiki/Installation_for_Developers_on_OS_X
00:08:46 <OpenMRSBot> <http://ln-s.net/34$u> (at openmrs.org)
00:10:05 <majj> bwolfe: hah! completely my fault. i installed the version for snow leopard.
00:21:54 *** robbyoconnor has quit IRC
00:22:59 <AmrasArFeiniel> does tortoise work with windows 7?
00:26:31 <OpenMRSBot> Recent updates in the world of openmrs: OpenMRS Changesets: Changeset [11994]: facility data: fix a small error where a boolean was passed where an … <http://dev.openmrs.org/changeset/11994>
00:29:23 <bwolfe> AmrasArFeiniel: surely it should...
00:29:29 <AmrasArFeiniel> yeah
00:29:34 <AmrasArFeiniel> but it doesn't seem to be...
00:30:08 <AmrasArFeiniel> installed the (what claimed to be) 64-bit tortoisesvn latest version
00:30:26 <AmrasArFeiniel> no context menu
00:30:54 <bwolfe> even after a restart?
00:34:08 *** njero has quit IRC
00:34:47 <AmrasArFeiniel> yep
00:34:49 <AmrasArFeiniel> lamenes
00:36:07 <AmrasArFeiniel> holy crap the reportingcompatibility module is huge
00:36:19 <AmrasArFeiniel> somehow I managed to download that...though I can't svn up it
00:49:15 <AmrasArFeiniel> yeah tortoisesvn is not working at all
00:58:56 *** r0bby|android has joined #openmrs
00:58:56 *** ChanServ sets mode: +v r0bby|android
01:04:18 <AmrasArFeiniel> project spreadsheetuploadd is missing required library: "\openmrs-1.5.x\dist\openmrs-api-1.5.10688.jar"
01:04:20 <AmrasArFeiniel> ?
01:07:09 <bwolfe> AmrasArFeiniel: its looking for another project called "openmrs-1.5.x" in your eclipse workspace
01:07:17 <bwolfe> AmrasArFeiniel: you can check that out from svn
01:07:29 <bwolfe> or you can just change the .classpath file to point to another openmrs-api-*
01:09:00 <AmrasArFeiniel> does trunk qualify as this?
01:13:14 <majj> bwolfe: OK, i finally got MySQL installed. However, I'm having some problems completing the OpenMRS installation wizard
01:13:33 <majj> * The logic module is set as 'required' by OpenMRS and so cannot be stopped or unloaded. Unable to complete the startup.
01:13:34 <majj> Tasks completed so far:
01:13:34 <majj> * Created database openmrs
01:13:34 <majj> * Created user openmrs_user
01:13:34 <majj> * Granted user openmrs_user all privileges to database openmrs
01:13:34 <majj> * Created database tables and added core data
01:13:35 <majj> * Added demo data
01:35:01 <bwolfe> AmrasArFeiniel: yeah, you can use trunk
01:35:18 <bwolfe> majj: argh, this is a bug with 1.5.1.
01:35:42 <majj> bwolfe: i see. is there a workaround?
01:35:55 <bwolfe> majj: are you installing yourself or using the vm?
01:36:03 <majj> bwolfe: installing myself
01:36:11 <majj> bwolfe: perhaps i should try the vm?
01:36:25 <bwolfe> nah, I think there's only a 1.5.1 vm
01:36:46 <bwolfe> majj: are you building from trunk or downloading hte 1.6 beta ?
01:36:57 <majj> bwolfe: building from trunk
01:37:21 <bwolfe> majj: interesting
01:37:37 <bwolfe> you can download the logic .2 from http://modules.openmrs.org
01:37:47 <AmrasArFeiniel> best way to add a project to svn in eclipse?
01:37:47 <bwolfe> but trunk should have it. when did you last update?
01:38:35 <bwolfe> AmrasArFeiniel: if you have an eclipse plugin it should recognize it
01:38:45 <bwolfe> AmrasArFeiniel: if you are preparing to commit, then you do team-->share project
01:39:06 <AmrasArFeiniel> yeah ok
01:39:08 <bwolfe> majj: check the /web/WEB-INF/coreModules folder. do you have anything in there in your checked out code?
01:39:11 <AmrasArFeiniel> eclipse is just being a boner
01:39:50 <bwolfe> thats unfortunate
01:41:04 <bwolfe> brb
01:44:19 <majj> bwolfe: yup: logic-0.2.omod
01:52:28 <majj> bwolfe: i checked out trunk just a few hours ago
01:59:13 <bwolfe> majj: hmm, thats upsetting
01:59:49 <bwolfe> majj: you're in the initialization procedure?
02:00:06 <majj> bwolfe: yes
02:00:37 <majj> bwolfe: if it helps, upon trying again, i now get a more generic error: "Unable to create the database"
02:00:57 <bwolfe> thats probably because the database was created and now its trying to create it again?
02:01:06 <majj> bwolfe: ah, yes, that makes sense.
02:02:53 <majj> bwolfe: what else does the initialization procedure need to complete before we can use the system?
02:04:02 <bwolfe> majj: it just needs to make the runtime properties file (which is why its asking you those questions) http://openmrs.org/wiki/Overriding_OpenMRS_Default_Properties
02:04:03 <OpenMRSBot> <http://ln-s.net/1iOw> (at openmrs.org)
02:06:38 <majj> bwolfe: so do you recommend trying to bypass this stage and manually configuring the properties? (and if so, how would i do this?)
02:07:29 <bwolfe> majj: you can try doing that, yes. the alternative is to use a copy of trunk from a few weeks ago that doesn't have this logic-0.2 requirement
02:07:49 *** upul has joined #openmrs
02:07:49 *** ChanServ sets mode: +v upul
02:08:00 <bwolfe> majj: you just need to put the runtime properties in a place that openmrs can find it
02:08:12 <bwolfe> majj: that wiki page I linked to says where openmrs looks for it
02:08:46 <majj> bwolfe: dinner just arrived, so we're going to take a break for about a half hour
02:08:54 <majj> bwolfe: but i'll give that a shot when I return
02:08:59 <majj> bwolfe: thanks for all your help!!
02:09:35 <bwolfe> very strange. I just checked out the latest trunk and went through the startup and it worked. :-/
02:09:51 <bwolfe> majj: check your tomcat log and see if theres some other error why the logic module won't start
02:31:57 <majj> bwolfe: hmm... there is a lot of stuff here
02:32:14 <majj> bwolfe: i have no idea what i'm supposed to be looking for
02:33:34 <majj> bwolfe: although... i think i found something. at least, something related: [jar:file:/Users/jasonma/Downloads/apache-tomcat-6.0.24/temp/1265505031729.openmrs-lib-cache/logic/logic.jar!/org/openmrs/logic/web/controller/LogicFormController.class]: problem with class file or dependent class; nested exception is java.lang.UnsupportedClassVersionError: Bad version number in .class file
02:34:13 <bwolfe> majj: ah ha! good find!
02:34:17 <bwolfe> you need java 1.6
02:34:41 <majj> bwolfe: well, drat.
02:49:29 <majj> bwolfe: ok, so after switching to java 1.6, how can we recover from these errors?
02:50:08 <AmrasArFeiniel> I'm getting a 403 when I try to install OpenMRS on tomcat
02:50:10 <bwolfe> majj: go through the initialization procedure and tell it htat the database is created already and that its called "openmrs"
02:50:16 <majj> bwolfe: OK
02:51:00 <bwolfe> AmrasArFeiniel: 403 means unauthorized. you can either do a "package-web" to make the openmrs.war in the /dist folder and then use the localhost:8080/manager/html to upload it
02:51:30 <bwolfe> AmrasArFeiniel: or you can use the "update" ant target instead and make sure that the tomcat path is right in the build.properties file so that the openmrs.war is copied to the right place
02:52:24 <AmrasArFeiniel> FileNotFoundException http://localhost:30000/manager/undeploy?path=/openmrs
02:52:32 <AmrasArFeiniel> I used port 30000
02:52:39 <AmrasArFeiniel> so that's not the issue
02:52:55 <AmrasArFeiniel> that's from the update ant task
02:53:23 <bwolfe> AmrasArFeiniel: oh, ok. the "update" actually calls the "remove", then "package-web", then "install" ant task
02:53:37 <AmrasArFeiniel> when I click on the Tomcat Manager link from the tomcat start page, it gives me a 404 too
02:54:37 <bwolfe> AmrasArFeiniel: that means you probably didn't install the "manager" option for tomcat. I think its in the windows installer. in ubuntu its a separate project I think
02:54:40 <AmrasArFeiniel> it's the remove task that's failing
02:54:48 <AmrasArFeiniel> boo
02:54:58 <AmrasArFeiniel> actually, I don't think I ever installed tomcat
02:55:04 <AmrasArFeiniel> just got a zip of the project
02:55:24 <AmrasArFeiniel> what do i need to update to fix that?
02:55:58 <bwolfe> AmrasArFeiniel: to fix which?
02:56:04 <bwolfe> AmrasArFeiniel: you can just run "install" the first time
02:56:12 <AmrasArFeiniel> install fails
02:56:21 <AmrasArFeiniel> wait
02:56:29 <AmrasArFeiniel> for tomcat, install?
02:56:56 <bwolfe> "install" means "install openmrs into tomcat"
02:57:01 <AmrasArFeiniel> ah
02:57:04 <AmrasArFeiniel> yeah that's failing
02:57:57 <AmrasArFeiniel> localhost:30000/manager/html gives a 404
02:58:05 <AmrasArFeiniel> I feel like that's a problem
02:59:01 <majj> bwolfe: i just switched to 1.6, and this is what i get...
02:59:39 <majj> The following error occurred at startup:
02:59:39 <majj> java.lang.RuntimeException: error getting unrun updates on the database
02:59:39 <majj> javax.servlet.ServletException: java.lang.RuntimeException: error getting unrun updates on the database
02:59:40 <majj> at org.openmrs.web.Listener.setupNeeded(Listener.java:170)
02:59:40 <majj> at org.openmrs.web.Listener.contextInitialized(Listener.java:138)
03:00:32 <bwolfe> AmrasArFeiniel: ok, third option. you can do a "package-web" and then copy the /dist/openmrs.war into your <tomcathome>/webapps directory
03:00:45 <bwolfe> AmrasArFeiniel: but it would be easier to install the tomcat manager app
03:00:48 <bwolfe> or webapp
03:00:56 <bwolfe> majj: strange
03:01:17 <bwolfe> this is before the wizard starts or after you have answered all the questions?
03:04:15 <majj> bwolfe: before the wizard starts
03:08:00 *** r0bby|android has quit IRC
03:08:13 <bwolfe> majj: hmm
03:08:29 <bwolfe> majj: whats in your tomcat logs right before that error ?
03:08:50 <bwolfe> majj: perhaps you can just drop your openmrs database and try again? :-/
03:12:36 <AmrasArFeiniel> bwolfe: how does one install said tomcat manager app? Tomcat website is 0% helpful
03:13:59 <bwolfe> AmrasArFeiniel: what os are you running?
03:19:26 <AmrasArFeiniel> windows 7
03:19:29 <AmrasArFeiniel> x64
03:20:15 <bwolfe> AmrasArFeiniel: can you re-run the tomcat installer? does it have an option to also install the "manager" app ?
03:20:26 <bwolfe> AmrasArFeiniel: or is there a tomcat-manager download option for windows?
03:20:33 <AmrasArFeiniel> I don't know
03:21:14 <AmrasArFeiniel> I don't see one
03:22:38 *** r0bby|android has joined #openmrs
03:22:38 *** ChanServ sets mode: +v r0bby|android
03:22:56 <bwolfe> AmrasArFeiniel: can you rerun the installer in the add/remove programs in windows?
03:24:28 <AmrasArFeiniel> I never installed tomcat
03:24:36 <AmrasArFeiniel> I just downloaded a zip and extracted it
03:26:09 <bwolfe> AmrasArFeiniel: ah yes, ok, well hmm
03:31:54 <bwolfe> AmrasArFeiniel: you might be able to just copy/paste the "manager" folder from the tomcathome/webapps dir from any other person there that has it
03:34:42 <AmrasArFeiniel> shiny
03:34:44 <AmrasArFeiniel> I'll try that
03:40:13 *** r0bby|android has quit IRC
03:40:33 <bwolfe> ok, I'm out. upul, Echidna, and r0bby|android will have to provide the support for now!
03:41:08 <upul> ok i'll see what i can do
04:05:39 *** bwolfe has quit IRC
04:17:08 <majj> ok, so i'm getting this problem: Invalid username and/or password: admin Unable to complete the startup.
04:20:12 <majj> here's the beginning of the stack trace:
04:20:15 <majj> WARN - InitializationFilter$InitializationCompletion$1.run(927) |2010-02-06 20:12:49,193| Unable to complete the startup.
04:20:15 <majj> org.openmrs.api.context.ContextAuthenticationException: Invalid username and/or password: admin
04:20:15 <majj> at org.openmrs.api.db.hibernate.HibernateContextDAO.authenticate(HibernateContextDAO.java:171)
04:20:16 <majj> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
04:20:16 <majj> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
04:20:16 <majj> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
04:20:17 <majj> at java.lang.reflect.Method.invoke(Method.java:597)
04:20:24 <majj> upul: any idea on what's going on?
04:21:41 <upul> were you asked the password
04:24:27 <majj> upul: nope, i'm still in the initialization wizard
04:25:33 <upul> majj: you are starting all over?
04:25:47 <majj> upul: i never got passed the initialization wizard to begin with
04:25:53 <upul> in that case you have to remove the openmrs-runtime.properties
04:26:12 <upul> otherwise it's taking the old values saved there
04:26:19 <majj> i did that
04:26:31 <upul> so there's no runtime props file?
04:26:36 <majj> nope
04:27:21 <majj> also, ian (sitting next to me) is having similar problems
04:27:31 <majj> and he never put in a runtime props file to begin with
04:27:39 <majj> (and there does not exist one now)
04:28:21 <upul> and you have not set any env variable for a props file location?
04:31:12 <upul> it looks like the app is taking a runtime props file from somewhere
04:33:09 <majj> upul: hmm... i ddon't think i've set an env variable
04:33:11 <majj> but i'm not sure
04:33:41 <upul> can you pastbin a complete log output
04:34:22 <majj> upul: how long?
04:34:46 <upul> are you running standalone tomcat?
04:35:01 <upul> just unzipped and running the tomca.sh
04:35:08 <majj> upul: yes
04:35:32 <upul> cleanup the logs dir
04:35:49 <upul> start tomcat using 'catalina.sh run'
04:36:13 <upul> console will give you everhthing
04:37:11 <AmrasArFeiniel> I'm getting a funky error when trying to add a module
04:38:13 <AmrasArFeiniel> Line 221 in XML document from URL [jar:file:/C:/Program%20Files/apache-tomcat-6.0.24/temp/1265515698266.openmrs-lib-cache/reportingcompatibility/reportingcompatibility.jar!/moduleApplicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException: An element with the identifier "serviceInterceptors" must appear in the document.
04:38:48 <upul> have you done any changes to moduleApplicationContext.xml
04:39:05 <AmrasArFeiniel> don't think so
04:39:47 <majj> upul: all right, here we go. http://pastebin.com/m423affd0
04:40:03 *** manohar has quit IRC
04:44:02 <AmrasArFeiniel> and once uploading, modules, where do I go to use them?
04:45:38 <upul> majj: did you acess and completed the initial wizard
04:46:04 <upul> AmrasArFeiniel: modules can add menus etc. at different places to customize openmrs
04:46:15 <majj> upul: I hit "finish"
04:46:24 <majj> upul: and then it does stuff, eventually resulting in that error
04:46:56 <upul> majj: it didn't come to openmrs 'login page'
04:47:25 <majj> upul: it did nto.
04:52:04 *** g8chbk3 has joined #openmrs
04:52:17 *** g8chbk3 has quit IRC
04:52:19 <upul> majj: did you drop the old openmrs database before doing again
04:52:37 *** john_stan_hack has joined #openmrs
04:52:47 <majj> upul: no, i didn't.
04:52:50 <majj> upul: should I?
04:53:32 <john_stan_hack> !help
04:53:32 <OpenMRSBot> john_stan_hack: (help [<plugin>] [<command>]) -- This command gives a useful description of what <command> does. <plugin> is only necessary if the command is in more than one plugin.
04:53:41 <upul> majj: you should this is clashing with the old run
04:54:06 <upul> majj: do you have mysqladmin or something?
04:54:14 <majj> upul: heh, no. i'm using the mysql command line interface
04:55:20 <john_stan_hack> upul: Hey, what is a patient dashboard?
04:57:35 <upul> john_stan_hack: when you search a patient and click on a patient you come to that page
04:58:12 <upul> majj: drop the openmrs database, runtime props and start all over
04:58:28 <majj> majj: ok, i'll give that a shot. thakns
05:01:39 <upul> majj: it's nice if you could install mysqladmin or something also querybrowser
05:02:03 <upul> then you can see what's in there, and easily drop etc.
05:07:20 <majj> upul: ok, it got much farther this time (I think) but now i'm at a tomcat HTTP Status 500 error page
05:07:45 <upul> any other details
05:08:17 <majj> upul: what sorts of details would be helpful?
05:08:39 <majj> I can give you the stack trace from tomcat, or the one that gets printed in the error 500 page
05:08:40 <upul> are there any errors, stack traces in the log or console
05:09:34 <majj> upul: there are a bunch of java exceptions in the console
05:09:43 <majj> shall i pastebin them?
05:09:45 <upul> yes
05:10:05 <AmrasArFeiniel> do you know how to use the spreadsheetupload module once it's been uploaded?
05:10:59 <majj> upul: here's the tail bit. i don't think there are any errors before this... http://pastebin.com/d2f4bc41b
05:13:56 <upul> AmrasArFeiniel: it looks like spreadsheetupload hasn't been finished yet, i can only see just a skelton code
05:15:39 <upul> if you go to a module's config.xml you can see what changes it does, adding menu etc.
05:16:46 *** upul_ has joined #openmrs
05:16:46 *** ChanServ sets mode: +v upul_
05:17:06 <john_stan_hack> upul: I decided to do one of the introductory tickets just to see how things work first, but I am looking at them and I have no clue what they are talking about
05:17:53 <john_stan_hack> upul: for instance, the one I am looking at right now mentions RequiredDataAdvice, but I do not know what that is nor how to find out what that is. How do I go about finding out what this is?
05:20:27 *** upul has quit IRC
05:21:10 <upul_> RequiredDataAdvice is executed when saving objects etc, see class RequiredDataAdvice,
05:22:19 <upul_> see also savehandler classes
05:22:32 <upul_> those things get called when saving different kinds of objects
05:22:40 <upul_> majj: are you using any modules?
05:22:52 <majj> upul_: i am not
05:24:11 <AmrasArFeiniel> upul: no idea what the elements of config are
05:24:16 <AmrasArFeiniel> how can I tell how to use it?
05:25:43 <upul_> AmrasArFeiniel: you can check the modules docs and the best thing is to checkout what other modules are doing
05:25:59 *** upul_ is now known as upul
05:27:12 <upul> majj: is .OpenMRS/modules dir empty?
05:28:09 <majj> upul: it is
05:29:44 <upul> majj: you can't go to localhost:8080/openmrs
05:29:56 <majj> upul: i can, but it leads me through the initialization wizard
05:30:04 <majj> upul: oh, wait, no
05:30:08 <majj> upul: now it's the status 500 error
05:30:31 <upul> what is the path for tomcat ?
05:30:39 <upul> tomcat location
05:32:24 <majj> upul: it's somewhere in my home directory
05:32:30 <majj> upul: is that the problem?
05:32:42 <majj> upul: it seemed to work before...
05:34:08 <upul> majj: did you install any logic module?
05:34:43 <majj> upul: i didn't
05:35:05 <upul> majj: when did you last upated the code/
05:35:14 <majj> upul: a few hours ago
05:36:02 <majj> upul: i just dropped the openmrs database and restarted tomcat, and now i'm running the initialization wizard again
05:36:23 <upul> can you stop tomcat and clean up the temp, work, logs and restart
05:38:11 <majj> upul: OK. and i just completed the initialization wizard again; attempting to install openmrs
05:41:41 <upul> i'll log in from another machine
05:41:45 *** upul has quit IRC
05:46:15 *** upul has joined #openmrs
05:46:15 *** ChanServ sets mode: +v upul
05:46:46 <majj> upul: all right, same thing happened
05:50:11 *** sstamats has joined #openmrs
05:50:12 *** r0bby|android has joined #openmrs
05:50:12 *** ChanServ sets mode: +v r0bby|android
05:52:01 <sstamats> hi, I'm working on ticket #557, adding more concept stats, and in the description it mentions that I should be able to get the forms where a certain concept is used and how often certain encounter types are in the encounter table. How would I go about doing that?
06:00:21 <upul> majj: check if you have logic.jar in tomcat/temp/1LATEST.openmrs-lib-cache/logic
06:01:03 <majj> upul: there's nothing in that folder
06:01:06 <majj> upul: except lock
06:01:37 <majj> upul: that is, there is nothing in 1265522086607.openmrs-lib-cache
06:07:43 <sstamats> figured out the answer to my question, hurrah for FormService!
06:11:35 <upul> majj: can you pastbin the error again
06:13:22 <majj> upul: sure.
06:13:57 <majj> upul: this is on the console: http://pastebin.com/d1c306564
06:30:53 <upul> majj: check if you have the logic module in tomcat/webapps/openmrs/WEB-INF/coreModules
06:31:21 <majj> upul: i do.
06:31:25 <majj> upul: logic-0.2.omod
06:31:31 *** sstamats has quit IRC
06:35:51 <upul> and you don't have a TOMCAT/temp/LATEST.openmrs-lib-cache/logic
06:36:33 <upul> majj:
06:36:50 <majj> upul: i do not
06:37:37 <upul> can you do a search if there's a file called logic.jar anywhere
06:38:06 <upul> majj: may be it was exracted to somewhere else
06:38:31 <majj> upul: it should be in TOMCAT/webapps, right?
06:38:40 <upul> usually it's tomcat/temp
06:39:30 <upul> majj: are you linux?
06:39:37 <majj> upul: mac
06:39:56 <upul> majj: have you set any CATALINA_HOME etc.
06:40:06 <upul> any TMP...
06:40:35 <majj> upul: well, tomcat starts with:
06:40:36 <majj> Using CATALINA_BASE: /Users/jasonma/Downloads/apache-tomcat-6.0.24
06:40:36 <majj> Using CATALINA_HOME: /Users/jasonma/Downloads/apache-tomcat-6.0.24
06:40:36 <majj> Using CATALINA_TMPDIR: /Users/jasonma/Downloads/apache-tomcat-6.0.24/temp
06:40:37 <majj> Using JRE_HOME: /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK
06:40:37 <majj> Using CLASSPATH: /Users/jasonma/Downloads/apache-tomcat-6.0.24/bin/bootstrap.jar
06:43:10 <majj> upul: but I didn't actually set CATALINA_HOME
06:43:21 <upul> no need
06:44:16 <upul> majj: may be the logic module getds extracted in some place and again looking up somewhere else
06:44:50 <majj> upul: yeah, i was not able to find logic.jar anywhere else
06:45:07 <majj> upul: would extracting produce a log message?
06:45:13 <majj> upul: let me pastebin the entire log
06:49:15 <majj> upul: here it is, if it helps http://pastebin.com/d5caed104
06:49:25 <majj> but i couldn't see any other references to logic.jar
06:49:42 <upul> majj: are you the only mac user there?
06:49:54 <majj> upul: there are two other mac users; one has it working, the other doesn't
06:50:16 <upul> majj: do you have a /tmp or something
06:50:39 <majj> upul: yes
06:51:02 <upul> if you do check if it is extracted there 123......openmrs-lib-cache/
06:51:15 <majj> upul: nope, have nothing here
06:51:29 <majj> upul: nothing related to openmrs, that is
06:52:12 <upul> did you or can you do a full search for logic.jar
06:52:26 <upul> or is it time consuming
06:54:26 <majj> upul: i'm running find / -name 'logic.jar'
06:55:27 <john_stan_hack> upul: What does it mean to "reflect" on an OpenMrsObject?
06:56:18 <upul> john_stan_hack: normally reflect in java means like looking up what methods etc. the object has
07:02:01 <upul> you can obj.getClass() then do things like getMethods etc. but not sure what it is in your case
07:02:46 <majj> upul: well i just checked with one of the other hackers here (he's using windows)
07:03:43 <majj> upul: and he does have a logic subdirectory inside tomcat/temp
07:04:27 <upul> majj: yep, that coreModules logic.omod should get extracted to a place like that, and then it's read from there
07:04:45 <upul> majj: for some reason in your case it's not there
07:05:07 <majj> upul: i see. i'm guessing there's no way to extract it manually?
07:05:11 <majj> upul: or... have any other workaround?
07:12:32 <upul> majj: you can debug and see what's going on org.openmrs.module.ModuleClassLoader#getUrls
07:12:59 <upul> majj: i think that's the place it extract the files
07:13:26 <upul> you can startup the tomcat.sh jpda run
07:14:14 <upul> remote connect with 8000
07:14:33 <upul> put a breakpoint in org.openmrs.module.ModuleClassLoader#getUrls
07:14:51 <majj> upul: sorry, I'm not familiar with this
07:14:56 <majj> upul: what do you mean when you say 'remote connect'?
07:19:13 <upul> majj: are you using eclipse?
07:19:20 <majj> upul: yes i am
07:24:31 <majj> upul: well, i've found the function and i've set a breakpoint within it
07:24:40 <majj> upul: how do i get it to interface with my tomcat?
07:25:23 <upul> majj: my eclipse doesn't start, anyway start tomcat.sh jpds run
07:25:37 <upul> it will listen on 8000
07:25:41 <upul> http://www.eclipsezone.com/eclipse/forums/t53459.html
07:25:45 <OpenMRSBot> <http://ln-s.net/50Ed> (at www.eclipsezone.com)
07:25:47 <upul> see eclipse connection
07:25:59 <upul> connect from port 8000
07:26:21 <upul> correciton: tomcat.sh jpda run
07:27:02 <upul> majj: i mean catalina.sh jpda run
07:27:50 <majj> upul: got it
07:30:27 <upul> majj: if you get there check what the tmpModuleDir is, and a bit below it's copying the file
07:32:34 <majj> upul: Failed to connect to remote VM. Connection refused.
07:33:08 <upul> majj: stop catalina
07:33:08 <majj> upul: I'm not sure if I've configured it properly... i created a new remove debug configuration
07:33:27 <upul> restart and see it should give something like 'Listening for transport dt_socket at address: 8000'
07:33:37 <upul> somewhere in the beginning
07:33:42 <majj> upul: yes, it is; i see it
07:34:34 <upul> from eclipse you should debug 'remote java app' with port 8000 then
07:35:53 <majj> upul: i am not able to do so
07:37:07 <majj> upul: i really have no idea why; it seems like it should work
07:37:39 <upul> the port 8000 correct in the both sides?
07:37:49 <majj> upul: it does say 8000 on both sides.
07:38:31 <upul> majj: any firewall or something?
07:40:22 <majj> upul: i don't believe so, but i really don't know
07:40:40 <upul> majj: otherwise you can put some sys.out to print tmpModuleDir and out in line 167
07:40:43 <upul> to see what they are
07:41:18 <upul> do a ant clean remove install then it should print them
07:41:24 <majj> upul: yeah, i'll do that and see
07:42:15 <upul> be back in 10 min
07:43:31 <AmrasArFeiniel> upul: how can I stop apache from starting up openmrs with a particular module
07:55:07 <upul> AmrasArFeiniel: you can remove it from the .Openmrs/modules
07:55:29 <upul> and restart
07:59:01 <AmrasArFeiniel> but I can't get to openmrs because the logic module won't load because one ofthe other modules is broken
08:00:07 <AmrasArFeiniel> do you know where the modules are stored so I could delete it?
08:00:12 <AmrasArFeiniel> in the db or filesystem
08:00:16 <upul> AmrasArFeiniel: logic module is mandatory it's loaded from coreModules
08:00:25 <upul> AmrasArFeiniel: usually it's .OpenMRS/modules
08:00:42 <upul> AmrasArFeiniel: this logic module is a recent change about 1-2 weeks ago
08:01:08 <majj> upul: OK, so I put in those System.out.printlns and re-compiled and re-deployed
08:01:29 <majj> upul: however, i am not seeing the printlns in the console.
08:01:56 <upul> majj: check the tomcat logs
08:02:21 <AmrasArFeiniel> where is .OpenMRS in the db or filesystem?
08:02:36 <upul> AmrasArFeiniel: usually home dir
08:02:50 <majj> upul: (also, the find finally completed and there does not exist logic.jar on my computer.)
08:02:54 <AmrasArFeiniel> on windows?
08:03:58 <upul> AmrasArFeiniel: usually openmrs looks up a props file in homedir and it's printed
08:04:48 <upul> AmrasArFeiniel: usually C:/Users/XXX or or Document.../Application Data/.. etc
08:05:31 <upul> majj: if that didn't work can do a log.fatal(...) instead of sys out
08:05:47 <upul> it should come up with the other logs
08:06:24 <AmrasArFeiniel> ok found the place
08:07:37 <AmrasArFeiniel> VICTORY!
08:13:19 <upul> AmrasArFeiniel: you can remove a module from the modules page too
08:18:32 <AmrasArFeiniel> yeah but I couldn't get there because tomcat wouldn't build and launch openmrs
08:26:19 <majj> upul: hmm it must have crashed before it got to the log.fatal
08:27:04 <majj> upul: otherwise, my re deployment isn't actually getting the cHAnges i made in the source
08:27:05 <upul> majj: you mean it never got into getUrls method
08:27:23 <majj> upul: that's what it seems like
08:29:20 <upul> majj: how do you install the build
08:30:17 <majj> upul: i build dist and copy it into tomcat/webapps
08:31:36 <upul> majj: may it's not getting deployed. there's openmrs dir in there did you delete that, also try cleaning the temp, work (and logs)
08:31:40 <upul> may be
08:31:52 <majj> upul: yes, i always delete the openmrs dir and temp, work, and logs
08:36:30 <upul> majj: what is your os version
08:37:08 <majj> upul: i'm running mac os x 10.5.8
08:49:31 <upul> majj: may be you should put a log message in somewhere higher and see if it works
08:49:39 <upul> perhaps org.openmrs.web.Listener#startOpenmrs
08:49:48 <majj> upul: all right, i'll give that a shot
08:49:59 <majj> upul: do you know what is the very first thing that happens?
08:50:48 <upul> majj: somewhere around here org.openmrs.web.Listener#contextInitialized
08:52:13 <majj> upul: a horrifying thought just occurred to me
08:52:29 <majj> upul: which package are we in -- src/api or src/web?
08:53:30 <upul> majj: web uses api
08:53:47 <upul> majj: api can be used standalone
08:54:24 <majj> upul: ok. so i was making modifications to org.openmrs.module.ModuleClassLoader, which (I think) is in src/api
08:54:46 <majj> upul: but org.openmrs.web.Listener is in src/web, right?
08:55:10 <upul> majj: but if you build the .war file then it should create the api first
08:56:22 <majj> upul: in any case, I just wanted to make sure that the code I'm modifying is actually being run
08:56:42 <upul> majj: what is the ant command you give
08:56:53 <majj> upul: i'm running it from the ant module within eclipse
08:57:24 <majj> upul: i'm building the dist target
08:59:13 <upul> majj: it does a api build then, but to make sure everything builds, add 'clean' e.g. ant clean dist
09:12:27 <upul> is stanford in california?
09:13:08 <upul> past 1am
09:20:19 <john_stan_hack> yes
09:20:25 <john_stan_hack> stanford is in california
09:27:28 *** openmrs_web962 has joined #openmrs
09:28:14 <john_stan_hack> upul: Hey, would you happen to know where I could look to see where / could you tell me how the Alert class is used?
09:29:50 *** openmrs_web962 is now known as ianmac
09:29:56 <john_stan_hack> upul: I want to send an alert to administrators if a module doesn't start up, but I notice the alert tracks a lot more information that what I was thinking that it would be used for, so I figured that I probably had the wrong idea about it
09:30:16 *** ianmac is now known as ianmac_hack
09:33:31 <majj> upul: ok, my stuff is definitely getting compiled and included... i got a log message out from Listener.getRuntimeProperties
09:33:42 <upul> john_stan_hack: alert is just a message added to a user so it's shown when the user logs in
09:43:57 <majj> upul: ok, i got something!
09:44:36 <majj> upul: unfortunately, it may not be very helpful.
09:44:53 <majj> tmpModuleDir: /Users/jasonma/Downloads/apache-tomcat-6.0.24/temp/1265535667681.openmrs-lib-cache/logic
09:44:53 <majj> tmpModuleJar: /Users/jasonma/Downloads/apache-tomcat-6.0.24/temp/1265535667681.openmrs-lib-cache/logic/logic.jar
09:45:06 <majj> there is no logic directory, though
09:45:40 <upul> majj: hmm it's writing it but it's not there
09:47:42 <upul> majj: or are those logs from the reading side
09:48:27 <upul> it's looking in that location when it's reading, but is it writing to that location, that's the question
09:48:44 <majj> upul: yea,h that's what i'm trying to ascertain
09:48:59 <majj> upul: now that i know that changes i make to the code are actually being run, i can put in some more debug statements
10:04:10 *** r0bby|android has quit IRC
10:10:25 <majj> upul: i believe it successfully creates the .jar.
10:10:52 <upul> majj: you can see it in lib-cache dir?
10:11:15 <majj> no, but right after it there's a block in here
10:11:40 <majj> that is, there is a piece of code that says try { tmpModuleJar.createNewFile(); }
10:11:53 <majj> i added a log statement after createNewFile, which got printed out.
10:13:33 <upul> majj: yep around 168 it copies the file
10:20:42 <majj> upul: yeah, that entire method executes and returns properly
10:20:47 <majj> upul: as far as i can tell
10:21:27 <upul> majj: could it be a permission problem (but it should give error if that's the case)
10:22:01 <majj> upul: i tried running tomcat as superuser
10:22:11 <majj> upul: plus, the entire directory resides in my home directory
10:22:52 <upul> majj: do in and out get proper files in line 166,167
10:23:34 <upul> in copyFile if one of them is null, it just returns silently
10:29:09 <majj> upul: nope, neither are null
10:32:17 <upul> majj: and the file names are what it should be, from: resource path to logic.omod, to: one given about in lib-cache
10:48:57 <john_stan_hack> upul: Hey, I changed the ModuleFactory to alert the user if a module does not start. How do I test this?
10:50:45 <upul> john_stan_hack: you can build the basicmodule or something and in the 'activator.onStartup' you can do a if (1==1) throw new RuntimeExcpetion("test'); and install that
10:53:15 <upul> that is you can take any working module code and make it throw an exception so that is fails. i think this should work
10:56:19 <john_stan_hack> I'll try it out
10:56:20 <john_stan_hack> thanks
10:58:43 *** AmrasArFeiniel has quit IRC
11:07:12 <john_stan_hack> upul: Hmm...so when you say build the basicmodule you mean? I thought there was going to be a class with that name
11:07:17 <john_stan_hack> and there is not
11:08:55 <upul> john_stan_hack: there is, BasicModuleActivator or something
11:09:10 <upul> this defined in the config.xml as the activator class
11:09:48 <upul> john_stan_hack: it has onStartup method which is exectued when the module is loaded
11:10:59 <upul> john_stan_hack: basicmodule/src/org/openmrs/module/basicmodule/BasicModuleActivator.java
11:14:36 <john_stan_hack> upul: I tried a apple + shift + t in eclipse, but it can't find BasicModuleActivator.java, and I am not sure where the basicmodule ...
11:15:31 <upul> john_stan_hack: it's in the path given
11:16:17 *** openmrs_web563 has joined #openmrs
11:16:21 *** openmrs_web563 is now known as DavidKettler
11:16:24 <DavidKettler> sup giuys
11:16:26 <DavidKettler> guys
11:17:19 <upul> what have you been working on DavidKettler tonight
11:17:20 <john_stan_hack> upul: perhaps I didn't check basic module out, let me check
11:18:01 <DavidKettler> Well im running into this compiler error
11:18:02 <DavidKettler> in the .war
11:18:07 <DavidKettler> havent been able to fix it
11:18:19 <upul> compile error?
11:18:42 <DavidKettler> yeah
11:18:44 <DavidKettler> hold on five seconds
11:19:29 *** openmrs_web937 has joined #openmrs
11:21:06 <DavidKettler> back
11:21:14 <DavidKettler> alright
11:21:14 <DavidKettler> yeah
11:21:17 <DavidKettler> so i got the .war
11:21:18 <DavidKettler> and
11:21:38 <DavidKettler> when i try to add a patient using the web interface
11:22:00 <DavidKettler> it tells me
11:22:36 <DavidKettler> An error occurred at line: 200 in the jsp file WEB-INF/view/portlets/nameLayout.jsp
11:23:14 <DavidKettler> Duplicate local variable "status"
11:24:09 *** openmrs_web937 has quit IRC
11:24:35 *** openmrs_web553 has joined #openmrs
11:24:42 *** openmrs_web553 is now known as AmrasArFeiniel
11:25:40 <AmrasArFeiniel> need...Ivy...
11:26:33 <upul> DavidKettler: http://dev.openmrs.org/ticket/2069
11:28:28 <DavidKettler> awesome thanks
11:43:08 <DavidKettler> alright that didnt seem to help
11:55:14 <upul> DavidKettler: i can create a patient okay
11:56:41 <upul> are you having the latest code and is any old jsp being loaded
11:59:15 <DavidKettler> i dont know
11:59:33 <DavidKettler> i replaced the code in the web app folder
11:59:34 <DavidKettler> :-\
11:59:46 <DavidKettler> now im trying to just do everything through eclipse
11:59:48 <DavidKettler> but im getting
11:59:49 <DavidKettler> Description Resource Path Location Type The type java.lang.Enum cannot be resolved. It is indirectly referenced from required .class files OpenmrsConstants.java /openmrs-trunk/src/api/org/openmrs/util line 1 Java Problem
12:01:03 <AmrasArFeiniel> upul: ticket #1999. What is this ticket asking for exactly? Can you give a complete description of what functionality is desired?
12:10:16 <upul> AmrasArFeiniel: idgen module generates the ids. it seems it needs to be exposed as a web service so ids can be requested
12:11:07 <upul> DavidKettler: may be ecllpse is using a java 1.4
12:11:19 <DavidKettler> ive tried 1.5 and 1.6
12:11:21 <DavidKettler> neither work
12:11:49 <upul> have you given it in the eclipse.ini DavidKettler
12:12:42 <DavidKettler> wait
12:12:45 <DavidKettler> trying something new
12:13:16 <DavidKettler> rebuilding
12:13:45 *** bwolfe has joined #openmrs
12:13:45 *** ChanServ sets mode: +o bwolfe
12:14:04 <upul> ah bwolfe is here
12:15:40 <bwolfe> that doesn't sound good
12:15:43 <bwolfe> problems?
12:16:01 <upul> no nothing
12:16:07 <DavidKettler> there have been many a problem
12:16:12 <DavidKettler> but i think i'm set now
12:16:36 <AmrasArFeiniel> upul: so the webpage served by the module should just display the next number returned from the idgen module and that's it?
12:17:29 <AmrasArFeiniel> bwolfe too :) (idgen webservice)
12:18:04 <upul> it should be a web service, bwolfe should no about #1999
12:18:11 <upul> know
12:18:42 <bwolfe> AmrasArFeiniel: yeah, it should be a webservice that the central server exposes
12:19:10 <bwolfe> AmrasArFeiniel: there could be a module you write that each remote clinic uses. there would be a webpage on that that displays the next available id
12:19:24 <AmrasArFeiniel> k
12:19:28 <AmrasArFeiniel> we'll try to do that
12:19:30 <AmrasArFeiniel> *sigh*
12:19:34 <AmrasArFeiniel> so much pain........
12:22:16 <upul> pain?
12:22:45 <bwolfe> AmrasArFeiniel: we'd like to limit pain going forward. obviously a developer taking 8 hours to get set up isn't really acceptable. can you document what went wrong?
12:23:03 <bwolfe> are there wiki pages that need clarifying? bugs that need fixing?
12:23:26 <AmrasArFeiniel> well a lot of it was eclipse being stupid
12:23:31 <AmrasArFeiniel> but really
12:23:34 <AmrasArFeiniel> you guys need ivy
12:23:42 <AmrasArFeiniel> or some other dependency management system
12:23:47 <AmrasArFeiniel> a lot of time was spent fixing classpaths
12:24:15 <AmrasArFeiniel> it also doesn't help that I, at least, have no experience with web front end
12:24:31 <AmrasArFeiniel> so writing a module that needs to interface with a website
12:24:45 <AmrasArFeiniel> well, I still am not quite sure what to do
12:25:01 <majj> bwolfe: ianmac and i still haven't gotten this whole thing set up
12:25:16 <majj> bwolfe: my conjecture is that macs may not be well-supported
12:25:59 <majj> bwolfe: we had some issues with java on macs (which is a nuisance in general, since java 1.5 is really the latest version that works well -- there are several different types of 1.6, but none of them seem to be perfect)
12:26:27 <AmrasArFeiniel> bwolfe: can't build a lot of the modules because of classpath dependcies we don't know where to find
12:28:44 <AmrasArFeiniel> bwolfe: and step-by-step installation guide needs to be more step by step
12:29:10 <DavidKettler> when it says
12:29:14 <bwolfe> yes, ivy or maven would be nice
12:29:15 <DavidKettler> when it says "See HibernateAdministrationDAO for those getGlobalProperty methods"...
12:29:15 <DavidKettler> ?
12:29:22 <majj> bwolfe: ianmac and i are going to try to soup up the instructions a bit
12:29:25 <majj> bwolfe: or... something
12:29:26 <AmrasArFeiniel> instead of "download tomcat and run it", actually explain how to run tomcat, that it needs to be run as admin, how to install openmrs, etc
12:29:33 <bwolfe> there are devs looking into the possibility of maven or gradle now
12:29:38 <AmrasArFeiniel> it took a really long time to figure that out
12:29:39 <DavidKettler> oh word
12:29:40 <DavidKettler> got it
12:29:52 <bwolfe> majj: that would be very helpful, thanks
12:30:21 <bwolfe> DavidKettler: in eclipse you can do "control-shift-t" and type in the class name to jump to a class
12:31:10 <DavidKettler> yeah
12:31:16 <DavidKettler> didnt think that it might be a class haha
12:31:27 <DavidKettler> still figuring all this shit out
12:31:35 <AmrasArFeiniel> bwolfe: does eclipse have a maven plugin?
12:31:47 <AmrasArFeiniel> I know it handles Ivy really well..
12:31:55 <upul> AmrasArFeiniel: where did you have to fix classpaths? everythng is there in the lib dirs
12:32:06 <AmrasArFeiniel> yeah but the names are all boned up
12:32:19 <AmrasArFeiniel> like 1.5.x needs to change to trunk-api or something
12:32:40 <upul> those must be 1.5.x branch
12:32:49 <upul> there was a big change in 1.6
12:32:53 <AmrasArFeiniel> I think we checked out everything as trunk
12:34:09 <AmrasArFeiniel> pulling down the trunk idgen module gave 60 classpath errors
12:34:26 <AmrasArFeiniel> 42 were fixed immediately by find/replacing 1.4.x to trunk
12:34:35 <AmrasArFeiniel> the rest are...rather difficult
12:37:19 <AmrasArFeiniel> like where is the commons-logging/commons-logging-1.1.1.jar? and where is asm/asm-attr.jar?
12:39:14 <upul> hmm, it seem idgen is built with 1.4.x not trunk
12:39:19 <AmrasArFeiniel> asm/asm-attrs.jar, to be exact
12:39:24 <AmrasArFeiniel> hmm
12:39:25 <AmrasArFeiniel> well
12:39:33 <AmrasArFeiniel> you don't maintain backwards compatibility?
12:40:27 <upul> porabably idgen is not tested after that with the trunk
12:41:04 <AmrasArFeiniel> is it useful to write a webservice for it if it's not usable with new versions of the product?
12:41:58 <AmrasArFeiniel> or even recent ones?
12:43:57 <majj> upul, bwolfe: what is lcab used for? i didn't end up getting it
12:44:29 <upul> AmrasArFeiniel: probably there are no compatibility issues, it's just that it may not have been build recently
12:44:30 <DavidKettler> alright so i'm looking at ticket 331 http://dev.openmrs.org/ticket/331
12:44:37 <DavidKettler> just to do something quick and easy to get used to this
12:44:52 <DavidKettler> and its telling me to edit these functions to make them case sensiteive
12:44:56 <DavidKettler> but like
12:45:02 <DavidKettler> the functions are nearly just wrappers
12:45:08 <DavidKettler> to a Hibernate get call
12:45:18 <DavidKettler> which i clearly cannot edit, because thats not our source
12:45:18 <DavidKettler> so
12:45:19 <DavidKettler> ....
12:45:39 <DavidKettler> ?
12:45:47 <AmrasArFeiniel> can one of you guys build it for trunk and commit it including the new classpath that actually works?
12:46:09 <bwolfe> DavidKettler: you need to modify the way it calls hibernate
12:46:11 <AmrasArFeiniel> or should we just download the 1.4.x branch and build with that?
12:46:24 <bwolfe> majj: its used in the formentry module. you probably don't need it
12:46:58 <DavidKettler> bwolfe:: well i mean i dont really understand how hibernate works in particular what with all these sessionFactories and currentSessions and such
12:47:13 <DavidKettler> much less how to access the same functionality through a workaround in a different function call
12:47:16 <upul> bwolfe: is there a reason for idgen to go with 1.4.x
12:48:13 <bwolfe> upul: the original writers are probably still running 1.4
12:48:33 <majj> bwolfe: aha, OK. another question: do you mind if we modify the structure of the docs?
12:48:42 <majj> bwolfe: there seems to be some redundancy and we'd like to clean it up a bit
12:48:46 <bwolfe> majj: go for it
12:50:03 <bwolfe> upul: you could upgrade it to 1.6, but the current code needs to be put into a 1.4-compatible branch in that module
12:53:34 <DavidKettler> reading all this hibernate documentation it seems that case insensitivity is built pretty deeply into it
12:54:13 <DavidKettler> so unless we're going to write some case sensitive regexp modifier thingy for each call to save/get in a database-based app
12:54:18 <DavidKettler> i feel like im missing something
12:54:21 <DavidKettler> then again
12:54:23 <DavidKettler> it is 5am
12:54:37 <bwolfe> DavidKettler: this is just about changing our DAO method to call hibernate using a criteria query instead of the .get that its doing now
12:54:52 <bwolfe> using criteria you can tell it to do a sensitive call
12:55:25 <DavidKettler> oh word?
12:56:34 <upul> majj: what happend to your missing logic.jar
12:56:53 <majj> upul: i have no idea; i never figured that out
13:09:44 <majj> bwolfe: so openmrs requires java 1.6, right?
13:16:23 <upul> majj: from openmrs 1.6 onwards it needs java 1.6
13:16:37 <majj> upul: ok thanks :)
13:16:51 *** DavidKettler has quit IRC
13:17:44 <upul> so you all never sleep tonight?
13:18:22 <upul> or last night
13:19:40 <AmrasArFeiniel> nope
13:19:46 <AmrasArFeiniel> but hey, we're CS majors
13:19:52 <AmrasArFeiniel> kind of par for the course
13:19:59 *** openmrs_web302 has joined #openmrs
13:20:06 *** openmrs_web302 is now known as David_Kettler
13:20:10 <David_Kettler> alright back
13:20:14 <David_Kettler> had to help with the sound stuff here
13:22:24 <majj> upul: we're participating in a 24-hour coding event
13:24:10 <upul> with a live band or something ;-)
13:43:29 <john_stan_hack> No. We are doing Stanford Hack-a-Thon and there is people in the same building with us doing Stanford Dance Marathon.
13:43:55 <upul> john_stan_hack: is that going for 24 hours too
13:44:01 <john_stan_hack> They have a 24 hours DJ and every half hour a student group comes and performs for them
13:45:18 <john_stan_hack> upul: Yes, and they also have "moral support". Every 3 hours they have a group of people that run in screaming and dancing to get them riled up, then they do this dance they learned to a song. It looks just like the Disney Channel Movie "High School Musical" if you know what that is...
13:45:26 <john_stan_hack> upul: kind of creepy to be honest
13:46:10 <john_stan_hack> upul: And by the way, I was never able to get that module to build. For some reason I couldn't check out the module section out of the repoistory
13:46:53 <upul> john_stan_hack: why is that. anyway you can use any module and change the activator code
13:46:54 <john_stan_hack> upul: I tried cdhecking out the basic module by itself and editing it but then it would not let me build it
13:47:08 <john_stan_hack> Yes, but it won't let me check out any module
13:48:01 <john_stan_hack> Unless you know of a way to check out only one module and build that one module with the others... I am not really sure if I am saying that right, but you understand what I am saying right?
13:48:22 <upul> you can just use command line "svn co http://svn.openmrs.org/openmrs-modules/basicmodule"
13:49:47 <john_stan_hack> Do I need to do this from inside my workspace?
13:51:11 <upul> john_stan_hack: then it's a bit organized
13:52:02 <upul> john_stan_hack: then you can 'import project' in eclipse and give the basicmodule dir
13:54:01 <upul> there's high school musical: the book even
13:54:32 <john_stan_hack> Wait, high school musical is a book?
13:55:17 <john_stan_hack> Yeah, they have stuff to keep them awake. I guess they figure as cs majors we do this all the time..
13:55:48 <john_stan_hack> so this will add the module to my workspace
13:55:54 <john_stan_hack> and allow me to import it...
13:56:00 <john_stan_hack> but how do I build / run?
13:56:21 <upul> i use the command line 'ant package-module'
13:56:31 <upul> ant -p gives all the options
13:58:08 <john_stan_hack> kay thanks
14:07:31 *** David_Kettler has quit IRC
14:35:49 *** ajuonline is now known as setitonfire
14:38:01 <john_stan_hack> upul: Is there any reason in particular why it will not let me commit?
14:39:28 <john_stan_hack> well, scratch that
14:39:40 <john_stan_hack> it is not neccessarily that it does not let me commit
14:40:09 <john_stan_hack> but it asks me for my user name and password and then pops back up after I press okay which makes me think that I do not have permission...
14:40:31 <john_stan_hack> I used username "admin" and the password I create
14:40:36 <john_stan_hack> *created
14:40:41 *** openmrs_web498 has joined #openmrs
14:40:43 *** openmrs_web498 is now known as dKettler
14:40:50 <dKettler> so if i think ive solved 331
14:40:53 <dKettler> how do i test it?
14:47:22 <upul> dKettler: you can load the basicmodule or something. and the rebuild it after renaming Basicmodule and reload again
14:48:57 <upul> also i think you can write some unittests for the dao
14:52:55 <upul> hmm it's nothing to do with modulename, so it should be about storing/retrieving 2 global properties with case difference
14:57:59 <upul> dKettler: Administration -> Manage Global Properties currently you can't save separate abc, ABC keys
14:58:14 <dKettler> kk
14:58:18 <dKettler> will look into that
14:58:50 <dKettler> right now im doing it by using the .getCriteria().list() to make a collection of the globalPropertys
14:59:40 <dKettler> and then im foreaching it (gp : gps) { if (gp.getProperty.equals(propertyName)) return gp; }
15:00:11 <dKettler> but i also saw that the getGPbyUUID uses that createQuery method
15:00:27 <dKettler> :-\
15:00:31 <dKettler> dunno whichd be better
15:06:21 <upul> i don't think there's difference, criteria is used when retrieving set of whole objects, i think
15:08:50 <upul> but instead of getting all and comparing each, better to addrestrictions etc. and filterout the one needed at once
15:09:10 <dKettler> yeah i dont know hibernate at all
15:09:16 <dKettler> im just seeing a method that works and using it asap
15:09:17 <dKettler> haha
15:09:24 <dKettler> but that code doesnt seem to work
15:09:34 <dKettler> at least i dont seem to be able to add ABC and abc
15:09:49 <dKettler> wow it just fucked up everything i typed
15:09:55 <dKettler> what i meant to say is that i dont think the code worked
15:10:05 <dKettler> it still wont let me add ABC and abc
15:10:16 <dKettler> i tried it using the createQuery method too
15:10:17 <dKettler> no luck
15:13:20 <dKettler> it still works
15:13:25 <dKettler> so i know i didnt break anything
15:13:26 <dKettler> haha
15:13:31 <dKettler> it just doesnt do what we want it to
15:13:34 <dKettler> for seemingly no reason
15:19:59 *** setitonfire is now known as ajuonline
15:20:20 *** upul_ has joined #openmrs
15:20:20 *** upul_ has quit IRC
15:20:20 *** upul_ has joined #openmrs
15:20:20 *** ChanServ sets mode: +v upul_
15:20:29 *** upul has quit IRC
15:20:37 *** upul_ is now known as upul
15:20:45 <upul> dKettler: http://roopindersingh.com/2008/10/29/hibernate-mysql-and-casesensitivity/
15:20:48 <OpenMRSBot> <http://ln-s.net/50Jy> (at roopindersingh.com)
15:22:16 *** openmrs_web121 has joined #openmrs
15:31:08 <dKettler> upul: yep, his code is the same as mine
15:31:18 <dKettler> except he returns .list() i do .uniqueResult()
15:31:24 <dKettler> because the result should be unique, no?
15:31:34 <dKettler> and if it wasnt itd be throwing me an error
15:31:36 <dKettler> which it doesnt
15:31:37 <dKettler> so
15:31:44 <dKettler> i dont quite get why its still not working
15:31:44 <dKettler> haha
15:37:45 <dKettler> oh shit
15:37:48 <dKettler> i think i figured it out
15:37:51 <dKettler> i may be an idiot
15:37:54 <dKettler> we'll see
15:38:57 *** upul_ has joined #openmrs
15:38:57 *** ChanServ sets mode: +v upul_
15:39:12 *** upul has quit IRC
15:39:33 *** upul_ is now known as upul
15:44:05 <dKettler> yeah, turns out i was not an idiot
15:44:07 <dKettler> aka it still doesnt work
15:44:49 <dKettler> http://pastebin.com/m372d885d
15:45:00 <dKettler> are two separate version
15:45:06 <dKettler> both of which seem to not work
15:46:32 <upul> dKettler: i think the issue is the writing side doesn't think about the case
15:47:15 <upul> dKettler: so if you can't save abc and ABC, it will save only a single row
15:47:32 <upul> i assume
15:49:20 <dKettler> i figured that the call to these methods was used in the writing side
15:49:28 <dKettler> ie when the user attempts to add ABC once abc already exists
15:49:33 <dKettler> these methods return non-null
15:49:49 <dKettler> which tells the program that it should instead of making a new field
15:50:00 <dKettler> just change the current field to the new value supplied by the user
15:50:09 <dKettler> on the ticket nothing was listed about writing, at least
15:50:13 <dKettler> just these two methods
15:52:25 <dKettler> hmmm
15:52:29 <dKettler> so the way its actually working now
15:52:37 <dKettler> is when i add abc="123"
15:52:43 <dKettler> and then ABC="true"
15:52:59 <dKettler> the display form only displays the first way it was capitalized and the latest value
15:53:07 <dKettler> aka abc="true"
15:53:11 <dKettler> when i hit remove
15:53:16 <dKettler> and then refresh
15:53:20 <dKettler> it goes to abc="123"
15:53:25 <dKettler> so its definitely storing both
15:53:31 <dKettler> probably even as separate case?
15:53:43 <dKettler> just the admin view only lists 1 at a time
15:54:49 <upul> dKettler: you can check what gets saved in global_property table
15:57:40 <dKettler> howso
15:57:55 *** AmrasArFeiniel has quit IRC
15:58:35 <upul> dKettler: openmrs database
15:58:48 <upul> try mysql query browser or something
15:59:01 <upul> or mysql command line
16:00:28 <upul> dKettler: for me it only saves a single line. if i remove i don't get an old value back
16:01:10 <upul> may be your change does something different
16:01:30 <upul> check with the database what it saves for each action
16:06:12 <dKettler> weird
16:07:17 <dKettler> did you try refreshing?
16:07:23 <dKettler> thats what made it do its thing for me
16:10:04 <upul> dKettler: added abc:10, saved, added ABC:true saved, removed abc:true, saved, no abc line now
16:24:34 *** majj has quit IRC
16:28:51 *** dKettler has quit IRC
16:29:39 *** openmrs_web788 has joined #openmrs
16:29:45 *** openmrs_web788 is now known as dKett
16:29:46 <dKett> i mean
16:29:47 <dKett> iunno
16:29:58 <dKett> thats certainly not the behavior it gives me
16:32:41 <dKett> but i mean also
16:32:44 <dKett> the real question is
16:32:51 <dKett> how do we make it do what we want it to do
16:32:51 <dKett> haha
16:35:00 *** bwolfe has quit IRC
17:03:04 *** dKett has quit IRC
17:14:23 <upul> i'm going off now, nice talking to you all
17:15:37 *** upul has quit IRC
18:40:03 *** john_stan_hack has quit IRC
19:21:13 *** bwolfe has joined #openmrs
19:21:13 *** ChanServ sets mode: +o bwolfe
19:49:59 *** SparFux has joined #openmrs
20:03:13 *** SparFux has quit IRC
20:38:23 *** openmrs_web121 has quit IRC
22:02:42 *** bwolfe has quit IRC