在執(zhí)行tree的buid方法出現(xiàn)如下錯(cuò)誤
嚴(yán)重: Servlet.service() for servlet [contacts] in context with path [/efo] threw exception [Handler processing failed; nested exception is java.lang.StackOverflowError] with root cause
java.lang.StackOverflowError
at java.util.AbstractList.listIterator(Unknown Source)
at java.util.AbstractSequentialList.iterator(Unknown Source)
at com.efo.common.tree.Tree.buildTree(Tree.java:38)
at com.efo.common.tree.Tree.buildTree(Tree.java:42)
at com.efo.common.tree.Tree.buildTree(Tree.java:42)
at com.efo.common.tree.Tree.buildTree(Tree.java:42)
at com.efo.common.tree.Tree.buildTree(Tree.java:42)
at com.efo.common.tree.Tree.buildTree(Tree.java:42)
at com.efo.common.tree.Tree.buildTree(Tree.java:42)
at com.efo.common.tree.Tree.buildTree(Tree.java:42)
at com.efo.common.tree.Tree.buildTree(Tree.java:42)
at com.efo.common.tree.Tree.buildTree(Tree.java:42)
at com.efo.common.tree.Tree.buildTree(Tree.java:42)
at com.efo.common.tree.Tree.buildTree(Tree.java:42)
at com.efo.common.tree.Tree.buildTree(Tree.java:42)
at com.efo.common.tree.Tree.buildTree(Tree.java:42)
at com.efo.common.tree.Tree.buildTree(Tree.java:42)
at com.efo.common.tree.Tree.buildTree(Tree.java:42)
at com.efo.common.tree.Tree.buildTree(Tree.java:42)
at com.efo.common.tree.Tree.buildTree(Tree.java:42)
at com.efo.common.tree.Tree.buildTree(Tree.java:42)
at com.efo.common.tree.Tree.buildTree(Tree.java:42)
at com.efo.common.tree.Tree.buildTree(Tree.java:42)
at com.efo.common.tree.Tree.buildTree(Tree.java:42)
at com.efo.common.tree.Tree.buildTree(Tree.java:42)
2017-04-12
StackOverflow??這個(gè)問題一般是你的程序里頭可能是有死循環(huán)或遞歸調(diào)用所產(chǎn)生的;