java.lang.NoSuchMethodError: net.sf.cglib.proxy.Enhancer.setInterceptDuringConstruction(Z)V

本文解决了一个特定的问题:当使用Hibernate3时遇到java.lang.NoSuchMethodError错误,原因是使用了不兼容的cglib-full-2.0.2.jar版本。正确的做法是替换为cglib-2.1_2jboss.jar以确保程序正常运行。
 java.lang.NoSuchMethodError: net.sf.cglib.proxy.Enhancer.setInterceptDuringConstruction(Z)V
如果用的hibernate3不能够用cglib-full-2.0.2.jar,而要用cglib-2.1_2jboss.jar
[main] WARN net.openhft.posix.internal.PosixAPIHolder -- Unable to load JNRPosixAPI com.oracle.svm.core.jdk.UnsupportedFeatureError: Proxy class defined by interfaces [interface net.openhft.posix.internal.jnr.WinJNRPosixInterface, interface jnr.ffi.provider.LoadedLibrary] not found. Generating proxy classes at runtime is not supported. Proxy classes need to be defined at image build time by specifying the list of interfaces that they implement. To define proxy classes use -H:DynamicProxyConfigurationFiles=<comma-separated-config-files> and -H:DynamicProxyConfigurationResources=<comma-separated-config-resources> options. [main] WARN net.openhft.affinity.Affinity -- Windows JNA-based affinity not usable because it failed to load! Reason: com.oracle.svm.core.jdk.UnsupportedFeatureError: Proxy class defined by interfaces [interface net.openhft.affinity.impl.WindowsJNAAffinity$CLibrary] not found. Generating proxy classes at runtime is not supported. Proxy classes need to be defined at image build time by specifying the list of interfaces that they implement. To define proxy classes use -H:DynamicProxyConfigurationFiles=<comma-separated-config-files> and -H:DynamicProxyConfigurationResources=<comma-separated-config-resources> options. Exception in thread "main" java.lang.ExceptionInInitializerError Caused by: java.lang.NoSuchMethodException: no such method: java.lang.reflect.AccessibleObject.setAccessible0(boolean)boolean/invokeVirtual Caused by: java.lang.NoSuchMethodError: java.lang.reflect.AccessibleObject.setAccessible0(boolean) 根据你给的方式,我在graalvm编译后运行exe文件报错如上
10-01
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值