我的pojo上的Lombok Builder的NoclassDeffoundError

发布于 2025-02-03 12:24:08 字数 352 浏览 3 评论 0原文

我有一个带有Lombok Builder注释的Pojo。我的项目创建了一个脂肪Jar,以部署在由Apache Airflow精心策划的工作流程中,该工作流程被执行为flink作业。

部署工作正常,在运行时,我在Lombok Builder Call上获得了NoclassDeffoundError。

java.lang.NoClassDefFoundError: com.Pojo$PojoBuilder
    at com.Pojo.builder(Pojo.java:10)

我检查了我的机器上的脂肪贾尔,Pojo班有建造者。知道什么可能导致这个问题?

由于公司规则,可能无法共享确切的代码。

I have a POJO with lombok builder annotation on it. My project creates a fat-jar to deploy in a workflow orchestrated by apache airflow, executed as a flink job.

Deployment works fine, while running i get a noclassdeffounderror on the lombok builder call.

java.lang.NoClassDefFoundError: com.Pojo$PojoBuilder
    at com.Pojo.builder(Pojo.java:10)

I checked the decompiled fat-jar on my machine and the pojo class has the builder. Any idea what may be causing this issue?

May not be able to share exact code due to corp rules.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寄与心 2025-02-10 12:24:08

您的构建器可能取决于脂肪Jar中缺少的类或其中一个类的静态代码未能运行。

NoclassDeffoundError是二手错误。为什么不能加载类也应该有另一个或更早的错误。有关详细信息,请参见我为什么要在java中获得noclassdeffounderror? >

Your builder probably depends on a class that is missing in the fat-jar or one of those classes has static code that failed to run.

NoClassDefFoundError is a second-hand error. There should be another or earlier error with why it can't load the class. For details, see Why am I getting a NoClassDefFoundError in Java?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文