thorntail+lombok builder失败

uyhoqukh  于 2021-07-09  发布在  Java
关注(0)|答案(0)|浏览(276)

我们的torntail 2.3.0应用程序在使用lombok时,带有cdi、microfile config、jaxrs和undertow依赖项的应用程序会失败 @Builder .

2019-02-04 09:36:27,544 ERROR [stderr] (main) Caused by: java.lang.UnsupportedOperationException
2019-02-04 09:36:27,544 ERROR [stderr] (main)   at org.objectweb.asm.ClassVisitor.visitNestHostExperimental(ClassVisitor.java:158)
2019-02-04 09:36:27,544 ERROR [stderr] (main)   at org.objectweb.asm.ClassReader.accept(ClassReader.java:541)
2019-02-04 09:36:27,544 ERROR [stderr] (main)   at org.objectweb.asm.ClassReader.accept(ClassReader.java:391)
2019-02-04 09:36:27,545 ERROR [stderr] (main)   at org.wildfly.swarm.jaxrs.internal.JAXRSArchiveImpl.isJAXRS(JAXRSArchiveImpl.java:119)
2019-02-04 09:36:27,545 ERROR [stderr] (main)   at org.wildfly.swarm.jaxrs.internal.JAXRSArchiveImpl.isJAXRS(JAXRSArchiveImpl.java:96)
2019-02-04 09:36:27,545 ERROR [stderr] (main)   at org.wildfly.swarm.jaxrs.JAXRSArchive.isJAXRS(JAXRSArchive.java:55)
2019-02-04 09:36:27,545 ERROR [stderr] (main)   at org.wildfly.swarm.jaxrs.internal.DefaultJAXRSWarDeploymentFactory.create(DefaultJAXRSWarDeploymentFactory.java:46)
2019-02-04 09:36:27,545 ERROR [stderr] (main)   at org.wildfly.swarm.container.runtime.deployments.DefaultDeploymentCreator.createDefaultDeployment(DefaultDeploymentCreator.java:69)

这可能是由于lombok生成的builder内部类中缺少空构造函数造成的。有什么解决办法吗?

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题