Re: [Lift] method call from out of nowhere

2009-12-01 Thread David Pollak
On Mon, Nov 30, 2009 at 11:26 PM, Hannes hannes.flo...@gmx.li wrote: Hi David, On Mon, Nov 30, 2009 at 12:11 AM, Hannes hannes.flo...@gmx.li wrote: Hi David, In my LimitOrder Meta Object, I did: override def afterCreate to inform an Actor, everytime a new Order is created. The Actor

Re: [Lift] method call from out of nowhere

2009-12-01 Thread Hannes
David Pollak schrieb: On Mon, Nov 30, 2009 at 11:26 PM, Hannes hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li wrote: Hi David, On Mon, Nov 30, 2009 at 12:11 AM, Hannes hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li wrote: Hi David, In my LimitOrder

Re: [Lift] method call from out of nowhere

2009-11-30 Thread Hannes
It is called outside from an Actor, everytime a new item is created. thanks. Where is joinOtherOrders()called within your code? alex On Sun, Nov 29, 2009 at 7:24 AM, Hannes hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li wrote: Hey Lifters, I've some really strange things

Re: [Lift] method call from out of nowhere

2009-11-30 Thread Hannes
Hi David, In my LimitOrder Meta Object, I did: override def afterCreate to inform an Actor, everytime a new Order is created. The Actor than calls the joinOtherOrders method. # I think I understand it now. Cause I'm creating new orders inside the loop at some point. But still I don' t really

Re: [Lift] method call from out of nowhere

2009-11-30 Thread Hannes
ok, I'll do that. thanks. Or you can get stack trace information from Thread. I have a utility function getCaller that does a getStackTrace and then looks at the proper element of the array. (second, third? I forget) On Mon, Nov 30, 2009 at 12:30 AM, Alex Boisvert alex.boisv...@gmail.com

Re: [Lift] method call from out of nowhere

2009-11-30 Thread Hannes
Hi David, On Mon, Nov 30, 2009 at 12:11 AM, Hannes hannes.flo...@gmx.li mailto:hannes.flo...@gmx.li wrote: Hi David, In my LimitOrder Meta Object, I did: override def afterCreate to inform an Actor, everytime a new Order is created. The Actor than calls the

[Lift] method call from out of nowhere

2009-11-29 Thread Hannes
Hey Lifters, I've some really strange things going on here. Please consider this method definition. I've put alot of print debug statements between other statements. There's a while-loop that only starts, when the given list (orders) is not empty. It stops when done is set to true. So far, so

Re: [Lift] method call from out of nowhere

2009-11-29 Thread Timothy Perrett
Hannes, Firstly, I really, really wouldn't write your code like that... Things of note: - two defs inside defs... you usually wouldnt do this without a good reason (like SHtml.submit(whatever _)) - dont use while loops. period. you have a List[T], use foreach if you have a unit operation def

Re: [Lift] method call from out of nowhere

2009-11-29 Thread Hannes
Hi Tim, Hannes, Firstly, I really, really wouldn't write your code like that... Things of note: - two defs inside defs... you usually wouldnt do this without a good reason (like SHtml.submit(whatever _)) The two defs only make sence together, that's why I put them together in one def.

Re: [Lift] method call from out of nowhere

2009-11-29 Thread Alex Boisvert
Where is joinOtherOrders()called within your code? alex On Sun, Nov 29, 2009 at 7:24 AM, Hannes hannes.flo...@gmx.li wrote: Hey Lifters, I've some really strange things going on here. Please consider this method definition. I've put alot of print debug statements between other statements.

Re: [Lift] method call from out of nowhere

2009-11-29 Thread David Pollak
On Sun, Nov 29, 2009 at 7:24 AM, Hannes hannes.flo...@gmx.li wrote: Hey Lifters, How is joinOtherOrders being invoked? I've some really strange things going on here. Please consider this method definition. I've put alot of print debug statements between other statements. There's a

Re: [Lift] method call from out of nowhere

2009-11-29 Thread Alex Boisvert
An easy way to determine who's calling is simply to print the call stack by adding the following line in your method, (new Exception).printStackTrace alex On Sun, Nov 29, 2009 at 9:24 PM, David Pollak feeder.of.the.be...@gmail.com wrote: On Sun, Nov 29, 2009 at 7:24 AM, Hannes

Re: [Lift] method call from out of nowhere

2009-11-29 Thread Donald McLean
Or you can get stack trace information from Thread. I have a utility function getCaller that does a getStackTrace and then looks at the proper element of the array. (second, third? I forget) On Mon, Nov 30, 2009 at 12:30 AM, Alex Boisvert alex.boisv...@gmail.com wrote: An easy way to determine