Java 找不到类异常:NestableRunTimeException
我正在初始化json对象Java 找不到类异常:NestableRunTimeException,java,json,Java,Json,我正在初始化json对象 JsonObject json = new JsonObject(); 它抛出NestableRunTimeException 我在pom.xml文件中添加了common-lang-2.4maven依赖项。 jar正在加载,但引发了此异常。 请帮帮我。 我错过了什么 [TomcatInstrumentableClassLoader@781bc7]错误无法确定 缺少类型的注释 org.apache.commons.lang.exception.NestableRunti
JsonObject json = new JsonObject();
它抛出NestableRunTimeException
我在pom.xml
文件中添加了common-lang-2.4maven依赖项。
jar正在加载,但引发了此异常。
请帮帮我。
我错过了什么
[TomcatInstrumentableClassLoader@781bc7]错误无法确定
缺少类型的注释
org.apache.commons.lang.exception.NestableRuntimeException
处理在处理时声明parents net.sf.json.JSONException
在编织时键入mungers[Xlint:cantFindType]
请发布异常的完整跟踪。我编辑了我的问题并添加了异常跟踪。请检查它类不在类路径中,检查pom依赖项,可能定义不好或无法解决。尝试从控制台进行mvn编译。commons lang commons lang 2.4我将其添加到pom.xml中
[TomcatInstrumentableClassLoader@781bc7] error can't determine annotations of missing type org.apache.commons.lang.exception.NestableRuntimeException
when processing declare parents net.sf.json.JSONException
when processing type mungers
when weaving
[Xlint:cantFindType]
java.lang.NoClassDefFoundError: org/apache/commons/lang/exception/NestableRuntimeException
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2818)
at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1159)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1647)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.greytip.admin.sendgrid.api.SMTPUtils.send(SMTPUtils.java:104)
at com.greytip.admin.service.impl.CampaignManagerImpl.sendCampaignMail(CampaignManagerImpl.java:219)
at com.greytip.admin.service.impl.CampaignManagerImpl.process(CampaignManagerImpl.java:117)
at sun.reflect.GeneratedMethodAccessor107.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy63.process(Unknown Source)
at com.greytip.admin.jobs.CampainProcessorJob.process(CampainProcessorJob.java:81)
at com.greytip.admin.jobs.CampainProcessorJob.executeInternal(CampainProcessorJob.java:50)
at sun.reflect.GeneratedMethodAccessor100.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:64)
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:53)
at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.apache.commons.lang.exception.NestableRuntimeException
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
... 39 more