Antville Project

where is getLasterror() defined?

I just cvs'ed antville and built antclick for my home machine. When I try to get referrers eg 127.0.0.1:8080 I get the following.

[HopMacro error: helma.scripting.ScriptingException: Runtime error The function 'getLasterror' is not defined for object '[Database: 'org.gjt.mm.mysql.Driver - connected]' detected at line 564 of function 'listReferrers_macro' in file: 'C:\depot\hop\helma\dist\antclick- 1.0pre1\apps\antville\site\macros.js']

grep says ./antville/site/macros.js:564: var dbError = c.getLasterror(); ./antville/site/macros.js:572: var dbError = c.getLasterror();

If I comment out a few lines around dbError check, referrers are returned. getLasterror() doesn't seem to be defined anywhere in antville code. Is it defined somewhere else eg Java or the mysql driver?

thanks,

-jay

PS is this kind of question appropriate for this blog? Or should it go to the mailing list?

comment    

 
hns, July 11, 2002 at 12:17:05 AM CEST

Don't know what's going wrong here

The getLasterror() function is called on the database connection object, which is an internally created object (a JavaScript wrapper around the JDBC connection object) - that's why the function isn't defined in the Antville code. Strange though. What version of mm.mysql driver are you using - the one from the Helma CVS?

PS: yes, this is definitely the right place for questions like these.

link  

 
hjh, July 11, 2002 at 12:35:42 AM CEST

mysql driver from Helma CVS

I think I am using the driver from helma/lib/mysql.jar CVS version 1.5.

C:\depot\hop\helma\dist\antclick-1.0pre1\lib>ls -l mysql.jar -rw-r--r-- 1 hjh None 125901 Jul 9 18:25 mysql.jar C:\depot\hop\helma\dist\antclick-1.0pre1\lib>cksum mysql.jar 2853256183 125901 mysql.jar

Just downloaded it again and checksums match. MySQL I am using is version 3.23.47-nt. FYI, I am using JDK1.4 but I don't think it matters.

thanks, -jay

link  

 
hns, July 11, 2002 at 12:37:36 AM CEST

I'll take a deeper look tomorrow

(past midnight here already)

link  


... comment
 
hns, July 11, 2002 at 7:47:32 PM CEST

Hi Jay

I found the error. It was simply a problem of upper and lower case - the proper spelling is c.getLastError(), not c.getLasterror(). It's fixed in CVS now.

Thanks for reporting!

link  


... comment


The Antville Server Fund has been a great success. Thanks to everybody who contributed!
online for 8550 Days
last updated: 1/4/11, 10:22 AM
status
Youre not logged in ... Login
menu
November 2024
SunMonTueWedThuFriSat
12
3456789
10111213141516
17181920212223
24252627282930
July
recent
zfuture's house here is zfuture's
house
by zfuture (7/31/03, 2:59 AM)
i understand your concerns however,
i hardly can think of a solution. certainly, if the...
by tobi (7/29/03, 9:47 AM)
Found several more similar sites
listed This is getting to be quite a concern to...
by cobalt123 (7/27/03, 7:56 PM)
Second Post Alert on Referrer
bug livecatz I put this into "help" and now here:...
by cobalt123 (7/26/03, 7:14 PM)
well it's not easy to
find from here, anyway. think we should include a link,...
by tobi (7/24/03, 11:25 AM)
So finally I found
the helma Bugzilla - stupid me.
by mdornseif (7/24/03, 10:28 AM)
clock not that it's particularly
earthshattering but the antclock is running slow by about 15...
by kohlehydrat (7/23/03, 8:25 PM)
but blogosphere.us isn't can't really
be rated as spam can it?
by kohlehydrat (7/23/03, 8:08 PM)
More referrer spam www.webfrost.com
by Irene (7/23/03, 7:55 PM)
How to log skin names
I accessed to console?? Hi, I would like to know...
by winson (7/23/03, 4:12 PM)

Click here to get an XML version of this weblog.

Made with Antville
powered by
Helma Object Publisher