Skip to content

Show stacktraces for context startup failures #13556

Closed
@shollander

Description

@shollander

Using Spring Boot 2.0.3.RELEASE and executing application using Spring Boot fat jar with java -jar.

If the application context fails to startup for some reason (for example, a @Bean method throws an exception), I get no stacktrace information. The only log of the error that I get is a warning that just includes the toString() of the exception (logged in AbstractApplicationContext.refresh()). I just have a simple main setup like this:

@SpringBootApplication
public class Application {
	public static void main(String[] args) {
		SpringApplication.run(Application.class, args);
	}
}

The only way the I can get more useful information is to wrap the call to SpringApplication.run() in a try/catch and log my own exception.

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: external-projectFor an external project and not something we can fixstatus: duplicateA duplicate of another issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions