jbas015852无法索引类java.lang.IllegalStateException:未知标记

前端之家收集整理的这篇文章主要介绍了jbas015852无法索引类java.lang.IllegalStateException:未知标记前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
部署到本地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]

对正在发生的事情的解释也将受到高度赞赏.

解决方法

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

JBoss中存在一个问题,可能是Java 8或lambda表达式无法索引的问题.见这link
这是Bug 1193113问题的链接我希望能帮助你

原文链接:https://www.f2er.com/java/127130.html

猜你在找的Java相关文章