[Swift-devel] Re: IllegalThreadStateException
Mihael Hategan
hategan at mcs.anl.gov
Mon Sep 3 11:19:57 CDT 2007
On Mon, 2007-09-03 at 11:35 +0000, Ben Clifford wrote:
> slightly scarily, the source code looks like that's deliberate?
Yes. Java has no other way of telling whether a process is done or still
running, unless you create another thread and use Process.waitFor. See
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Process.html#exitValue()
>
> On Mon, 3 Sep 2007, Ben Clifford wrote:
>
> >
> > I get these:
> >
> > WORKER:NotificationThread:readThread:doRun(): if(CACHING == false)
> > WORKER:NotificationThread:readThread:doRun(): taskFileName = some data
> > file name
> > Executing task soju.hawaga.org.uk:50102:10_1011162150... Building
> > executable command...Executing: sleep 1
> > Environment:
> > Working Directory: java.lang.IllegalThreadStateException: process hasn't
> > exited
> > at java.lang.UNIXProcess.exitValue(UNIXProcess.java:119)
> > at
> > org.globus.GenericPortal.clients.GPService_instance.ExecThread.exec(WorkerRun.java:3159)
> > at
> > org.globus.GenericPortal.clients.GPService_instance.ExecThread.doRun(WorkerRun.java:3380)
> > at
> > org.globus.GenericPortal.clients.GPService_instance.ExecThread.run(WorkerRun.java:2918)
> > starting ChildListener thread...
> > polling ChildListener thread for termination...
> >
> > in large number (once per task?) when I try out your example localhost
> > sleep examples...
> >
> >
> _______________________________________________
> Swift-devel mailing list
> Swift-devel at ci.uchicago.edu
> http://mail.ci.uchicago.edu/mailman/listinfo/swift-devel
>
More information about the Swift-devel
mailing list