gpt4 book ai didi

java - 当 stackoverflow 错误没有指向我们的 java 代码时,如何处理它

转载 作者:行者123 更新时间:2023-12-02 07:03:19 28 4
gpt4 key购买 nike

有人可以帮助解决当 stackoverflow 错误没有指向我们的 java 代码时的问题吗?堆栈跟踪仅指向 arraylist 和一些类加载器:

     !MESSAGE Unhandled event loop exception
!STACK 0
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.UrlUtils.normalizeUrlPath(UrlUtils.java:11)
at org.codehaus.classworlds.DefaultClassRealm.findResources(DefaultClassRealm.java:344)
at org.codehaus.classworlds.RealmClassLoader.findResources(RealmClassLoader.java:252)

关于java - 当 stackoverflow 错误没有指向我们的 java 代码时,如何处理它,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16384784/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com