Skip to content

Redhat.java update to version 0.30.0 broke launching/debugging of Spring boot-apps #402

@kdvolder

Description

@kdvolder

An simple boot app, which was running just fine before suddenly stopped launching properly right after the redhat.java extension was updated to version 0.30.0.

The error looks to me like there's something wrong (missing) from the app's runtime classpath. This cause the app to not properly boot up.

Environment
  • Operating System: Linux
  • JDK version: "1.8.0_181"
  • Visual Studio Code version: 1.26.1
    493869ee8e8a846b0855873886fc79d480d342de
    x64
  • Java extension version: 0.30.0
  • Java Debugger extension version: 0.12.1
Steps To Reproduce
  1. unzip attached project hello-world-service.zip
  2. Open visual studio code from the attached project's folder with cd hello-world-service and code ..
  3. Press F5 to launch app.
Current Result

Error:

Caused by: java.lang.IllegalStateException: Attempted to load applicationConfig: [classpath:/application.yml] but snakeyaml was not found on the classpath
	at org.springframework.boot.env.YamlPropertySourceLoader.load(YamlPropertySourceLoader.java:47)
	at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.loadDocuments(ConfigFileApplicationListener.java:542)
	at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:515)
	... 23 common frames omitted
Expected Result

App starts succesfully. E.g. you can compare to what supposed to happen by running the app from commandline:

./mvnw clean package
java -jar target/*.jar

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions