0

接收 stackoverflow 错误:操作:我们正在尝试比较 xml(从 repo 签出)并且我们正在使用 arraylist 和 hashmaps 来执行逐个节点的比较,但是在过程中的某个地方我收到了这个错误。我查了一下,没有无限循环,也没有并发修改。不确定它到底在哪里抛出这个错误。此外,我观察到的一点是 temp 文件夹用于我们的 xml 结帐,有时由于主 xml 中的 refreence xmls,temp 文件夹的大小会增长到大约 600mb,因为这些参考 xmls 也被签出以进行比较。

我也检查了npe。

java.lang.StackOverflowError
at java.util.ArrayList.get(ArrayList.java:322)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:314)
at sun.misc.URLClassPath.access$000(URLClassPath.java:60)
at sun.misc.URLClassPath$1.next(URLClassPath.java:195)
at sun.misc.URLClassPath$1.hasMoreElements(URLClassPath.java:206)
at java.net.URLClassLoader$3$1.run(URLClassLoader.java:416)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader$3.next(URLClassLoader.java:413)
at java.net.URLClassLoader$3.hasMoreElements(URLClassLoader.java:438)
at sun.misc.CompoundEnumeration.next(CompoundEnumeration.java:27)
at sun.misc.CompoundEnumeration.hasMoreElements(CompoundEnumeration.java:36)
at sun.misc.CompoundEnumeration.next(CompoundEnumeration.java:27)
at sun.misc.CompoundEnumeration.hasMoreElements(CompoundEnumeration.java:36)
at sun.misc.CompoundEnumeration.next(CompoundEnumeration.java:27)
at sun.misc.CompoundEnumeration.hasMoreElements(CompoundEnumeration.java:36)
at org.codehaus.classworlds.DefaultClassRealm.findResources(DefaultClassRealm.java:351)
at org.codehaus.classworlds.RealmClassLoader.findResources(RealmClassLoader.java:252)
at java.lang.ClassLoader.getResources(ClassLoader.java:1041)
at org.codehaus.classworlds.DefaultClassRealm.findResources(DefaultClassRealm.java:351)
at org.codehaus.classworlds.RealmClassLoader.findResources(RealmClassLoader.java:252)
at java.lang.ClassLoader.getResources(ClassLoader.java:1041)
at org.codehaus.classworlds.DefaultClassRealm.findResources(DefaultClassRealm.java:351)
at org.codehaus.classworlds.RealmClassLoader.findResources(RealmClassLoader.java:252)
at java.lang.ClassLoader.getResources(ClassLoader.java:1041)
at org.codehaus.classworlds.DefaultClassRealm.findResources(DefaultClassRealm.java:351)
at org.codehaus.classworlds.RealmClassLoader.findResources(RealmClassLoader.java:252)
at java.lang.ClassLoader.getResources(ClassLoader.java:1041)
at org.codehaus.classworlds.DefaultClassRealm.findResources(DefaultClassRealm.java:351)
at org.codehaus.classworlds.RealmClassLoader.findResources(RealmClassLoader.java:252)
4

0 回答 0