开发者社区> 问答> 正文

guava升级到最新版后启动报错?报错

java.lang.NoClassDefFoundError: [Lafu/com/sun/source/tree/Tree$Kind;
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
	at java.lang.Class.getDeclaredMethods(Class.java:1975)
	at sun.reflect.annotation.AnnotationType$1.run(AnnotationType.java:112)
	at sun.reflect.annotation.AnnotationType$1.run(AnnotationType.java:109)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.reflect.annotation.AnnotationType.<init>(AnnotationType.java:109)
	at sun.reflect.annotation.AnnotationType.getInstance(AnnotationType.java:85)
	at sun.reflect.annotation.AnnotationParser.parseAnnotation2(AnnotationParser.java:266)
	at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:120)
	at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:72)
	at java.lang.Class.createAnnotationData(Class.java:3521)
	at java.lang.Class.annotationData(Class.java:3510)
	at java.lang.Class.getAnnotation(Class.java:3415)
	at io.jboot.utils.ClassScanner.scanClassByAnnotation(ClassScanner.java:225)
	at io.jboot.aop.JbootInjectManager.beanBind(JbootInjectManager.java:114)
	at io.jboot.aop.JbootInjectManager.configure(JbootInjectManager.java:101)
	at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:344)
	at com.google.inject.spi.Elements.getElements(Elements.java:103)
	at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:137)
	at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
	at com.google.inject.Guice.createInjector(Guice.java:87)
	at com.google.inject.Guice.createInjector(Guice.java:69)
	at com.google.inject.Guice.createInjector(Guice.java:59)
	at io.jboot.aop.JbootInjectManager.<init>(JbootInjectManager.java:67)
	at io.jboot.aop.JbootInjectManager.<clinit>(JbootInjectManager.java:58)
	at io.jboot.Jboot.injectMembers(Jboot.java:504)
	at io.jboot.web.JbootAppConfig.<init>(JbootAppConfig.java:75)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at java.lang.Class.newInstance(Class.java:442)
	at com.jfinal.core.JFinalFilter.createJFinalConfig(JFinalFilter.java:101)
	at com.jfinal.core.JFinalFilter.init(JFinalFilter.java:47)
	at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:111)
	at io.undertow.servlet.core.ManagedFilter.createFilter(ManagedFilter.java:80)
	at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:590)
	at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:555)
	at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
	at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
	at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:597)
	at io.jboot.server.undertow.UnderTowServer.initUndertowServer(UnderTowServer.java:99)
	at io.jboot.server.undertow.UnderTowServer.start(UnderTowServer.java:178)
	at io.jboot.Jboot.startServer(Jboot.java:160)
	at io.jboot.Jboot.start(Jboot.java:143)
	at io.jboot.Jboot.run(Jboot.java:87)
	at io.jboot.admin.service.AdminServiceStarter.main(AdminServiceStarter.java:13)
Caused by: java.lang.ClassNotFoundException: afu.com.sun.source.tree.Tree$Kind
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 48 more

 

展开
收起
爱吃鱼的程序员 2020-06-06 21:29:40 639 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB
                        <p>已经发现问题,下个版本修复。</p>
    
                    
    
                        <p>已经修复:请使用 1.5.5+ 版本。</p>
    
    2020-06-06 21:29:59
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
《Java开发手册》2019最新版发布! 立即下载
《阿里巴巴Java开发手册》1.3.0版本【非最新版】 立即下载
低代码开发师(初级)实战教程 立即下载