Bug 1191751 - Jandex included in EAP6.4 can't index Java 8 classes
Summary: Jandex included in EAP6.4 can't index Java 8 classes
Keywords:
Status: CLOSED DUPLICATE of bug 1099724
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Class Loading
Version: 6.3.4
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Tomaz Cerar
QA Contact:
URL: https://developer.jboss.org/message/9...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-11 21:41 UTC by Tomaz Cerar
Modified: 2015-02-11 22:07 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-11 22:05:45 UTC
Type: Component Upgrade
Embargoed:


Attachments (Terms of Use)

Description Tomaz Cerar 2015-02-11 21:41:13 UTC
If you compile your code with java 8 and any new java 8 language feature deployment will fail as jandex won't be able to index classes.

18:36:17,431 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-7) JBAS015852: Could not index class com/prosper/document/ws/impl/DownloadCSVEndpointImpl.class at /C:/java/jboss-eap-6.3/standalone/deployments/core-document.war/WEB-INF/classes: java.lang.IllegalStateException: Unknown tag! pos=32 poolCount = 155
       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_25]
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_25]
       at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_25]

Comment 1 Tomaz Cerar 2015-02-11 21:42:33 UTC
With discussion with Jason, upgrade of jandex to 1.2.x series should fix the problem.
Currently EAP uses 1.0.3.Final

Comment 3 Tomaz Cerar 2015-02-11 22:07:33 UTC

*** This bug has been marked as a duplicate of bug 1099724 ***


Note You need to log in before you can comment on or make changes to this bug.