org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: No suitable driver found for postgresql://localhost:5432/postgres

Stack Overflow | Sarronya | 10 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Postgres JDBC Issue - No suitable driver found for postgresql://localhost:5432/postgres - JDBC driver already configured on buildpath

    Stack Overflow | 10 months ago | Sarronya
    org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: No suitable driver found for postgresql://localhost:5432/postgres
  2. 0

    Cause of No suitable driver found for

    Stack Overflow | 9 years ago | IaCoder
    org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: No suitable driver found for jdbc:hsqldb:hsql://localhost
  3. 0

    Ant Build failing with correct class path and database properties

    Stack Overflow | 7 years ago | Walker
    org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for transaction; nested exception is java.sql.SQLException: No suitable driver found for jdbc:hsqldb:hsql://localhost
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Setting Up the Derby DB

    Coderanch | 4 weeks ago | Florian Jedamzik
    java.sql.SQLException: No suitable driver found for jdbc:derby:zoo;create=true
  6. 0

    Ucanaccess with java servlet program

    Stack Overflow | 3 years ago | user3808015
    java.sql.SQLException: No suitable driver found for jdbc:ucanaccess://C://Users//Satish Aiyappa//Documents//test.accdb
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 found for postgresql://localhost:5432/postgres

    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. Spring Framework
    DataSourceTransactionManager.doBegin
    1. org.springframework.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriverManager(DriverManagerDataSource.java:173)
    2. org.springframework.jdbc.datasource.DriverManagerDataSource.getConnectionFromDriver(DriverManagerDataSource.java:164)
    3. org.springframework.jdbc.datasource.AbstractDriverBasedDataSource.getConnectionFromDriver(AbstractDriverBasedDataSource.java:149)
    4. org.springframework.jdbc.datasource.AbstractDriverBasedDataSource.getConnection(AbstractDriverBasedDataSource.java:119)
    5. org.springframework.jdbc.datasource.DataSourceTransactionManager.doBegin(DataSourceTransactionManager.java:202)
    5 frames
  4. Spring Tx
    TransactionInterceptor.invoke
    1. org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:371)
    2. org.springframework.transaction.interceptor.TransactionAspectSupport.createTransactionIfNecessary(TransactionAspectSupport.java:335)
    3. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:105)
    3 frames
  5. Spring AOP
    JdkDynamicAopProxy.invoke
    1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
    2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
    2 frames
  6. Unknown
    $Proxy8.getCollegeDetails
    1. $Proxy8.getCollegeDetails(Unknown Source)
    1 frame
  7. com.cts.bo
    HESBO.registerCourse
    1. com.cts.bo.HESBO.registerCourse(HESBO.java:42)
    1 frame
  8. com.cts.facade
    HESFacade.registerCourse
    1. com.cts.facade.HESFacade.registerCourse(HESFacade.java:34)
    1 frame
  9. com.cts.manager
    HESManager.registerCourse
    1. com.cts.manager.HESManager.registerCourse(HESManager.java:34)
    1 frame
  10. com.cts.presentation
    Tester.main
    1. com.cts.presentation.Tester.registerCourse(Tester.java:66)
    2. com.cts.presentation.Tester.main(Tester.java:159)
    2 frames