From a615866fb3e86ea5bddaaa266882e3113b54141f Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 12 Oct 2013 13:43:30 +1300 Subject: Fallback for xml error --- src/org/traccar/model/DatabaseDataManager.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/org/traccar/model/DatabaseDataManager.java b/src/org/traccar/model/DatabaseDataManager.java index f56782b44..65a52d100 100644 --- a/src/org/traccar/model/DatabaseDataManager.java +++ b/src/org/traccar/model/DatabaseDataManager.java @@ -175,8 +175,10 @@ public class DatabaseDataManager implements DataManager { } else { queryAddPosition.setLong("power", null); } - } catch (XPathExpressionException ex) { - Log.warning(ex); + } catch (XPathExpressionException e) { + Log.warning("Error in XML: " + position.getExtendedInfo(), e); + queryAddPosition.setLong("id", null); + queryAddPosition.setLong("power", null); } queryAddPosition.executeUpdate(); -- cgit v1.2.3