aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2013-10-12 13:43:30 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2013-10-12 13:43:30 +1300
commita615866fb3e86ea5bddaaa266882e3113b54141f (patch)
tree0fa35eb46a61951b4bb08becb05373e6a8ec77a8 /src
parentd97f71973d3e0dd3571a05f8a938813795f5aced (diff)
downloadtraccar-server-a615866fb3e86ea5bddaaa266882e3113b54141f.tar.gz
traccar-server-a615866fb3e86ea5bddaaa266882e3113b54141f.tar.bz2
traccar-server-a615866fb3e86ea5bddaaa266882e3113b54141f.zip
Fallback for xml error
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/model/DatabaseDataManager.java6
1 files 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();