Quarkus Builder错误:类java.lang.Enum不在Jandex索引中。

huangapple go评论90阅读模式
英文:

Quarkus Builder Error The class java.lang.Enum is not inside the Jandex index

问题

我有一个依赖关系,使用了 jandex 插件进行索引,正如 Guilhaume Smet 在这个问题的回答中所解释的那样:https://stackoverflow.com/questions/55513502/how-to-create-a-jandex-index-in-quarkus-for-classes-in-a-external-module

一切运行良好,后来我决定使用扩展 hibernate-orm-panache。一旦我将它添加到 pom 中,我就会得到以下错误:

    失败的执行目标 io.quarkus:quarkus-maven-plugin:1.5.2.Final:build (default) 在项目 #### 上:构建 quarkus 应用失败:io.quarkus.builder.BuildException: 构建失败:由于错误而构建失败
   [error]: 构建步骤 io.quarkus.hibernate.orm.panache.deployment.PanacheHibernateResourceProcessor#validate 抛出异常:java.lang.IllegalStateException: io.quarkus.builder.BuildException: 构建失败:类 java.lang.Enum 不在 Jandex 索引内
    (...)
    Caused by: io.quarkus.builder.BuildException: 构建失败:类 java.lang.Enum 不在 Jandex 索引内
        
        [ERROR] 	at io.quarkus.panache.common.deployment.JandexUtil.isSubclassOf(JandexUtil.java:348)
        [ERROR] 	at io.quarkus.hibernate.orm.panache.deployment.PanacheHibernateResourceProcessor.validate(PanacheHibernateResourceProcessor.java:177)  
        [ERROR] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        [ERROR] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        [ERROR] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        [ERROR] 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        [ERROR] 	at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:932)

这是一个 bug 吗?有没有什么变通方法?

英文:

I have a dependency which is indexed using jandex plugin, as explained by Guilhaume Smet answer to this question: https://stackoverflow.com/questions/55513502/how-to-create-a-jandex-index-in-quarkus-for-classes-in-a-external-module

It worked fine, then I decided to use the extension hibernate-orm-panache. As soon as I add it to the pom, I get the followeing error:

    Failed to execute goal io.quarkus:quarkus-maven-plugin:1.5.2.Final:build (default) on project ####: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
   [error]: Build step io.quarkus.hibernate.orm.panache.deployment.PanacheHibernateResourceProcessor#validate threw an exception: java.lang.IllegalStateException: io.quarkus.builder.BuildException: Build failure: The class java.lang.Enum is not inside the Jandex index
    (...)
    Caused by: io.quarkus.builder.BuildException: Build failure: The class java.lang.Enum is not inside the Jandex index
        
        [ERROR] 	at io.quarkus.panache.common.deployment.JandexUtil.isSubclassOf(JandexUtil.java:348)
        [ERROR] 	at io.quarkus.hibernate.orm.panache.deployment.PanacheHibernateResourceProcessor.validate(PanacheHibernateResourceProcessor.java:177)  
        [ERROR] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        [ERROR] 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        [ERROR] 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        [ERROR] 	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
        [ERROR] 	at io.quarkus.deployment.ExtensionLoader$2.execute(ExtensionLoader.java:932)

Is that a bug ? Is there any turnaround?

答案1

得分: 1

我会说它看起来像是一个错误,或者至少是一个意外的行为,我们需要修复。

你可以在我们的问题跟踪系统上提一个带有简单重现步骤的问题吗?

我们需要在7月1日星期三晚上之前解决1.6.0.Final版本的问题,所以我们越早获得重现步骤,就越好。谢谢!

英文:

I would say it looks like a bug or at least an unexpected behavior that we need to fix.

Could you open an issue on our tracker with a simple reproducer?

We have until Wednesday July 1st evening to fix issues for 1.6.0.Final so the earlier we get the reproducer, the better. Thanks!

huangapple
  • 本文由 发表于 2020年6月29日 10:32:19
  • 转载请务必保留本文链接:https://go.coder-hub.com/62630378.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定