java.sql.SQLException: No suitable driver

Hibernate JIRA | isaacpradeep | 9 years ago
  1. 0

    Name: isaac Degree: be Phone: 1234 31 [main] WARN org.hibernate.cfg.SettingsFactory - Could not obtain connection metadata java.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:68) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054) at student.AddStudent.main(AddStudent.java:28) 719 [main] WARN net.sf.ehcache.config.Configurator - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/E:/hibernate/workspace/hibernate/lib/ehcache-1.1.jar!/ehcache-failsafe.xml 2031 [main] ERROR org.hibernate.tool.hbm2ddl.SchemaUpdate - could not get database metadata java.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110) at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:118) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:263) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1055) at student.AddStudent.main(AddStudent.java:28) 2031 [main] ERROR org.hibernate.tool.hbm2ddl.SchemaUpdate - could not complete schema update java.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110) at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:118) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:263) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1055) at student.AddStudent.main(AddStudent.java:28) 2875 [main] WARN org.hibernate.util.JDBCExceptionReporter - SQL Error: 0, SQLState: 08001 2875 [main] ERROR org.hibernate.util.JDBCExceptionReporter - No suitable driver org.hibernate.exception.GenericJDBCException: Cannot open connection at org.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(ErrorCodeConverter.java:92) at org.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:80) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29) at org.hibernate.jdbc.AbstractBatcher.openConnection(AbstractBatcher.java:427) at org.hibernate.jdbc.JDBCContext.connect(JDBCContext.java:168) at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:103) at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:49) at org.hibernate.transaction.JDBCTransactionFactory.beginTransaction(JDBCTransactionFactory.java:24) at org.hibernate.jdbc.JDBCContext.beginTransaction(JDBCContext.java:231) at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1073) at student.AddStudent.main(AddStudent.java:35) Caused by: java.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110) at org.hibernate.jdbc.AbstractBatcher.openConnection(AbstractBatcher.java:424) ... 7 more

    Hibernate JIRA | 9 years ago | isaacpradeep
    java.sql.SQLException: No suitable driver
  2. 0

    Name: isaac Degree: be Phone: 1234 31 [main] WARN org.hibernate.cfg.SettingsFactory - Could not obtain connection metadata java.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110) at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:68) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1509) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1054) at student.AddStudent.main(AddStudent.java:28) 719 [main] WARN net.sf.ehcache.config.Configurator - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/E:/hibernate/workspace/hibernate/lib/ehcache-1.1.jar!/ehcache-failsafe.xml 2031 [main] ERROR org.hibernate.tool.hbm2ddl.SchemaUpdate - could not get database metadata java.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110) at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:118) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:263) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1055) at student.AddStudent.main(AddStudent.java:28) 2031 [main] ERROR org.hibernate.tool.hbm2ddl.SchemaUpdate - could not complete schema update java.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110) at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:118) at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:263) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1055) at student.AddStudent.main(AddStudent.java:28) 2875 [main] WARN org.hibernate.util.JDBCExceptionReporter - SQL Error: 0, SQLState: 08001 2875 [main] ERROR org.hibernate.util.JDBCExceptionReporter - No suitable driver org.hibernate.exception.GenericJDBCException: Cannot open connection at org.hibernate.exception.ErrorCodeConverter.handledNonSpecificException(ErrorCodeConverter.java:92) at org.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:80) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43) at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:29) at org.hibernate.jdbc.AbstractBatcher.openConnection(AbstractBatcher.java:427) at org.hibernate.jdbc.JDBCContext.connect(JDBCContext.java:168) at org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:103) at org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:49) at org.hibernate.transaction.JDBCTransactionFactory.beginTransaction(JDBCTransactionFactory.java:24) at org.hibernate.jdbc.JDBCContext.beginTransaction(JDBCContext.java:231) at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1073) at student.AddStudent.main(AddStudent.java:35) Caused by: java.sql.SQLException: No suitable driver at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110) at org.hibernate.jdbc.AbstractBatcher.openConnection(AbstractBatcher.java:424) ... 7 more

    Hibernate JIRA | 9 years ago | isaacpradeep
    java.sql.SQLException: No suitable driver
  3. 0

    No suitable driver c/ Postgres - Front-end - GUJ

    com.br | 12 months ago
    java.sql.SQLException: No suitable driver found for jdbc:postgresql://localhost:5432/tabela
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Issues with MySQL, see this article

    openxava | 6 years ago | haighis
    java.sql.SQLException: No suitable driver found for jdbc:mysql//localhost:3306/clinicalsampletracking
  6. 0

    Location of JDBC jar for hibernate on JBOSS

    Stack Overflow | 6 years ago | ksrini
    java.sql.SQLException: No suitable driver

  1. jshakil 1 times, last 1 month ago
  2. linxiaolong 7101 times, last 1 month ago
  3. ruifung 1 times, last 3 months ago
  4. linxiaolong 838 times, last 3 months ago
  5. Juraji 1 times, last 9 months ago
49 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.sql.SQLException

    No suitable driver

    at java.sql.DriverManager.getConnection()
  2. Java RT
    DriverManager.getConnection
    1. java.sql.DriverManager.getConnection(Unknown Source)
    2. java.sql.DriverManager.getConnection(Unknown Source)
    2 frames
  3. Hibernate
    DriverManagerConnectionProvider.getConnection
    1. org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
    1 frame
  4. Hibernate
    SchemaUpdate.execute
    1. org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:118)
    1 frame
  5. Hibernate
    SessionFactoryImpl.<init>
    1. org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:263)
    1 frame
  6. Hibernate
    Configuration.buildSessionFactory
    1. org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1055)
    1 frame
  7. student
    AddStudent.main
    1. student.AddStudent.main(AddStudent.java:28)
    1 frame