java.lang.NoSuchMethodError: org.springframework.util.ObjectUtils.unwrapOptional(Ljava/lang/Object;)Ljava/lang/Object;

Stack Overflow | Ivaro18 | 7 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Kotlin - Spring boot error Java 8

    Stack Overflow | 7 months ago | Ivaro18
    java.lang.NoSuchMethodError: org.springframework.util.ObjectUtils.unwrapOptional(Ljava/lang/Object;)Ljava/lang/Object;

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.springframework.util.ObjectUtils.unwrapOptional(Ljava/lang/Object;)Ljava/lang/Object;

      at org.springframework.validation.DataBinder.<init>()
    2. Spring Context
      DataBinder.<init>
      1. org.springframework.validation.DataBinder.<init>(DataBinder.java:170)
      1 frame
    3. Spring Boot
      ConfigFileApplicationListener.onApplicationEvent
      1. org.springframework.boot.bind.RelaxedDataBinder.<init>(RelaxedDataBinder.java:83)
      2. org.springframework.boot.bind.PropertiesConfigurationFactory.doBindPropertiesToTarget(PropertiesConfigurationFactory.java:257)
      3. org.springframework.boot.bind.PropertiesConfigurationFactory.bindPropertiesToTarget(PropertiesConfigurationFactory.java:245)
      4. org.springframework.boot.context.config.ConfigFileApplicationListener.bindToSpringApplication(ConfigFileApplicationListener.java:232)
      5. org.springframework.boot.context.config.ConfigFileApplicationListener.postProcessEnvironment(ConfigFileApplicationListener.java:183)
      6. org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEnvironmentPreparedEvent(ConfigFileApplicationListener.java:168)
      7. org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEvent(ConfigFileApplicationListener.java:154)
      7 frames
    4. Spring Context
      SimpleApplicationEventMulticaster.multicastEvent
      1. org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:166)
      2. org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:138)
      3. org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:121)
      3 frames
    5. Spring Boot
      SpringApplication.run
      1. org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:68)
      2. org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54)
      3. org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:337)
      4. org.springframework.boot.SpringApplication.run(SpringApplication.java:308)
      5. org.springframework.boot.SpringApplication.run(SpringApplication.java:1186)
      6. org.springframework.boot.SpringApplication.run(SpringApplication.java:1175)
      6 frames
    6. hello
      Application.main
      1. hello.Application.main(Application.java:10)
      1 frame