问答详情
源自:4-2 Java权限管理之部分预先写好代码及内容功能介绍

在执行tree的buid方法出现如下错误

严重: 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)

http://img.mukewang.com/58ec7acc000138ae07560199.jpg

提问者:慕粉3373523 2017-04-11 14:42

个回答

  • Touchkiss
    2017-04-12 09:07:58

    StackOverflow  这个问题一般是你的程序里头可能是有死循环或递归调用所产生的;