commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 23304] New: - NullpointerException when no driverClassName is specified
Date Sun, 21 Sep 2003 13:43:09 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23304>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23304

NullpointerException when no driverClassName is specified

           Summary: NullpointerException when no driverClassName is
                    specified
           Product: Commons
           Version: Nightly Builds
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Dbcp
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: dirk.verbeeck@pandora.be


When no driverClassName is specified you get a NullpointerException in Class.forName

It is possible to use a command line parameter to load the driver:
-Djdbc.drivers=foo.bah.Driver

Anyway the message from DriverManager.getDriver is more userfriendly
java.sql.SQLException: No suitable driver

Mime
View raw message