Hi all,
I am using x10 2.4.1 with C++ Backup. I am testing the resilience feature.
In a simple test (see code below) in 50% I get a "DeadPlaceException thrown
from Place(2)", at 50% I get only "
Place 2 exited unexpectedly with signal: Aborted" and no exception. I am
amazed about this. Is this normal? How could I react, when I see no
exception?
export X10_NPLACES=4
export X10_RESILIENT_MODE=1
export X10_RESILIENT_PLACE_ZERO=1
export X10_HOSTLIST=nv280
x10c++ -O -x10rt sockets Simple.x10 -o Simple
./Simple
Code:
public class Simple {
public static def main(args: Rail[String]) {
try {
at (here.next()) {
Console.OUT.println("first at solved from " + here);
try {
at (here.next()) {
Console.OUT.println("second at solved from " + here);
System.killHere();
}
} catch (e: Exception) {
processException(e, 0);
}
Console.OUT.println("Finish " + here);
}
} catch (e: Exception) {
processException(e, 0);
}
Console.OUT.println("Complete Finish " + here);
}
private static def processException(e:Exception, l:Long) {
Console.OUT.println("processException...");
if (e instanceof DeadPlaceException) {
val deadPlace = (e as DeadPlaceException).place;
Console.OUT.println(new String(new Rail[Char](l,' ')) +
"DeadPlaceException thrown from " + deadPlace);
Console.OUT.flush();
} else if (e instanceof MultipleExceptions) {
val exceptions = (e as MultipleExceptions).exceptions();
Console.OUT.println(new String(new Rail[Char](l,' ')) +
"MultipleExceptions size=" + exceptions.size);
Console.OUT.flush();
for (ec in exceptions) processException(ec, l+1);
} else {
Console.OUT.println(new String(new Rail[Char](l,' ')) + e);
Console.OUT.flush();
throw e;
}
}
}
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience. Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
X10-users mailing list
X10-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/x10-users