org.hibernate.exception.GenericJDBCException: Cannot open connection

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
    org.hibernate.exception.GenericJDBCException: Cannot open connection
  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
    org.hibernate.exception.GenericJDBCException: Cannot open connection
  3. 0

    Location of JDBC jar for hibernate on JBOSS

    Stack Overflow | 6 years ago | ksrini
    java.sql.SQLException: No suitable driver
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Exception in hibernate sample program

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

    hibernate problem

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

  1. jshakil 1 times, last 1 month ago
  2. linxiaolong 7101 times, last 3 weeks ago
  3. ruifung 1 times, last 3 months ago
  4. linxiaolong 838 times, last 3 months ago
  5. Juraji 1 times, last 8 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
    JDBCContext.beginTransaction
    1. org.hibernate.jdbc.AbstractBatcher.openConnection(AbstractBatcher.java:424)
    2. org.hibernate.jdbc.JDBCContext.connect(JDBCContext.java:168)
    3. org.hibernate.jdbc.JDBCContext.connection(JDBCContext.java:103)
    4. org.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:49)
    5. org.hibernate.transaction.JDBCTransactionFactory.beginTransaction(JDBCTransactionFactory.java:24)
    6. org.hibernate.jdbc.JDBCContext.beginTransaction(JDBCContext.java:231)
    6 frames
  5. Hibernate
    SessionImpl.beginTransaction
    1. org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1073)
    1 frame
  6. student
    AddStudent.main
    1. student.AddStudent.main(AddStudent.java:35)
    1 frame