Re: Trouble with commons-math

2007-11-01 Thread sebb
On 01/11/2007, Brent Worden <[EMAIL PROTECTED]> wrote: > On Oct 31, 2007 6:41 AM, sebb <[EMAIL PROTECTED]> wrote: > > > > However, I'm not sure that the class is thread-safe. > > For example the windowSize field is not final, and therefore may not > > be visible to all threads after construction. M

Re: Trouble with commons-math

2007-11-01 Thread Brent Worden
On Oct 31, 2007 6:41 AM, sebb <[EMAIL PROTECTED]> wrote: > > However, I'm not sure that the class is thread-safe. > For example the windowSize field is not final, and therefore may not > be visible to all threads after construction. Making it final would > fix this. > > Fixing the eDA field might b

Re: Trouble with commons-math

2007-10-31 Thread Rahul Akolkar
On 10/31/07, sebb <[EMAIL PROTECTED]> wrote: > On 31/10/2007, Brent Worden <[EMAIL PROTECTED]> wrote: > > David, > > > > I just checked in a SynchronizedDescriptiveStatistics class that > > should eliminate the threading issues you're experiencing. Feel free > > to grab it out of source control an

Re: Trouble with commons-math

2007-10-31 Thread sebb
On 31/10/2007, Brent Worden <[EMAIL PROTECTED]> wrote: > David, > > I just checked in a SynchronizedDescriptiveStatistics class that > should eliminate the threading issues you're experiencing. Feel free > to grab it out of source control and give it a try. > > http://svn.apache.org/viewvc/commons

Re: Trouble with commons-math

2007-10-30 Thread Brent Worden
David, I just checked in a SynchronizedDescriptiveStatistics class that should eliminate the threading issues you're experiencing. Feel free to grab it out of source control and give it a try. http://svn.apache.org/viewvc/commons/proper/math/trunk/src/java/org/apache/commons/math/stat/descriptiv

Re: Trouble with commons-math

2007-10-28 Thread Torsten Curdt
Sounds like a threading issue. I'd assume DescriptiveStatistics is not thread-safe and in your stacktrace I see at no.mypackage.spring.utils.ExecutionTimeAdviceTest$1.run (ExecutionTimeAdviceTest.java:47) at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run (Unknown Source)

Trouble with commons-math

2007-10-27 Thread David J. M. Karlsen
Hi folks! I use DescriptiveStatistics - but it seems to fail under heavy usage. The scenario: I use commons math to track average response time in a spring interceptor. The DescriptiveStatistics instance is held within an object instance. All calls to this object is synchronized - I've triple-c