java.lang.ClassNotFoundException: afu.com.sun.source.tree.Tree$Kind

Gee*_*ing -1 java weblogic classnotfoundexception

将我们的应用程序从 weblogic 12.1.3 迁移到 12.2.1 时,我们在部署 EAR 期间遇到以下堆栈跟踪:

<2018-06-05 16:17:03,765> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID "518856605645758" for task "2" on [partition-name: DOMAIN]. Error is: "java.lang.ClassNotFoundException: afu.com.sun.source.tree.Tree$Kind"
java.lang.ClassNotFoundException: afu.com.sun.source.tree.Tree$Kind
        at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:1029)
        at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:990)
        at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:104)
        at weblogic.utils.classloaders.GenericClassLoader.doFindClass(GenericClassLoader.java:611)
        at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:543)
        Truncated. see log file for complete stacktrace
Run Code Online (Sandbox Code Playgroud)

我在互联网上找不到关于这门课的任何信息以及谁可能在使用它,所以我不知道如何解决这个问题。

问题: afu.com.sun.* 包从何而来,如何摆脱对这个 Tree 类的依赖?

小智 5

这与检查器框架(https://checkerframework.org/)有关。对于 Java 6 或 7,您可能只需要向类路径添加一个依赖项:org.checkerframework:checker-qual,或 org.checkerframework:checker-compat-qual。