Error in traccar server mysql when I add more fields into tables

mtrntx9 years ago

I try to add more fields into table groups for my custom interface but when start the traccar server don't start

This is the wrapper.log

INFO   | jvm 1    | 2016/06/13 15:18:17 | WrapperSimpleApp: 
INFO   | jvm 1    | 2016/06/13 15:18:17 | WrapperSimpleApp Error: Encountered an error running main:
INFO   | jvm 1    | 2016/06/13 15:18:17 | WrapperSimpleApp Error: java.lang.StackOverflowError
INFO   | jvm 1    | 2016/06/13 15:18:17 | WrapperSimpleApp Error: 	at java.util.HashMap$KeyIterator.<init>(HashMap.java:1451)
INFO   | jvm 1    | 2016/06/13 15:18:17 | WrapperSimpleApp Error: 	at java.util.HashMap$KeySet.iterator(HashMap.java:912)
INFO   | jvm 1    | 2016/06/13 15:18:17 | WrapperSimpleApp Error: 	at java.util.HashSet.iterator(HashSet.java:172)
INFO   | jvm 1    | 2016/06/13 15:18:17 | WrapperSimpleApp Error: 	at org.traccar.database.GroupTree.getNodes(GroupTree.java:143)
INFO   | jvm 1    | 2016/06/13 15:18:17 | WrapperSimpleApp Error: 	at org.traccar.database.GroupTree.getNodes(GroupTree.java:145)
INFO   | jvm 1    | 2016/06/13 15:18:17 | WrapperSimpleApp Error: 	at org.traccar.database.GroupTree.getNodes(GroupTree.java:145)
INFO   | jvm 1    | 2016/06/13 15:18:17 | WrapperSimpleApp Error: 	at org.traccar.database.GroupTree.getNodes(GroupTree.java:145)
INFO   | jvm 1    | 2016/06/13 15:18:17 | WrapperSimpleApp Error: 	at org.traccar.database.GroupTree.getNodes(GroupTree.java:145)
INFO   | jvm 1    | 2016/06/13 15:18:17 | WrapperSimpleApp Error: 	at org.traccar.database.GroupTree.getNodes(GroupTree.java:145)
Anton Tananaev9 years ago

Looks like you created a loop with groups.

The issue has been fixed in newer codebase, but the only way to get rid of an existing loop is manually edit the database.