You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2003/09/21 15:43:09 UTC
DO NOT REPLY [Bug 23304] New: -
NullpointerException when no driverClassName is specified
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