Win a copy of Machine Learning with R: Expert techniques for predictive modeling this week in the Artificial Intelligence and Machine Learning 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
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

MySQL Error Cannot create JDBC driver of class '' for connect URL 'null'

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Rancher
Posts: 4277
47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the code on line 71 of ConnectionProvider?
 
anup sadhu
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 4277
47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, so what is the full stack trace?
 
I can't take it! You are too smart for me! Here is the tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!