Skip to content

root cause (stack trace) swallowed in AbstractApplicationContext [SPR-16382] #20928

@spring-projects-issues

Description

@spring-projects-issues

Victor Volle opened SPR-16382 and commented

Spring boot project.
I had an Entity with a duplicate column.

When starting the application I get an error message: "... Unable to build Hibernate SessionFactory"
But without any stack trace.

  1. The TomcatStarter only logs the Exception message
  2. The AbstractApplicationContext again only logs the message:
catch (BeansException ex) {
  if (logger.isWarnEnabled()) {
    logger.warn("Exception encountered during context initialization - " +
        "cancelling refresh attempt: " + ex);
  }
  ...

But none of the logged messages shows the root cause.

This could be either handled by the TomcatStarter or by the AbstractApplicationContext


Affects: 5.0.2

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)status: invalidAn issue that we don't feel is valid

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions