javaflow: binary?

2006-06-13 Thread Marcus Deluigi
Hi there! I want to include javaflow in my master thesis in order to stop jobs on remote computers and transfer them to other machines. I downloaded javaflow from the svn but couldn't get it work at the first try. I was wondering, if someone could provide me the binary .jar for the ant

Javaflow: Reference to the Runnable?

2006-07-12 Thread Marcus Deluigi
Hi there! I am using javaflow. What I want to do is the following: Call Continuation.suspend() from within a thread. Transfer the Continuation object over the network call Continuation.continueWith(..) _but_: in order to let the thread work properly at another place within the network, I want

Javaflow: Reference to the Runnable?

2006-07-12 Thread Marcus Deluigi
Hi there! I am using javaflow. What I want to do is the following: Call Continuation.suspend() from within a thread. Transfer the Continuation object over the network call Continuation.continueWith(..) _but_: in order to let the thread work properly at another place within the network, I want

Re: Javaflow: Reference to the Runnable?

2006-07-12 Thread Marcus Deluigi
/Test include name=MyRunnable.class / /javaflow --- What am I doing wrong? Greetings, Marcus On Jul 12, 2006, at 2:36 PM, Marcus Deluigi wrote: Hi there! I am using javaflow. What I want to do is the following: Call Continuation.suspend() from within a thread. Transfer

javaflow: byte code enhancement

2006-07-13 Thread Marcus Deluigi
Hi! I still have the problem of setting up the javaflow byte code enhancement. After the task did not work (as described within my previous email): --- javaflow srcdir=build/classes destdir=build/classes include name=**/*.class / /javaflow -- Returns the error message: The javaflow type

Javaflow: suspending a thread from outside the thread

2006-08-01 Thread Marcus Deluigi
Another Jafaflow question (or maybe still the same): I have a thread where a user should be able to suspend it at any time and another user should be able to resume it at any time. The problem is now: how do I call the suspend() method? I could make a public suspend() method within the

Re: Javaflow: suspending a thread from outside the thread

2006-08-02 Thread Marcus Deluigi
I see your point. But it is not trivial to periodically check a context variable if the thread performs complex calculation and uses other object's methods which take a long time to execute. In java, I could just call Thread.stop(), even if it is depricated... But this is not a Javaflow

Javaflow: Bug in Continuation.getContext();?

2006-08-02 Thread Marcus Deluigi
I have a Runnable class that is sometimes started with a context object and sometimes without. When I call it without a context object, Continuation.getContext() throws a NullPointerException, although the documentation states it should just return a null value (which I think would be nice).

Re: Javaflow: Bug in Continuation.getContext();?

2006-08-02 Thread Marcus Deluigi
I am sorry, the code that I first send was not correct, meaning that it works fine. Here is a shorter, simpler and better example together with the stacktrace: --8-- import org.apache.commons.javaflow.Continuation; class Test implements Runnable { public void run() {

Javaflow: Ant-Task Bug?

2006-08-23 Thread Marcus Deluigi
Hi I have another issue with java flow: I am using a class called Config within a javaflow-thread. On running the javaflow transformation task, I get the following exception: /Users/mdeluigi/SourceCode/build.xml:114: org.apache.bcel.verifier.exc.AssertionViolatedException: INTERNAL

Re: Javaflow: Ant-Task Bug?

2006-08-23 Thread Marcus Deluigi
On Aug 23, 2006, at 2:56 PM, Torsten Curdt wrote: On running the javaflow transformation task, I get the following exception: /Users/mdeluigi/SourceCode/build.xml:114: org.apache.bcel.verifier.exc.AssertionViolatedException: INTERNAL ERROR: Missing class: java.lang.ClassNotFoundException:

Re: Javaflow: Ant-Task Bug?

2006-08-23 Thread Marcus Deluigi
Does ASM based instrumentation mean the Continuation Class Loader? That one works fine: --- try { File dir = new File(System.getProperty(user.dir)); URL url = dir.toURL(); ClassLoader cl = new ContinuationClassLoader( new URL[]{ url },

Re: Javaflow: Ant-Task Bug?

2006-08-24 Thread Marcus Deluigi
Does ASM based instrumentation mean the Continuation Class Loader? Nope ...at the moment the BCEL instrumentation is used by default. I see. For the task: I tried asm 2.2.3 and asm 3.0 RC1, but I always get this exception: java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V

Re: Javaflow: Ant-Task Bug?

2006-08-24 Thread Marcus Deluigi
On Aug 24, 2006, at 2:55 PM, Torsten Curdt wrote: For the task: I tried asm 2.2.3 and asm 3.0 RC1, but I always get this exception: java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init (ZZ)V I can't make any sense out of it. Looks like for some reason you have the wrong version

Commons-Math: Correlation

2006-09-21 Thread Marcus Deluigi
Hi there I think it would be nice if the org.apache.commons.math.stat package contained a method to compute the correlation of two data sets. It's not hard to implement it with the provided methods but it would be much easier if not everybody hat to implement it again. What do you think?