java.lang.IllegalArgumentException: Cannot instantiate interface org.springframework.context.ApplicationContextInitializer : org.springframework.boot.autoconfigure.SharedMetadataReaderFactoryContextInitializer

tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Exception in thread "main" java.lang.IllegalArgumentException: Cannot instantiate interface org.springframework.context.ApplicationContextInitializer

    Stack Overflow | 4 months ago | Archit Aggarwal
    java.lang.IllegalArgumentException: Cannot instantiate interface org.springframework.context.ApplicationContextInitializer : org.springframework.boot.autoconfigure.SharedMetadataReaderFactoryContextInitializer
  2. 0

    Invalid source type class [Ljava.lang.String; for `new SpringApplication(Application.class, args).run(args);`

    GitHub | 2 years ago | paulvi
    java.lang.IllegalArgumentException: Invalid source type class [Ljava.lang.String;
  3. 0

    Integrate Spring Boot with existing Spring application

    Stack Overflow | 12 months ago | GD_Java
    java.lang.IllegalArgumentException: Cannot instantiate interface org.springframework.context.ApplicationListener : org.springframework.boot.logging.ClasspathLoggingApplicationListener
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener

    Stack Overflow | 12 months ago | Jaskey
    java.lang.IllegalArgumentException: Cannot instantiate interface org.springframework.context.ApplicationListener : org.springframework.boot.logging.ClasspathLoggingApplicationListener

  1. kjhdofjosvs 1 times, last 4 months ago
4 unregistered visitors

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    Cannot instantiate interface org.springframework.context.ApplicationContextInitializer : org.springframework.boot.autoconfigure.SharedMetadataReaderFactoryContextInitializer

    at org.springframework.boot.SpringApplication.createSpringFactoriesInstances()
  2. Spring Boot
    SpringApplication.run
    1. org.springframework.boot.SpringApplication.createSpringFactoriesInstances(SpringApplication.java:414)
    2. org.springframework.boot.SpringApplication.getSpringFactoriesInstances(SpringApplication.java:394)
    3. org.springframework.boot.SpringApplication.getSpringFactoriesInstances(SpringApplication.java:385)
    4. org.springframework.boot.SpringApplication.initialize(SpringApplication.java:261)
    5. org.springframework.boot.SpringApplication.<init>(SpringApplication.java:237)
    6. org.springframework.boot.SpringApplication.run(SpringApplication.java:1191)
    7. org.springframework.boot.SpringApplication.run(SpringApplication.java:1180)
    7 frames