From 44f5a1f3db75841a51f1d521c10289c4b84132ea Mon Sep 17 00:00:00 2001 From: Gregor Riegler Date: Sun, 16 Jun 2013 14:20:48 +0200 Subject: [PATCH] [XVSM] Add remarks to README. Reset log root level to info. Add NPE-clause to DriverXVSM --- README.md | 2 ++ .../java/at/ac/tuwien/sbc/valesriegler/xvsm/DriverXVSM.java | 3 ++- src/main/resources/logback.xml | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 637f12c..08a68bb 100644 --- a/README.md +++ b/README.md @@ -21,6 +21,8 @@ The Load Balancer also expects a running space (given as argument) as well as wa Start the Spaces first and then the actors! +After the Pizzeria starts it registers itself at the Group Agent. Then the pizzeria can be selected on group creation. + ### 1. Start the Group Space Server mvn exec:java -Dexec.mainClass="org.mozartspaces.core.Server" -Dexec.args=9876 diff --git a/src/main/java/at/ac/tuwien/sbc/valesriegler/xvsm/DriverXVSM.java b/src/main/java/at/ac/tuwien/sbc/valesriegler/xvsm/DriverXVSM.java index 736596f..52e6b80 100644 --- a/src/main/java/at/ac/tuwien/sbc/valesriegler/xvsm/DriverXVSM.java +++ b/src/main/java/at/ac/tuwien/sbc/valesriegler/xvsm/DriverXVSM.java @@ -32,7 +32,6 @@ public class DriverXVSM extends AbstractXVSMConnector { deliveryOrderTakenContainer = useContainer(Util.DELIVERY_ORDER_TAKEN); deliverDeliveryOrderContainer = useContainer(Util.DELIVER_DELIVERY_ORDER); pizzeriaDeliveryContainer = useContainer(Util.PIZZERIA_DELIVERY); - } @@ -100,6 +99,8 @@ public class DriverXVSM extends AbstractXVSMConnector { } catch(EntryLockedException e) { capi.rollbackTransaction(tx); + } catch(NullPointerException e) { + log.info("strange npe from space!"); } catch (Exception e) { log.info("DRiverXVSM exception"); log.info(e.getMessage()); diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml index 06ca13a..01e782f 100644 --- a/src/main/resources/logback.xml +++ b/src/main/resources/logback.xml @@ -16,7 +16,7 @@ - + -- 2.43.0