Uploaded image for project: 'Spring Data GemFire'
  1. Spring Data GemFire
  2. SGF-565

Stackoverflow error when the `locators` attribute is specified in any of the XCacheApplication annotations.

    XMLWordPrintable

    Details

    • Sprint:
      Kay M1

      Description

      From user:

      With Spring Data Geode 1.0.0.APACHE-GEODE-INCUBATING-M3 as well as 1.0.0.INCUBATING=RELEASE releases, I found that whenever you specify locators property on CacheServerApplication annotation (also applies to PeerCacheApplication), it gives a problem due to recursive calls bug in AbstractCacheConfiguration class.

      class AbstractCacheConfiguration {
      
        setLocators(Integer mcastPort) {
          this.mcastPort = mcastPort;
          setMcastPort(DEFAULT_MCAST_PORT);
        }
      
      ...
      
        setMcastPort(String locators) {
          this.locators = locators;
          setLocators(DEFAULT_LOCATORS);
        }
      }
      

      Example:

      @SpringBootApplication
      @CacheServerApplication(autoStartup=true, locators="localhost[9001]")
      public class MyCacheServiceMain {
        // Main method as trivial
      }
      

      But with that it gives, Stackoverflow error...

      at org.springframework.data.gemfire.config.annotation.AbstractCacheConfiguration.setLocators(AbstractCacheConfiguration.java:685) ~[spring-data-geode-1.0.0.APACHE-GEODE-INCUBATING-M3.jar:na]
      at org.springframework.data.gemfire.config.annotation.AbstractCacheConfiguration.setMcastPort(AbstractCacheConfiguration.java:712) ~[spring-data-geode-1.0.0.APACHE-GEODE-INCUBATING-M3.jar:na]
      at org.springframework.data.gemfire.config.annotation.AbstractCacheConfiguration.setLocators(AbstractCacheConfiguration.java:685) ~[spring-data-geode-1.0.0.APACHE-GEODE-INCUBATING-M3.jar:na]
      at org.springframework.data.gemfire.config.annotation.AbstractCacheConfiguration.setMcastPort(AbstractCacheConfiguration.java:712) ~[spring-data-geode-1.0.0.APACHE-GEODE-INCUBATING-M3.jar:na]
      at org.springframework.data.gemfire.config.annotation.AbstractCacheConfiguration.setLocators(AbstractCacheConfiguration.java:685) ~[spring-data-geode-1.0.0.APACHE-GEODE-INCUBATING-M3.jar:na]
      at org.springframework.data.gemfire.config.annotation.AbstractCacheConfiguration.setMcastPort(AbstractCacheConfiguration.java:712) ~[spring-data-geode-1.0.0.APACHE-GEODE-INCUBATING-M3.jar:na]at org.springframework.data.gemfire.config.annotation.AbstractCacheConfiguration.setLocators(AbstractCacheConfiguration.java:685) ~[spring-data-geode-1.0.0.APACHE-GEODE-INCUBATING-M3.jar:na]
      at org.springframework.data.gemfire.config.annotation.AbstractCacheConfiguration.setMcastPort(AbstractCacheConfiguration.java:712) ~[spring-data-geode-1.0.0.APACHE-GEODE-INCUBATING-M3.jar:na]
      

        Attachments

          Activity

            People

            Assignee:
            jblum John Blum
            Reporter:
            jblum John Blum
            Last updater:
            John Blum
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0.25d
                0.25d
                Remaining:
                Remaining Estimate - 0.25d
                0.25d
                Logged:
                Time Spent - Not Specified
                Not Specified