Uploaded image for project: 'Thorntail'
  1. Thorntail
  2. THORN-1886

Jandex fails to parse "asm-tree-6.0.jar"

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 2018.3.3
    • Fix Version/s: 2018.4.1
    • Component/s: None
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      Steps to reproduce:

      1. Create an empty app with the generator (no additional fractions)
      2. Update version.wildfly.swarm to 2018.3.2.
      3. Run mvn wildfly-swarm-run with JDK8
      Show
      Steps to reproduce: Create an empty app with the generator (no additional fractions) Update version.wildfly.swarm to 2018.3.2 . Run mvn wildfly-swarm-run with JDK8

      Description

      If I run an empty sample application created from the generator, the following exception is logged:

      2018-03-08 16:04:03,755 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0003: Could not index class module-info.class at /content/demo.war/WEB-INF/lib/asm-tree-6.0.jar: java.lang.IllegalStateException: Unknown tag! pos=3 poolCount = 12
      	at org.jboss.jandex.Indexer.processConstantPool(Indexer.java:1417)
      	at org.jboss.jandex.Indexer.index(Indexer.java:1451)
      	at org.jboss.as.server.deployment.annotation.ResourceRootIndexer.indexResourceRoot(ResourceRootIndexer.java:99)
      	at org.jboss.as.server.deployment.annotation.AnnotationIndexProcessor.deploy(AnnotationIndexProcessor.java:51)
      	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:165)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:2032)
      	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1955)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      

      This only happens when running the app via:

      mvn wildfly-swarm:run
      

      It does NOT happen if I run the app with:

      java -jar target/foobar-swarm.jar
      

      Please not that this is just a warning! However, it looks like the JAX-RS fraction stops working with this warning being logged. My guess is that this is because it fails to generate the default Application class in this case.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                mkouba Martin Kouba
                Reporter:
                chkal Christian Kaltepoth
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: