问题描述
- java项目使用jni出错NoClassDefFoundError
-
Caused by: java.lang.NoClassDefFoundError: com.yhty.service.impl.other.GetOweInfoByTuxedo (initialization failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)
at com.yhty.service.impl.other.PhonePaymentManagerImpl.getOweInfo(PhonePaymentManagerImpl.java:46)
at sun.reflect.GeneratedMethodAccessor2060.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy315.getOweInfo(Unknown Source)
at com.yhty.ws.impl.IplatformServiceManagerImpl.getOweInfo(IplatformServiceManagerImpl.java:1254)
at sun.reflect.GeneratedMethodAccessor2059.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:618)
GetOweInfoByTuxedo声明native方法的类,在调用时出现上面异常信息,说是初始化错误,那位大神知道原因吗?纠结好长时间了。
时间: 2024-10-12 06:08:21