Skip to content

Improve exception handling DruidConfig #43

@bjgbeelen

Description

@bjgbeelen

Just encountered a problem where somehow DRUID_PORT env variable contained a string value, instead of an integer. This failed with a very unclear error message:

java.lang.NoClassDefFoundError: Could not initialize class ing.wbaa.druid.DruidConfig$ java.lang.NullPointerException

Better exception handling could prevent this confusion in the future

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions