java.lang.IllegalArgumentException

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

Samebug tips1

I downgraded to spark-notebook scala 2.10 with hadoop 2.6.0 then it worked. Finally switched to Apache Drill, works like a charm for diverse datasets.


rprp

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web857

  • Stack trace

    • java.lang.IllegalArgumentException: Cannot instantiate interface org.springframework.context.ApplicationContextInitializer : org.springframework.boot.autoconfigure.SharedMetadataReaderFactoryContextInitializer at org.springframework.boot.SpringApplication.createSpringFactoriesInstances(SpringApplication.java:412)[spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE] at org.springframework.boot.SpringApplication.getSpringFactoriesInstances(SpringApplication.java:392)[spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE] at org.springframework.boot.SpringApplication.getSpringFactoriesInstances(SpringApplication.java:383)[spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE] at org.springframework.boot.SpringApplication.initialize(SpringApplication.java:261)[spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE] at org.springframework.boot.SpringApplication.<init>(SpringApplication.java:237)[spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1124)[spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1113)[spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE] at com.kodcu.boot.AppStarter.startApp(AppStarter.java:72)[AsciidocFX-1.4.5.jar:1.4.5] at com.kodcu.boot.AppStarter.start(AppStarter.java:63)[AsciidocFX-1.4.5.jar:1.4.5] at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$162(LauncherImpl.java:863)[jfxrt.jar:na] at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$175(PlatformImpl.java:326)[jfxrt.jar:na] at com.sun.javafx.application.PlatformImpl.lambda$null$173(PlatformImpl.java:295)[jfxrt.jar:na] at java.security.AccessController.doPrivileged(Native Method)[na:1.8.0_102] at com.sun.javafx.application.PlatformImpl.lambda$runLater$174(PlatformImpl.java:294)[jfxrt.jar:na] at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)[jfxrt.jar:na] Caused by: java.lang.NoSuchMethodException: org.springframework.boot.autoconfigure.SharedMetadataReaderFactoryContextInitializer.<init>() at java.lang.Class.getConstructor0(Class.java:3082)[na:1.8.0_102] at java.lang.Class.getConstructor(Class.java:1825)[na:1.8.0_102] at org.springframework.boot.SpringApplication.createSpringFactoriesInstances(SpringApplication.java:407)[spring-boot-1.3.1.RELEASE.jar:1.3.1.RELEASE]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    tomthomastomthomas
    Once,
    batwalrus76batwalrus76
    2 times, last one
    Sanjay KumarSanjay Kumar
    Once,
    DavidDavid
    5 times, last one
    SteVio1989SteVio1989
    Once,
    138 more bugmates