Skip to content

Why does DriverManager.loadDriver() swallow ClassNotFoundException? #472

@LSantha

Description

@LSantha

I was looking at core/src/driver/... and found that DriverManager.loadDriver() catches ClassNotFoundException and just returns null without logging anything. This is making it really hard to debug why a driver fails to load — the symptom is just "driver not registered" with no clue as to why.

Looking at the call sites, the catch block at DriverManager.java:142 (or thereabouts) silently swallows it. This seems like a bug — the exception should at least be logged so the user has a chance to figure out what's wrong.

Can you take a look?

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/investigatedThe agent posted an investigation report on this issue.area/corecore/ — VM, kernel, scheduler, classmgr, drivers.kind/featureNew feature or enhancement request.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions