diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2013-10-12 13:43:30 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2013-10-12 13:43:30 +1300 |
commit | a615866fb3e86ea5bddaaa266882e3113b54141f (patch) | |
tree | 0fa35eb46a61951b4bb08becb05373e6a8ec77a8 | |
parent | d97f71973d3e0dd3571a05f8a938813795f5aced (diff) | |
download | traccar-server-a615866fb3e86ea5bddaaa266882e3113b54141f.tar.gz traccar-server-a615866fb3e86ea5bddaaa266882e3113b54141f.tar.bz2 traccar-server-a615866fb3e86ea5bddaaa266882e3113b54141f.zip |
Fallback for xml error
-rw-r--r-- | src/org/traccar/model/DatabaseDataManager.java | 6 |
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(); |