jbas015852 无法索引类 java.lang.IllegalStateException: Unknown tag

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/28935841/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 07:02:24  来源:igfitidea点击:

jbas015852 could not index class java.lang.IllegalStateException: Unknown tag

javajboss6.x

提问by archer

This error happens when deploying to a local JBOSS server. Is there a way to resolve this warning?

部署到本地 JBOSS 服务器时会发生此错误。有没有办法解决这个警告?

22:31:22,992 WARN [org.jboss.as.server.deployment] (MSC service thread 1-13) JBAS015852: Could not index class com/company/core/security/AuthRealm.class at /C:/DevTools/jboss-eap-6.3/bin/content/platform-ws-0.1.war/WEB-INF/lib/com.company.platform-platform-core-0.1.jar: java.lang.IllegalStateException: Unknown tag! pos=20 poolCount = 133 at org.jboss.jandex.Indexer.processConstantPool(Indexer.java:606) [jandex-1.0.3.Final-redhat-2.jar:1.0.3.Final-redhat-2] at org.jboss.jandex.Indexer.index(Indexer.java:640) [jandex-1.0.3.Final-redhat-2.jar:1.0.3.Final-redhat-2] at org.jboss.as.server.deployment.annotation.ResourceRootIndexer.indexResourceRoot(ResourceRootIndexer.java:100) [jboss-as-server-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19] at org.jboss.as.server.deployment.annotation.AnnotationIndexProcessor.deploy(AnnotationIndexProcessor.java:51) [jboss-as-server-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19] at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [jboss-as-server-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19] at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1980) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1] at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1913) [jboss-msc-1.1.5.Final-redhat-1.jar:1.1.5.Final-redhat-1] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_31] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_31] at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_31]

22:31:22,992 WARN [org.jboss.as.server.deployment](MSC 服务线程 1-13)JBAS015852:无法在 /C:/DevTools/jboss 索引类 com/company/core/security/AuthRealm.class -eap-6.3/bin/content/platform-ws-0.1.war/WEB-INF/lib/com.company.platform-platform-core-0.1.jar:java.lang.IllegalStateException:未知标签!pos=20 poolCount = 133 at org.jboss.jandex.Indexer.processConstantPool(Indexer.java:606) [jandex-1.0.3.Final-redhat-2.jar:1.0.3.Final-redhat-2] at org .jboss.jandex.Indexer.index(Indexer.java:640) [jandex-1.0.3.Final-redhat-2.jar:1.0.3.Final-redhat-2] 在 org.jboss.as.server.deployment .annotation.ResourceRootIndexer.indexResourceRoot(ResourceRootIndexer.java:100) [jboss-as-server-7.4.0.Final-redhat-19.jar:7.4.0.Final-redhat-19] 在 org.jboss.as.server .deployment.annotation.AnnotationIndexProcessor。

An explanation of what is going on would be much appreciated, too.

对正在发生的事情的解释也将不胜感激。

采纳答案by Carlos Lacerda

I'm using JBoss EAP 6.3 with patch 6.3.3 but to solve the problem I need to use jandex from JBoss EAP 6.4. I just replace "jandex-1.0.3.Final-redhat-2.jar" for "jandex-1.2.2.Final-redhat-1.jar" in JBoss modules and problem was solved.

我正在使用带有补丁 6.3.3 的 JBoss EAP 6.3,但要解决这个问题,我需要使用 JBoss EAP 6.4 中的 jandex。我只是将 JBoss 模块中的“jandex-1.0.3.Final-redhat-2.jar”替换为“jandex-1.2.2.Final-redhat-1.jar”,问题就解决了。

There is a issue in JBoss of it, maybe problems with Java 8 or lambda expressions that Jandex can′t index. See this linkThis is the link of the issue Bug 1193113I hope that help you

JBoss 中存在问题,可能是 Java 8 或 Jandex 无法索引的 lambda 表达式的问题。查看此链接这是问题的链接 Bug 1193113希望对您有所帮助