FAQs
Search
Recent Topics
Flagged Topics
Hot Topics
Best Topics
Register / Login
Win a copy of
Kotlin for Android App Development
this week in the
Kotlin
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Liutauras Vilda
Devaka Cooray
Jeanne Boyarsky
Bear Bibeault
Sheriffs:
Junilu Lacar
Paul Clapham
Knute Snortum
Saloon Keepers:
Ron McLeod
Tim Moores
Stephan van Hulst
salvin francis
Carey Brown
Bartenders:
Tim Holloway
Frits Walraven
Ganesh Patekar
Forum:
JDBC and Relational Databases
MySQL Error Cannot create JDBC driver of class '' for connect URL 'null'
anup sadhu
Greenhorn
Posts: 17
posted 3 months ago
Hi All.
MySQL showing error on centos. MySQL version 5.7
16:42:22,985 ERROR ConnectionProvider:71 - Connection Pooling : java.sql.SQLException: Cannot create
JDBC
driver of class '' for connect URL 'null'
OnlineTE.org.common.en.exceptions.BIException
I have mention IP address or Localhost in connection
string
but still getting error. Unable to understand "null" value
Dave Tolls
Master Rancher
Posts: 3887
45
posted 3 months ago
What is the code on line 71 of ConnectionProvider?
anup sadhu
Greenhorn
Posts: 17
posted 3 months ago
Hi,
Thanks for reply..
My context.xml
<Resource name="jdbc/appname" auth="Container" type="javax.sql.DataSource"
maxTotal="10" maxIdle="5" maxWaitMillis="10000" removeAbandonedOnBorrow="true"
username="root" password="passsword" driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://ipaddress(or localhost):3306/dbname?autoReconnect=true"
connectionProperties="useUnicode=yes;characterEncoding=utf8;characterSetResults=UTF8;"
validationQuery="select 1" removeAbandonedTimeout="60" testWhileIdle="true"
timeBetweenEvictionRunsMillis="300000" />
Dave Tolls
Master Rancher
Posts: 3887
45
posted 3 months ago
OK, so what is the full stack trace?
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
Post Reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Can't get connection from DataSource object
Tomcat DB2 Datasource Configuration
Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"
Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"
Unable to get connection, DataSource invalid: "java.sql.SQLException: No suitable driver"
More...