gpt4 book ai didi

Java.lang.VerifyError

转载 作者:行者123 更新时间:2023-12-02 00:50:25 26 4
gpt4 key购买 nike

我在 J2EE 容器中偶尔收到以下错误。有时容器会启动,没有任何问题,有时容器不会启动,因为这个错误,以前有人见过这个错误吗...?可能是什么原因..?它是否涉及任何类加载器/安全问题..?

java.lang.VerifyError: (class: com/rsa/authagent/authapi/realmstat/AUTHav, method: a signature: (Lcom/rsa/authagent/authapi/authmsg/AUTHa0;)V) catch_type not a subclass of Throwable
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2259)
at java.lang.Class.getDeclaredField(Class.java:1852)
at java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1582)
at java.io.ObjectStreamClass.access$700(ObjectStreamClass.java:52)
at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:408)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:400)
at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:297)
at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:531)
at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1552)
at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
at com.rsa.authagent.authapi.realmstat.AUTHi.j(Unknown Source)
at com.rsa.authagent.authapi.realmstat.AUTHi.<init>(Unknown Source)
at com.rsa.authagent.authapi.realmstat.AUTHh.<init>(Unknown Source)
at com.rsa.authagent.authapi.realmstat.AUTHg.<init>(Unknown Source)
at com.rsa.authagent.authapi.AuthSessionFactory.a(Unknown Source)
at com.rsa.authagent.authapi.AuthSessionFactory.<init>(Unknown Source)
at com.rsa.authagent.authapi.AuthSessionFactory.getInstance(Unknown Source)
at netx.esf.authentication.rsa.service.RsaAuthenticationServiceImpl.instantiateRsaAPI(RsaAuthenticationServiceImpl.java:1050)
at netx.esf.authentication.rsa.service.RsaAuthenticationServiceImpl.start(RsaAuthenticationServiceImpl.java:73)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at arch.service.beans.RepBasedServiceBean.onMessage(RepBasedServiceBean.java:108)
at arch.service.beans.RepBasedServiceImpl.onMessage(RepBasedServiceImpl.java:202)
at arch.service.beans.RepBasedServiceImpl.message(RepBasedServiceImpl.java:229)
at arch.CORBA.service.ServicePOA.local_message(ServicePOA.java:188)
at arch.CORBA.Transport.sendLocalRequest(Transport.java:447)
at arch.transport.StubProxy.send_managed_request(StubProxy.java:364)
at arch.transport.StubProxy.invoke(StubProxy.java:205)
at $Proxy15.start(Unknown Source)
at arch.service.beans.RepositoryBasedServiceFactory.startDeployable(RepositoryBasedServiceFactory.java:423)
at arch.service.beans.ServiceContainer$ServiceStarter.run(ServiceContainer.java:1392)
at arch.service.beans.ServiceContainer$ThreadPool._run(ServiceContainer.java:2934)
at arch.util.ThreadPool._runLoopBody(ThreadPool.java:213)
at arch.util.ThreadPool._runForThread(ThreadPool.java:230)
at arch.util.ThreadPool.access$000(ThreadPool.java:3)
at arch.util.ThreadPool$1.run(ThreadPool.java:95)

最佳答案

AUTHav.class 已损坏(有时?)。显然,某些方法被声明为抛出一些不是 Throwable 子类的东西。通常这种情况不应该发生,因为 Java 编译器会检测到该问题并报告错误。但也许类文件被修改/检测甚至在运行时生成,这会引入偶发错误。或者您存在命名冲突,并且加载的类偶尔会看到不同的、不可抛出的类,而不是预期的类。

如果 AUTHav.class 包含在某个存档中,您可以查看字节码(使用 javap 或反编译器)并检查是否找到方法带有可疑的 throws 参数。

<小时/>

因此,字节码被混淆了……那么,您的 J2EE 容器内可能有多个版本的库(这只是一种猜测)。由于类被混淆,类名 AUTHa7 和/或 AUTHa1 可能会用于不同版本的库中的不同(原始)类。然后,如果类加载器在错误的时间选择了两个或可能是错误的一个,则可能会发生 AUTHa7 和/或 AUTHa1 在运行时不是异常。 .

关于Java.lang.VerifyError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3438404/

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