• 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
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

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: 4117
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: 4117
47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, so what is the full stack trace?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!