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

2010-02-12:

[9:04] <kriek> Hi folks! Thanks for helma! I like the platform, I am planning to use it in teaching programming.
[9:08] <kriek> I have a Q: If I start helma up having a syntax error in .js somewhere, I get the Rhino stacktrace in the logfile. What I would like to have is the possibility to extract the error message only from the EvaluatorException and print it on the console, without the full stacktrace. Anybody got a tip where/how to "hook in" or where to "dig"? Custom ErrorHandler for Jetty? Or which module catches and logs the [2010/02/12 10:04:58] [ERROR]
[9:35] <oberhamsi> kriek: you can overwrite Root.error_action and make the output fit your needs (try getting the error msg from an exception like so res.getException().getCause().getValue() )
[10:48] <kriek> Hi again, thanks for the tip! Where is Root.error_action? in my js env Root[error_action] is undefined. Root is a core java class somewhere?
[10:55] <oberhamsi> just to make sure: we're talking about helma1 (not ng), right?
[10:56] <oberhamsi> you'll have to write Root.prototype.error_action yourself, its not there by default
[11:01] <oberhamsi> it's a normal helma action, no java
[11:05] <kriek> Hi, it is helma-1.7.0. Ok, thanks again. I will test now.
[12:07] <kriek> No, I don't get it to work. Most probably I use helma in the wrong way anyway, not using the HopObjects. The good news is that my js code run before the Exceoption is logged.
[12:08] <kriek> The bad news is that helma does not seem to run my Root.prototype.error_action = function() { writeln("test"); }
[12:09] <kriek> Thanks anyway.
[12:10] <kriek> The Exception looks like
[12:10] <kriek> [ERROR] [helma-1] Error parsing file C:\te ... and then the stacktrace
[12:17] <kriek> and is logged 3 more times: Error invoking onInit, INTERNAL:onStart, INTERNAL:onStop
[13:02] <kriek> hi again, I see on the internet that more people wants to "hook in" to catch Exceptions before the application is even started by helma.
[13:03] <kriek> I have no probs to write a listener in Java and register somewhere, but I am just not sure where to "hook in" ... maybe in the logger or in Rhino? Grateful for any ideas. Thank you!
[13:20] <oberhamsi> kriek, can't help u with that. better write a msg to mailinglist...
[13:23] <kriek> oki, thx
[15:20] <kriek> Hello, now it works. I made my own ErrorReporter and hooked it into Rhino. Thx 4 all help,
[18:34] <Chandra_> hello
[18:35] <Chandra_> hello hopbot
[20:28] <zumbrunn> hi Chandra_
[20:28] <zumbrunn> (delayed reaction, just to prove this thing is on)

 

 

In the channel now:

Logs by date: