Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-14327

Overlays should be able to replace endpoint configuration

XMLWordPrintable

      Currently, attempting to override an existing endpoint associated with a socket-binding will cause the following error:

      Caused by: org.infinispan.commons.CacheConfigurationException: ISPN080045: Cannot have multiple endpoints bound to the same socket binding 'default'
          at org.infinispan.server.configuration.endpoint.EndpointsConfigurationBuilder.addEndpoint(EndpointsConfigurationBuilder.java:47)
          at org.infinispan.server.configuration.ServerConfigurationParser.parseEndpoint(ServerConfigurationParser.java:1486)
          at org.infinispan.server.configuration.ServerConfigurationParser.parseEndpoints(ServerConfigurationParser.java:1461)
          at org.infinispan.server.configuration.ServerConfigurationParser.parseServerElements(ServerConfigurationParser.java:132)
          at org.infinispan.server.configuration.ServerConfigurationParser.readElement(ServerConfigurationParser.java:104)
          at org.infinispan.configuration.parsing.ParserRegistry.parseElement(ParserRegistry.java:209)
          at org.infinispan.configuration.parsing.ConfigurationBuilderHolder.handleAnyElement(ConfigurationBuilderHolder.java:139)
          at org.infinispan.commons.configuration.io.AbstractConfigurationReader.handleAny(AbstractConfigurationReader.java:57)
          at org.infinispan.configuration.parsing.Parser.readElement(Parser.java:99)
          at org.infinispan.configuration.parsing.ParserRegistry.parseElement(ParserRegistry.java:209)
          at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:187)
          at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:175)
          at org.infinispan.configuration.parsing.ParserRegistry.parse(ParserRegistry.java:169)
          at org.infinispan.server.Server.parseConfiguration(Server.java:319)
          at org.infinispan.server.Server.<init>(Server.java:234)
          at org.infinispan.server.Bootstrap.runInternal(Bootstrap.java:171)
          at org.infinispan.server.tool.Main.run(Main.java:98)
          at org.infinispan.server.Bootstrap.main(Bootstrap.java:56)
      

      We should instead issue a warning, but replace the endpoint config

              ttarrant@redhat.com Tristan Tarrant
              ttarrant@redhat.com Tristan Tarrant
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: