Hopbot log for 2007-12-03 - Helma IRC channel: #helma on irc.freenode.net

2007-12-03:

[4:15] <bslivka> Philmaker, nice to see you again
[4:16] <philmaker> How are you today?
[4:16] <philmaker> Nice to see you.
[4:16] <bslivka> I'm just fine. Yourself?
[4:17] <philmaker> I made a little Gobi macro to list entries in a zip file. I hope to use this to be able to easily attach and display Helma example source code.
[4:17] <philmaker> http://philmaker.com/Gobi/Zip+Attachment+Listings/
[4:17] <philmaker> This is fun: http://www.youtube.com/watch?v=4qxWGr8VhzQ&feature=related
[4:18] <philmaker> I'm still trying to tweak my Gobi website to cleaner.
[4:18] <philmaker> I like Gobi quite a bit
[4:20] <philmaker> Those yip yips are a riot. "happy happy happy happy boing boing boing boing"
[4:26] <philmaker> Did you watch the yip yips?
[4:26] <bslivka> yeha
[4:26] <bslivka> those things used to freak my wife out when she was a kid
[4:29] <philmaker> sorry to hear that
[4:30] <bslivka> why?
[4:30] <philmaker> because I think they are pretty cool
[4:30] <philmaker> :-)
[4:32] <philmaker> Oh yeah, Jetty/Mortbay is in Sydney. I just remembered that today - pretty cool
[4:32] <philmaker> Seems like I think most everything is pretty cool
[4:41] <bslivka> Pretty cool.
[4:41] <bslivka> are you in sydney?
[4:42] <bslivka> or areyou the one from texas?
[4:54] <philmaker> texas
[4:54] <philmaker> just missed you
[5:08] <philmaker> Welcome, Byro1, to Helmaland.
[5:08] <philmaker> Welcome, _byron, to Helmaland.
[5:08] <_byron> :) thanks
[5:08] <philmaker> What brings you here today?
[5:09] <_byron> im getting Error retrieving NodeIDs on the tutorial
[5:09] <_byron> on the step "improvements"
[5:09] <philmaker> me == newb
[5:10] <_byron> oh hehe
[5:10] <_byron> well any idea why im getting that error?
[5:11] <philmaker> Ironically, I have that tutorial attached in my wiki: http://philmaker.com/Gobi/Zip+Attachment+Listings/
[5:11] <philmaker> but I just haven't run it yet
[5:11] <philmaker> http://philmaker.com/Gobi/Zip+Attachment+Listings/All+Entries/
[5:11] <philmaker> re: well any idea why im getting that error? thinking....
[5:12] <philmaker> Idea...
[5:12] <philmaker> I got the complete tutorial code from helmablog - http://www.helmablog.com/?page_id=11
[5:12] <philmaker> Maybe download that zip and try again (just in case you pieced it all together)
[5:13] <philmaker> download that zip and try to run it and see what you get - compare with what you have ???
[5:14] <_byron> still get the error
[5:16] <_byron> http://helma.org/docs/tutorial/improve/ <- in the comments someone said they got that error and resolved it by reading http://helma.org/docs/howtos/mysql/ but, i cant find anything on that page about it...
[5:17] <_byron> too tell the truth i dont even think its connecting to the db
[5:18] <philmaker> Also, here is Kristan's entry of the tutorial: http://www.helmablog.com/?p=9#more-9
[5:18] <philmaker> did you edit db.properties?
[5:18] <philmaker> just throwing a random bone
[5:19] <_byron> the one in apps/addressbook/ ? yeah
[5:19] <philmaker> ok
[5:19] <philmaker> Are you using mysql or other?
[5:19] <_byron> mysql
[5:20] <philmaker> have you tried restarting your app?
[5:20] <philmaker> have to ask
[5:20] <philmaker> I missed that myself earlier today
[5:20] <_byron> yeah
[5:21] <philmaker> zumbrunn is helpful - but he typically doesn't come online for about 3-4 more hours
[5:22] <_byron> hmm ok
[5:22] <philmaker> Again: simple silly question... did you create the table?
[5:22] <_byron> yeah, and populated it :P
[5:23] <_byron> but as i said, i dont think its connecting (i was watching mysql administrator for connections)
[5:24] <philmaker> can you connect you your MySQL otherwise?
[5:24] <_byron> is there somewhere else im supposed to define my datasource? besides /apps/addressbook/db.properties
[5:25] <_byron> well i havnt got anything else setup, just the query browser
[5:25] <philmaker> Hmm - just apps.properties to define the app - but I don't think there is anything to do with the database in there
[5:25] <philmaker> http://helma.org/docs/guide/properties/
[5:25] <philmaker> maybe try this...
[5:26] <philmaker> http://helma.org/docs/tools/sqlshell/
[5:27] <philmaker> (I meant just app.properties to define the app)
[5:30] <_byron> hmmm sqlshell looks interesting, ill see if i can get that running
[5:33] <_byron> yup i can access my db, query it etc from sqlshell
[5:33] <philmaker> you did try downloading Kristan's code and use it?
[5:33] <philmaker> I haven't tried it yet - but just asking
[5:35] <philmaker> Per: http://helma.org/docs/guide/properties/db.properties/
[5:35] <philmaker> maybe you need a line for "sources"
[5:35] <philmaker> guess
[5:39] <_byron> hmmm didnt seem to make a difference
[5:39] <philmaker> what does your apps.properties look like? http://pastebin.com/
[5:40] <philmaker> maybe try to include modules/core/all.js and /modules/helma/all.js
[5:41] <_byron> http://pastebin.com/m53ef3a36
[5:41] <philmaker> <appname>.repository.<number> = modules/core/all.js
[5:41] <philmaker> <appname>.repository.<number> = modules/helma/all.js
[5:43] <_byron> now i get an "action not found error"
[5:44] <_byron> "Error in application addressbook Action not found"
[5:44] <philmaker> what is the request url?
[5:44] <_byron> http://localhost:8080/addressbook/
[5:44] <philmaker> I think you should use welcome app as an example in apps.properties
[5:45] <philmaker> replace the line addressbook with something similar to welcome
[5:45] <philmaker> but make sure you add:
[5:45] <philmaker> <appname>.repository.<number> = modules/core/all.js
[5:45] <philmaker> <appname>.repository.<number> = modules/helma/all.js
[5:45] <philmaker> one sec - paste bin
[5:45] <_byron> huh?
[5:46] <_byron> http://pastebin.com/m79a18537 is what i did
[5:46] <philmaker> http://pastebin.com/d9611537
[5:47] <philmaker> Like that
[5:47] <philmaker> now using /addressbook is the url path
[5:47] <_byron> doesnt it default to that if i dont define a mount point?
[5:48] <philmaker> I don't know
[5:48] <philmaker> but try it anyway
[5:49] <philmaker> my main is to make sure you include the necessary repositories
[5:49] <philmaker> my main goal is to make sure you include the necessary repositories
[5:49] <_byron> does that mean i have to move all my code into /apps/addressbook/code ?
[5:51] <_byron> i just copied that all to my apps.properties, restarted still says no action found
[5:51] <philmaker> one sec...
[5:52] <philmaker> when you visit http://localhost:8080/addressbook/ it should be calling addressbook/addressbook/Root/main.hac
[5:53] <_byron> it used to..
[5:54] <philmaker> hehe
[5:55] <philmaker> re: does that mean i have to move all my code into /apps/addressbook/code ?
[5:55] <philmaker> yes
[5:56] <_byron> as soon as include those repos you gave me it starts saying action not found
[5:57] <philmaker> feel free to revert - trying to help
[5:58] <philmaker> maybe as a test - create a tiny app with only a main.hac in Root, register the app in apps.properties to make sure it works
[5:59] <philmaker> Explicitlt adding those repositories may not be necessary if they are not listed in the tutorial - but not listing them bit me once
[6:00] <philmaker> Again - I'm a newb. I've only been working with Helma for a week - but it sounds like you are on the right track.
[6:00] <_byron> wait, so everything in /addressbook should now be in /addressbook/code?
[6:01] <_byron> hrmmm now im back where i started :P
[6:02] <philmaker> :-P
[6:02] <_byron> getting Wrapped java.lang.RuntimeException: Error retrieving NodeIDs (/home/byron/helma/apps/addressbook/code/Root/main.hac#2) again...
[6:03] <_byron> so at least its finding the action now :P
[6:03] <philmaker> woot
[6:04] <philmaker> I think I'll sit out
[6:04] <_byron> :) ok thank anyway
[6:04] <philmaker> "first do no harm"
[6:04] <_byron> just wish i could get this to work...
[6:06] <philmaker> I'm planning on writing some simple Helma examples and the address book / databases examples are some of the last I was going to write / rewrite
[6:06] <philmaker> if you do get it working - I'd love to hear the problem
[6:06] <philmaker> philip at philmaker dot com
[6:06] <philmaker> or post the solution here
[6:06] <_byron> im sure its just some simple config i've over looked...
[6:07] <philmaker> I have a lot of writing to do: http://philmaker.com/Helma/Trails/
[6:07] <_byron> :P
[6:08] <philmaker> the Helma .properties docs need work - and certianly specifically for type.properties
[6:08] <_byron> those look like they could help me
[6:10] <philmaker> did you add a jdbc driver for mysql into the lib directory?
[6:10] <philmaker> that could be the problem?
[6:10] <philmaker> I don't know whether Helma bundles the drivers for each database
[6:11] <philmaker> I guess you did because it is listed here: http://helma.org/docs/howtos/mysql/
[6:11] <philmaker> but in case you didn't you need to do that
[6:12] <philmaker> I guess you did if sqlsheel work
[6:12] <philmaker> I guess you did if sqlshell works
[6:12] <philmaker> peace out
[6:36] <_byron> :) sorry was playing tremulous
[6:44] <philmaker> what's that?
[6:45] <_byron> a free fps game
[6:45] <_byron> pretty fun :P
[6:45] <_byron> im off to play more ;)
[7:03] <_byron> anyone around? i still need help
[7:05] <philmaker> I'm still here. Anyone else around?
[7:05] <philmaker> Hey you over there. Yeah you.
[7:06] <philmaker> But I'm about to retire.
[7:06] <_byron> O_o
[7:09] <philmaker> http://www.youtube.com/watch?v=4qxWGr8VhzQ&feature=related
[7:34] <_byron> anyone here?
[7:50] <zumbrunn> _byron, yep, I'm around now
[7:57] <_byron> hi
[7:59] <_byron> im getting ""java.lang.RuntimeException: Error retrieving NodeIDs" on the "improvements" step of the tutorial
[8:00] <_byron> but i can connect to my db via sqlshell and perform querys etc..
[8:02] <_byron> zumbrunn: ping
[8:11] <zumbrunn> sorry, back now...
[8:11] <zumbrunn> had to clean up some storm damage outside
[8:11] <zumbrunn> some wood stacks got uncovered during the night :-)
[8:11] <_byron> hehe all good
[8:11] <zumbrunn> how/where did you invoke the sqlshell
[8:12] <zumbrunn> on a url for which app?
[8:12] <zumbrunn> the addressbook app?
[8:12] <_byron> http://localhost:8080/sqlshell
[8:12] <zumbrunn> you already put your apps.properties in the pastbin, right?
[8:13] <_byron> umm yes, but its changed since then
[8:13] <zumbrunn> try http://localhost:8080/addressbook/sqlshell
[8:13] <_byron> http://pastebin.com/m6273fcad
[8:13] <_byron> oh heh that works 2
[8:14] <_byron> select * from PERSON works from there
[8:14] <zumbrunn> are the db.properties file in helma's hom directiory and the one in your addressbook app identical?
[8:15] <zumbrunn> maybe try and see what happens if you remove the one in the addressbook app
[8:15] <zumbrunn> (you said earlier that you had ne there)
[8:16] <_byron> hmm still same error
[8:16] <_byron> and no, they were not exactly the same
[8:17] <_byron> the difference being on the addressDB.driver = .... line
[8:18] <zumbrunn> but both worked, apparently
[8:18] <zumbrunn> otherwise either /sqlshell or /addressbook/sqlshell would have failed
[8:19] <_byron> hmmm
[8:19] <zumbrunn> hmmm too
[8:32] <_byron> well that sucks...
[8:34] <zumbrunn> what do you have in main.hac on line 2, anyway?
[8:34] <zumbrunn> the log files do not reveal a hint for the source of the problem either?
[8:39] <Byro1> sorry machine crashed
[8:39] <zumbrunn> heh
[8:40] <Byro1> http://pastebin.com/m47792f7a <- Root/main.hac
[8:40] <zumbrunn> which version of the addressbook app are you currently using to debug
[8:40] <zumbrunn> the one from kuccello or your own
[8:40] <zumbrunn> ?
[8:40] <Byro1> kuccellos
[8:40] <zumbrunn> ok
[8:42] <Byro1> all logs are reporting is "[2007/12/03 08:44:26] [INFO] addressbook:get:/ aborted after 1 millis
[8:42] <Byro1> [2007/12/03 08:44:26] [INFO] addressbook:get:error aborted after 1 millis"
[8:42] <Byro1> oops
[8:45] <zumbrunn> there is a separate log file for addressbook app errors
[8:45] <Byro1> helma.addressbook.access.log? or helma.addressbook.event.log?
[8:46] <zumbrunn> plus, you might try and see if you find out more if you set logSql=true in server.properties
[8:46] <zumbrunn> event log
[8:46] <Byro1> looks like my datasource isnt defined right
[8:47] <Byro1> http://pastebin.com/m5d014473
[8:50] <Byro1> hmmm, i just renamed my datasource from addressDB to addressbook and now it works :D
[8:50] <Byro1> does that mean my data source needs to have the same name as my app?
[8:51] <zumbrunn> no
[8:51] <zumbrunn> you can have multiple data sources per app
[8:52] <zumbrunn> but it has to match what you define in type.properties
[8:52] <Byro1> ah, thats it
[8:52] <philmaker> what do you have in db.properties?
[8:52] <philmaker> oh ok
[8:52] <Byro1> in Person/type.properties i had _db = addressbook
[8:53] <philmaker> what do you have in db.properties?
[8:53] <philmaker> addressbook?
[8:53] <Byro1> i do now :P
[8:54] <philmaker> woot!!!
[8:54] <Byro1> used to be addressDB
[8:54] <zumbrunn> which shows that the tutorial should not use the name of the app as the data source name
[8:55] <Byro1> thanks zumbrunn & philmaker :)
[8:55] <zumbrunn> if it would have been unique, you would have spotted that earlier
[8:55] <Byro1> yeah to be honest the tutorial kinda confused me
[8:55] <philmaker> Really I think that tutorial is too verbose
[8:56] <philmaker> But it is nice to have a tutorial
[8:56] <philmaker> woot!
[8:56] <philmaker> http://www.portcityunderground.com/pivot/entry.php?id=507
[8:56] <zumbrunn> oh, but the tutorial uses "myDataSource" as the data source name
[8:57] <zumbrunn> so, it's not the tutorial's fault in this case ;-)
[8:58] <Byro1> eheh yeh :P
[8:59] <philmaker> :-P
[8:59] <philmaker> :-)
[9:01] <Byro1> oh well, i think i need some sleep ;)
[9:01] <Byro1> thanks for the help!
[13:37] <kuccello> does anyone know if there is a way to write unit tests for helma apps? I am accustomed to JUnit on the J2EE web apps I write and would like to follow a similar process with helma app development.
[14:04] <zumbrunn> hi kuccello...
[14:05] <zumbrunn> a unit testing framework is part of the jala module
[14:05] <zumbrunn> http://dev.orf.at/trac/jala/wiki/JalaUtil/Test
[14:05] <zumbrunn> I haven't worked with it yet, though
[20:22] <kuccello> thanks, I'll check it out

 

 

In the channel now:

Logs by date: