结帐和比较时出现stackoverflow错误

时间:2013-05-01 00:26:48

标签: java memory-management memory-leaks arraylist jprofiler

收到stackoverflow错误: 操作:我们正在尝试比较xml(来自repo的checkout),我们正在使用arraylist和hashmaps来逐节点进行比较,但是在这个过程的某个地方我收到了这个错误。我检查过,没有infiniteloop并且没有并发修改。不确定它究竟在哪里抛出这个错误。此外,我观察到的一点是临时文件夹用于我们的xml结帐,有时临时文件夹的大小增长到大约600mb,因为在主xml中重新生成xmls,因为这些参考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)

0 个答案:

没有答案