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

Unable to run Swarm main() in IDE

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 2.1.0.Final
    • Fix Version/s: 2.2.0.Final
    • Component/s: None
    • Labels:
      None

      Description

      With a project built from generator with just `microprofile` dependency selected fails when running `Swarm` in the IDE with the following exception:

      2018-08-15 13:44:20,477 ERROR [stderr] (main) org.wildfly.swarm.container.DeploymentException: java.lang.IllegalStateException: Unknown tag! pos=3 poolCount = 12
      2018-08-15 13:44:20,477 ERROR [stderr] (main) 	at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:301)
      2018-08-15 13:44:20,477 ERROR [stderr] (main) 	at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:174)
      2018-08-15 13:44:20,478 ERROR [stderr] (main) 	at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:107)
      2018-08-15 13:44:20,478 ERROR [stderr] (main) 	at org.wildfly.swarm.container.runtime.RuntimeDeployer$Proxy$_$$_WeldClientProxy.deploy(Unknown Source)
      2018-08-15 13:44:20,478 ERROR [stderr] (main) 	at org.wildfly.swarm.Swarm.deploy(Swarm.java:473)
      2018-08-15 13:44:20,478 ERROR [stderr] (main) 	at org.wildfly.swarm.Swarm.main(Swarm.java:744)
      2018-08-15 13:44:20,479 ERROR [stderr] (main) Caused by: java.lang.IllegalStateException: Unknown tag! pos=3 poolCount = 12
      2018-08-15 13:44:20,479 ERROR [stderr] (main) 	at org.jboss.jandex.Indexer.processConstantPool(Indexer.java:1417)
      2018-08-15 13:44:20,479 ERROR [stderr] (main) 	at org.jboss.jandex.Indexer.index(Indexer.java:1451)
      2018-08-15 13:44:20,479 ERROR [stderr] (main) 	at io.smallrye.openapi.api.util.ArchiveUtil.indexArchive(ArchiveUtil.java:154)
      2018-08-15 13:44:20,479 ERROR [stderr] (main) 	at io.smallrye.openapi.api.util.ArchiveUtil.indexArchive(ArchiveUtil.java:162)
      2018-08-15 13:44:20,479 ERROR [stderr] (main) 	at io.smallrye.openapi.api.util.ArchiveUtil.archiveToIndex(ArchiveUtil.java:126)
      2018-08-15 13:44:20,479 ERROR [stderr] (main) 	at org.wildfly.swarm.microprofile.openapi.runtime.OpenApiDeploymentProcessor.<init>(OpenApiDeploymentProcessor.java:73)
      2018-08-15 13:44:20,480 ERROR [stderr] (main) 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2018-08-15 13:44:20,480 ERROR [stderr] (main) 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      2018-08-15 13:44:20,480 ERROR [stderr] (main) 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      2018-08-15 13:44:20,480 ERROR [stderr] (main) 	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      2018-08-15 13:44:20,480 ERROR [stderr] (main) 	at org.jboss.weld.injection.ConstructorInjectionPoint.newInstance(ConstructorInjectionPoint.java:119)
      2018-08-15 13:44:20,480 ERROR [stderr] (main) 	at org.jboss.weld.injection.ConstructorInjectionPoint.invokeAroundConstructCallbacks(ConstructorInjectionPoint.java:92)
      2018-08-15 13:44:20,480 ERROR [stderr] (main) 	at org.jboss.weld.injection.ConstructorInjectionPoint.newInstance(ConstructorInjectionPoint.java:78)
      2018-08-15 13:44:20,480 ERROR [stderr] (main) 	at org.jboss.weld.injection.producer.AbstractInstantiator.newInstance(AbstractInstantiator.java:28)
      2018-08-15 13:44:20,480 ERROR [stderr] (main) 	at org.jboss.weld.injection.producer.BasicInjectionTarget.produce(BasicInjectionTarget.java:112)
      2018-08-15 13:44:20,480 ERROR [stderr] (main) 	at org.jboss.weld.injection.producer.BeanInjectionTarget.produce(BeanInjectionTarget.java:180)
      2018-08-15 13:44:20,481 ERROR [stderr] (main) 	at org.wildfly.swarm.container.runtime.cdi.configurable.ConfigurableInjectionTarget.produce(ConfigurableInjectionTarget.java:62)
      2018-08-15 13:44:20,482 ERROR [stderr] (main) 	at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:158)
      2018-08-15 13:44:20,482 ERROR [stderr] (main) 	at org.wildfly.swarm.container.runtime.cdi.DeploymentContextImpl.get(DeploymentContextImpl.java:64)
      2018-08-15 13:44:20,483 ERROR [stderr] (main) 	at org.jboss.weld.bean.ContextualInstanceStrategy$DefaultContextualInstanceStrategy.get(ContextualInstanceStrategy.java:100)
      2018-08-15 13:44:20,483 ERROR [stderr] (main) 	at org.jboss.weld.bean.ContextualInstance.get(ContextualInstance.java:50)
      2018-08-15 13:44:20,483 ERROR [stderr] (main) 	at org.jboss.weld.bean.proxy.ContextBeanInstance.getInstance(ContextBeanInstance.java:99)
      2018-08-15 13:44:20,483 ERROR [stderr] (main) 	at org.jboss.weld.bean.proxy.ProxyMethodHandler.getInstance(ProxyMethodHandler.java:125)
      2018-08-15 13:44:20,483 ERROR [stderr] (main) 	at org.wildfly.swarm.microprofile.openapi.runtime.OpenApiDeploymentProcessor$Proxy$_$$_WeldClientProxy.process(Unknown Source)
      2018-08-15 13:44:20,483 ERROR [stderr] (main) 	at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:233)
      2018-08-15 13:44:20,483 ERROR [stderr] (main) 	... 5 more
      

      Adding `-Dswarm.logging=DEBUG` shows it fails to process `module-info.class` from `asm-tree-6.0`.

      Currently Thorntail is using Jandex 2.0.3.Final. There's supposedly a fix for this in 2.0.4.Final, but updating to that didn't appear to work either.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                kenfinni Ken Finnigan
                Reporter:
                kenfinni Ken Finnigan
              • Votes:
                2 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: