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

NullPointerException with cross-site and multiple parent stacks

    XMLWordPrintable

Details

    Description

      When RELAY2 is configured and when there is multiple parent stack chained (see example), a NullPointerException is thrown that prevents the server from starting.

      <jgroups>
            <stack name="image-tcp" extends="tcp">
               <!-- not relevant -->
            </stack>
            <stack name="relay-tunnel" extends="udp">
                <!-- not relevant -->
            </stack>
            <stack name="xsite" extends="image-tcp">
               <relay.RELAY2 xmlns="urn:org:jgroups" site="a" />
               <remote-sites default-stack="relay-tunnel">
                  <remote-site name="a" />
                  <remote-site name="b" />
               </remote-sites>
            </stack>
         </jgroups>
      

      The NPE is caused by https://github.com/infinispan/infinispan/blob/4cdc8bb75eef45e8b519cfa02375b207ba05970c/core/src/main/java/org/infinispan/configuration/parsing/Parser.java#L553

      When it parses the stack xsite, remoteSites is set. Then, it goes through the parent stack image-tcp and tries to merge the removeSites. However, it is null.

      Attachments

        Issue Links

          Activity

            People

              pruivo@redhat.com Pedro Ruivo
              pruivo@redhat.com Pedro Ruivo
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: