java.lang.StackOverflowError

Spring JIRA | zhangkaitao | 4 years ago
  1. 0

    1. {noformat} <context:property-placeholder location="classpath:resources.properties" ignore-unresolvable="true"/> {noformat} 2. resources.properties {noformat} abc=${dce} dce=${none} {noformat} 3 {code:java} @Value("${abc}") private String abc; {code} 4. appear {noformat} java.lang.StackOverflowError at java.security.AccessController.doPrivileged(Native Method) at com.sun.naming.internal.VersionHelper12.getJndiProperties(VersionHelper12.java:106) at com.sun.naming.internal.ResourceManager.getInitialEnvironment(ResourceManager.java:202) at javax.naming.InitialContext.init(InitialContext.java:238) at javax.naming.InitialContext.<init>(InitialContext.java:216) at org.springframework.jndi.JndiTemplate.createInitialContext(JndiTemplate.java:136) at org.springframework.jndi.JndiTemplate.getContext(JndiTemplate.java:103) at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:85) at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:152) at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178) at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:95) at org.springframework.jndi.JndiLocatorDelegate.lookup(JndiLocatorDelegate.java:38) at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:77) at org.springframework.jndi.JndiLocatorDelegate.lookup(JndiLocatorDelegate.java:33) at org.springframework.jndi.JndiPropertySource.getProperty(JndiPropertySource.java:82) at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:73) at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:59) at org.springframework.core.env.AbstractEnvironment.getProperty(AbstractEnvironment.java:427) at org.springframework.context.support.PropertySourcesPlaceholderConfigurer$1.getProperty(PropertySourcesPlaceholderConfigurer.java:131) at org.springframework.context.support.PropertySourcesPlaceholderConfigurer$1.getProperty(PropertySourcesPlaceholderConfigurer.java:128) at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:73) at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:59) at org.springframework.core.env.AbstractPropertyResolver$1.resolvePlaceholder(AbstractPropertyResolver.java:176) at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:146) at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:125) {noformat} why: please see http://jinnianshilongnian.iteye.com/blog/1866892

    Spring JIRA | 4 years ago | zhangkaitao
    java.lang.StackOverflowError
  2. 0

    1. {noformat} <context:property-placeholder location="classpath:resources.properties" ignore-unresolvable="true"/> {noformat} 2. resources.properties {noformat} abc=${dce} dce=${none} {noformat} 3 {code:java} @Value("${abc}") private String abc; {code} 4. appear {noformat} java.lang.StackOverflowError at java.security.AccessController.doPrivileged(Native Method) at com.sun.naming.internal.VersionHelper12.getJndiProperties(VersionHelper12.java:106) at com.sun.naming.internal.ResourceManager.getInitialEnvironment(ResourceManager.java:202) at javax.naming.InitialContext.init(InitialContext.java:238) at javax.naming.InitialContext.<init>(InitialContext.java:216) at org.springframework.jndi.JndiTemplate.createInitialContext(JndiTemplate.java:136) at org.springframework.jndi.JndiTemplate.getContext(JndiTemplate.java:103) at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:85) at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:152) at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178) at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:95) at org.springframework.jndi.JndiLocatorDelegate.lookup(JndiLocatorDelegate.java:38) at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:77) at org.springframework.jndi.JndiLocatorDelegate.lookup(JndiLocatorDelegate.java:33) at org.springframework.jndi.JndiPropertySource.getProperty(JndiPropertySource.java:82) at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:73) at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:59) at org.springframework.core.env.AbstractEnvironment.getProperty(AbstractEnvironment.java:427) at org.springframework.context.support.PropertySourcesPlaceholderConfigurer$1.getProperty(PropertySourcesPlaceholderConfigurer.java:131) at org.springframework.context.support.PropertySourcesPlaceholderConfigurer$1.getProperty(PropertySourcesPlaceholderConfigurer.java:128) at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:73) at org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:59) at org.springframework.core.env.AbstractPropertyResolver$1.resolvePlaceholder(AbstractPropertyResolver.java:176) at org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:146) at org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:125) {noformat} why: please see http://jinnianshilongnian.iteye.com/blog/1866892

    Spring JIRA | 4 years ago | zhangkaitao
    java.lang.StackOverflowError
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    commonj TimerManager Help

    Oracle Community | 1 decade ago | 666705
    java.lang.StackOverflowError
  5. 0

    commonj TimerManager Help

    Oracle Community | 1 decade ago | 666705
    java.lang.StackOverflowError

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.StackOverflowError

      No message provided

      at java.security.AccessController.doPrivileged()
    2. Java RT
      InitialContext.<init>
      1. java.security.AccessController.doPrivileged(Native Method)
      2. com.sun.naming.internal.VersionHelper12.getJndiProperties(VersionHelper12.java:106)
      3. com.sun.naming.internal.ResourceManager.getInitialEnvironment(ResourceManager.java:202)
      4. javax.naming.InitialContext.init(InitialContext.java:238)
      5. javax.naming.InitialContext.<init>(InitialContext.java:216)
      5 frames
    3. Spring Context
      JndiPropertySource.getProperty
      1. org.springframework.jndi.JndiTemplate.createInitialContext(JndiTemplate.java:136)
      2. org.springframework.jndi.JndiTemplate.getContext(JndiTemplate.java:103)
      3. org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:85)
      4. org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:152)
      5. org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178)
      6. org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:95)
      7. org.springframework.jndi.JndiLocatorDelegate.lookup(JndiLocatorDelegate.java:38)
      8. org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:77)
      9. org.springframework.jndi.JndiLocatorDelegate.lookup(JndiLocatorDelegate.java:33)
      10. org.springframework.jndi.JndiPropertySource.getProperty(JndiPropertySource.java:82)
      10 frames
    4. Spring Core
      AbstractEnvironment.getProperty
      1. org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:73)
      2. org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:59)
      3. org.springframework.core.env.AbstractEnvironment.getProperty(AbstractEnvironment.java:427)
      3 frames
    5. Spring Context
      PropertySourcesPlaceholderConfigurer$1.getProperty
      1. org.springframework.context.support.PropertySourcesPlaceholderConfigurer$1.getProperty(PropertySourcesPlaceholderConfigurer.java:131)
      2. org.springframework.context.support.PropertySourcesPlaceholderConfigurer$1.getProperty(PropertySourcesPlaceholderConfigurer.java:128)
      2 frames
    6. Spring Core
      PropertyPlaceholderHelper.replacePlaceholders
      1. org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:73)
      2. org.springframework.core.env.PropertySourcesPropertyResolver.getProperty(PropertySourcesPropertyResolver.java:59)
      3. org.springframework.core.env.AbstractPropertyResolver$1.resolvePlaceholder(AbstractPropertyResolver.java:176)
      4. org.springframework.util.PropertyPlaceholderHelper.parseStringValue(PropertyPlaceholderHelper.java:146)
      5. org.springframework.util.PropertyPlaceholderHelper.replacePlaceholders(PropertyPlaceholderHelper.java:125)
      5 frames