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

Cannot disable topology endpoint from project-defaults.yaml

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: 2017.3.3
    • Fix Version/s: 2017.5.0
    • Component/s: core
    • Labels:
      None
    • Sprint:
      2017-Apr-B

      Description

      https://reference.wildfly-swarm.io/fractions/topology-webapp.html says that you could have a project-defaults.yml file containing:

      swarm: 
         topology: 
            web-app: 
               expose-topology-endpoint: false
      

      However that fails with the following exception:

      Exception 0 :
      java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: Stage config 'swarm.topology.web-app.expose-topology-endpoint' is missing
      	at org.wildfly.swarm.container.runtime.cdi.FractionProducingExtension.lambda$afterBeanDiscovery$1(FractionProducingExtension.java:101)
      	at java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1548)
      	at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:580)
      	at org.wildfly.swarm.container.runtime.cdi.FractionProducingExtension.afterBeanDiscovery(FractionProducingExtension.java:97)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.jboss.weld.injection.StaticMethodInjectionPoint.invoke(StaticMethodInjectionPoint.java:88)
      	at org.jboss.weld.injection.MethodInvocationStrategy$SpecialParamPlusBeanManagerStrategy.invoke(MethodInvocationStrategy.java:144)
      	at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:313)
      	at org.jboss.weld.event.ExtensionObserverMethodImpl.sendEvent(ExtensionObserverMethodImpl.java:125)
      	at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:291)
      	at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:269)
      	at org.jboss.weld.event.ObserverNotifier.notifySyncObservers(ObserverNotifier.java:302)
      	at org.jboss.weld.event.ObserverNotifier.notify(ObserverNotifier.java:291)
      	at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:160)
      	at org.jboss.weld.event.ObserverNotifier.fireEvent(ObserverNotifier.java:154)
      	at org.jboss.weld.bootstrap.events.AbstractContainerEvent.fire(AbstractContainerEvent.java:53)
      	at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:44)
      	at org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.fire(AfterBeanDiscoveryImpl.java:62)
      	at org.jboss.weld.bootstrap.WeldStartup.deployBeans(WeldStartup.java:422)
      	at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:83)
      	at org.jboss.weld.environment.se.Weld.initialize(Weld.java:589)
      	at org.wildfly.swarm.container.runtime.ServerBootstrapImpl.lambda$null$0(ServerBootstrapImpl.java:142)
      	at org.wildfly.swarm.container.runtime.LogSilencer$SilentExecutor.execute(LogSilencer.java:60)
      	at org.wildfly.swarm.container.runtime.ServerBootstrapImpl.lambda$bootstrap$1(ServerBootstrapImpl.java:116)
      	at org.wildfly.swarm.spi.api.ClassLoading.withTCCL(ClassLoading.java:43)
      	at org.wildfly.swarm.container.runtime.ServerBootstrapImpl.bootstrap(ServerBootstrapImpl.java:109)
      	at org.wildfly.swarm.Swarm.start(Swarm.java:369)
      	at org.wildfly.swarm.Swarm.main(Swarm.java:609)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:39)
      	at org.wildfly.swarm.bootstrap.Main.run(Main.java:46)
      	at org.wildfly.swarm.bootstrap.Main.main(Main.java:37)
      Caused by: java.lang.RuntimeException: java.lang.RuntimeException: Stage config 'swarm.topology.web-app.expose-topology-endpoint' is missing
      	at org.wildfly.swarm.spi.api.config.Builder.getValue(Builder.java:58)
      	at org.wildfly.swarm.container.runtime.ConfigurableManager.configure(ConfigurableManager.java:122)
      	at org.wildfly.swarm.container.runtime.ConfigurableManager.scan(ConfigurableManager.java:300)
      	at org.wildfly.swarm.container.runtime.ConfigurableManager.scan(ConfigurableManager.java:277)
      	at org.wildfly.swarm.container.runtime.ConfigurableManager.scanFraction(ConfigurableManager.java:217)
      	at org.wildfly.swarm.container.runtime.ConfigurableManager.scanInternal(ConfigurableManager.java:208)
      	at org.wildfly.swarm.container.runtime.ConfigurableManager.scan(ConfigurableManager.java:202)
      	at org.wildfly.swarm.container.runtime.cdi.configurable.ConfigurableFractionBean.<init>(ConfigurableFractionBean.java:34)
      	at org.wildfly.swarm.container.runtime.cdi.FractionProducingExtension.lambda$afterBeanDiscovery$1(FractionProducingExtension.java:99)
      	... 37 more
      Caused by: java.lang.RuntimeException: Stage config 'swarm.topology.web-app.expose-topology-endpoint' is missing
      	at org.wildfly.swarm.spi.api.config.Builder.getValue(Builder.java:54)
      	... 45 more
      
      	at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:46)
      	at org.jboss.weld.bootstrap.events.AfterBeanDiscoveryImpl.fire(AfterBeanDiscoveryImpl.java:62)
      	at org.jboss.weld.bootstrap.WeldStartup.deployBeans(WeldStartup.java:422)
      	at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:83)
      	at org.jboss.weld.environment.se.Weld.initialize(Weld.java:589)
      	at org.wildfly.swarm.container.runtime.ServerBootstrapImpl.lambda$null$0(ServerBootstrapImpl.java:142)
      	at org.wildfly.swarm.container.runtime.LogSilencer$SilentExecutor.execute(LogSilencer.java:60)
      	at org.wildfly.swarm.container.runtime.ServerBootstrapImpl.lambda$bootstrap$1(ServerBootstrapImpl.java:116)
      	at org.wildfly.swarm.spi.api.ClassLoading.withTCCL(ClassLoading.java:43)
      	... 10 more
      Exception in thread "main" java.lang.reflect.InvocationTargetException
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:39)
      	at org.wildfly.swarm.bootstrap.Main.run(Main.java:46)
      	at org.wildfly.swarm.bootstrap.Main.main(Main.java:37)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                gastaldi George Gastaldi
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: