java.lang.NullPointerException

Stack Overflow | codestreak | 3 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Archaius version update?

    GitHub | 3 years ago | samhendley
    java.lang.NoClassDefFoundError: org/apache/commons/lang/text/StrLookup
  2. 0

    NPE in polling thread

    GitHub | 5 years ago | gorzell
    java.lang.NullPointerException
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    While trying to call {{PropertySourcesPropertyResolver.containsProperty}} from one thread, another thread has added a new {{PropertySource}} and then the {{ConcurrentModificationException}} is thrown. This code in Spring Boot adds the property source in a {{ContextRefreshedEvent}} handler. https://github.com/spring-projects/spring-boot/blob/master/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/autoconfigure/EndpointWebMvcAutoConfiguration.java#L228 {noformat} [2014-11-12 15:30:35.201] boot - 93750 ERROR [Thread-3] --- ConcurrentMapConfiguration: Error firing configuration event java.util.ConcurrentModificationException at java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:953) at java.util.LinkedList$ListItr.next(LinkedList.java:886) at org.springframework.core.env.PropertySourcesPropertyResolver.containsProperty(PropertySourcesPropertyResolver.java:49) at org.springframework.core.env.AbstractEnvironment.containsProperty(AbstractEnvironment.java:460) at org.springframework.cloud.netflix.archaius.ConfigurableEnvironmentConfiguration.containsKey(ConfigurableEnvironmentConfiguration.java:43) at com.netflix.config.ConcurrentCompositeConfiguration.getSource(ConcurrentCompositeConfiguration.java:864) at com.netflix.config.ConcurrentCompositeConfiguration$1.configurationChanged(ConcurrentCompositeConfiguration.java:151) at com.netflix.config.ConcurrentMapConfiguration.fireEvent(ConcurrentMapConfiguration.java:312) at com.netflix.config.ConcurrentMapConfiguration.setProperty(ConcurrentMapConfiguration.java:216) at com.netflix.config.ConcurrentCompositeConfiguration.setProperty(ConcurrentCompositeConfiguration.java:486) at com.netflix.eureka.cluster.PeerEurekaNode.getBatcher(PeerEurekaNode.java:806) at com.netflix.eureka.cluster.PeerEurekaNode.<init>(PeerEurekaNode.java:94) at com.netflix.eureka.PeerAwareInstanceRegistry.updatePeerEurekaNodes(PeerAwareInstanceRegistry.java:219) at com.netflix.eureka.PeerAwareInstanceRegistry.setupPeerEurekaNodes(PeerAwareInstanceRegistry.java:187) at com.netflix.eureka.PeerAwareInstanceRegistry.init(PeerAwareInstanceRegistry.java:156) at com.netflix.eureka.PeerAwareInstanceRegistry.<init>(PeerAwareInstanceRegistry.java:144) at com.netflix.eureka.PeerAwareInstanceRegistry.<clinit>(PeerAwareInstanceRegistry.java:130) at org.springframework.cloud.netflix.eureka.server.EurekaServerInitializerConfiguration$RegistryInstanceProxyInitializer.onApplicationEvent(EurekaServerInitializerConfiguration.java:174) at org.springframework.cloud.netflix.eureka.server.EurekaServerInitializerConfiguration$RegistryInstanceProxyInitializer.onApplicationEvent(EurekaServerInitializerConfiguration.java:156) at org.springframework.cloud.netflix.eureka.server.EurekaServerInitializerConfiguration$RegistryInstanceProxyInitializer$$EnhancerBySpringCGLIB$$e403e8f8.onApplicationEvent(<generated>) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:98) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:333) at org.springframework.cloud.netflix.eureka.server.EurekaServerInitializerConfiguration$1$1.initEurekaEnvironment(EurekaServerInitializerConfiguration.java:109) at com.netflix.eureka.EurekaBootStrap.contextInitialized(EurekaBootStrap.java:88) at org.springframework.cloud.netflix.eureka.server.EurekaServerInitializerConfiguration$1.run(EurekaServerInitializerConfiguration.java:100) at java.lang.Thread.run(Thread.java:744) {noformat}

    Spring JIRA | 3 years ago | Spencer Gibb
    java.util.ConcurrentModificationException

    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.NullPointerException

      No message provided

      at com.netflix.config.ConcurrentMapConfiguration.clearConfigurationListeners()
    2. archaius-core
      ConcurrentMapConfiguration.clearConfigurationListeners
      1. com.netflix.config.ConcurrentMapConfiguration.clearConfigurationListeners(ConcurrentMapConfiguration.java:330)
      1 frame
    3. Apache Commons Configuration
      AbstractConfiguration.<init>
      1. org.apache.commons.configuration.event.EventSource.<init>(EventSource.java:76)
      2. org.apache.commons.configuration.AbstractConfiguration.<init>(AbstractConfiguration.java:63)
      2 frames
    4. archaius-core
      PropertyWrapper.<init>
      1. com.netflix.config.ConcurrentMapConfiguration.<init>(ConcurrentMapConfiguration.java:68)
      2. com.netflix.config.ConcurrentCompositeConfiguration.<init>(ConcurrentCompositeConfiguration.java:172)
      3. com.netflix.config.ConfigurationManager.getConfigInstance(ConfigurationManager.java:125)
      4. com.netflix.config.DynamicPropertyFactory.getInstance(DynamicPropertyFactory.java:263)
      5. com.netflix.config.DynamicProperty.getInstance(DynamicProperty.java:245)
      6. com.netflix.config.PropertyWrapper.<init>(PropertyWrapper.java:58)
      6 frames
    5. com.netflix.hystrix
      HystrixDynamicPropertiesArchaius.getString
      1. com.netflix.hystrix.strategy.properties.archaius.HystrixDynamicPropertiesArchaius$ArchaiusDynamicProperty.<init>(HystrixDynamicPropertiesArchaius.java:62)
      2. com.netflix.hystrix.strategy.properties.archaius.HystrixDynamicPropertiesArchaius$StringDynamicProperty.<init>(HystrixDynamicPropertiesArchaius.java:73)
      3. com.netflix.hystrix.strategy.properties.archaius.HystrixDynamicPropertiesArchaius.getString(HystrixDynamicPropertiesArchaius.java:34)
      3 frames
    6. hystrix-core
      HystrixCommand.<init>
      1. com.netflix.hystrix.strategy.HystrixPlugins.getPluginImplementationViaProperties(HystrixPlugins.java:344)
      2. com.netflix.hystrix.strategy.HystrixPlugins.getPluginImplementation(HystrixPlugins.java:334)
      3. com.netflix.hystrix.strategy.HystrixPlugins.getPropertiesStrategy(HystrixPlugins.java:243)
      4. com.netflix.hystrix.strategy.properties.HystrixPropertiesFactory.getCommandProperties(HystrixPropertiesFactory.java:62)
      5. com.netflix.hystrix.AbstractCommand.initCommandProperties(AbstractCommand.java:204)
      6. com.netflix.hystrix.AbstractCommand.<init>(AbstractCommand.java:163)
      7. com.netflix.hystrix.HystrixCommand.<init>(HystrixCommand.java:61)
      7 frames