java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost:3306/my_data Error Code: 0

GitHub | thirumuruga | 8 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

    In memory test is not able to get oracle.jdbc.driver.oracledriver

    Google Groups | 8 months ago | Nimesh Nambiar
    java.sql.SQLException: No suitable driver found for jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=NO)(ADDRESS=(PROTOCOL=TCP)(HOST=SomeHost)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=SomeServerName)))
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Strange SQLException: No suitable driver found for jdbc:postgresql

    Stack Overflow | 2 years ago | Lescott
    org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: No suitable driver found for jdbc:postgresql://localhost :5432/db_name
  4. 0

    org.hibernate.exception.JDBCConnectionException: Cannot open connection

    Stack Overflow | 2 years ago | sagar salunkhe
    org.hibernate.exception.JDBCConnectionException: Cannot open connection
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 jdbc:mysql://localhost:3306/my_data

    at java.sql.DriverManager.getConnection()
  2. Java RT
    DriverManager.getConnection
    1. java.sql.DriverManager.getConnection(DriverManager.java:689)
    2. java.sql.DriverManager.getConnection(DriverManager.java:208)
    2 frames
  3. EclipseLink (non-OSGi)
    DatabaseSessionImpl.loginAndDetectDatasource
    1. org.eclipse.persistence.sessions.DefaultConnector.connect(DefaultConnector.java:98)
    2. org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:162)
    3. org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.setOrDetectDatasource(DatabaseSessionImpl.java:207)
    4. org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:760)
    4 frames
  4. org.netbeans.db
    DBModelerUtil.loadModelerFile
    1. org.netbeans.db.modeler.specification.model.util.DBModelerUtil.createDBMapping(DBModelerUtil.java:260)
    2. org.netbeans.db.modeler.specification.model.util.DBModelerUtil.loadModelerFileInternal(DBModelerUtil.java:190)
    3. org.netbeans.db.modeler.specification.model.util.DBModelerUtil.loadModelerFile(DBModelerUtil.java:178)
    3 frames
  5. org.netbeans.modeler
    ModelerFileActionListener.openModelerFile
    1. org.netbeans.modeler.core.NBModelerUtil.loadModelerFile(NBModelerUtil.java:57)
    2. org.netbeans.modeler.specification.model.file.action.ModelerFileActionListener.openModelerFile(ModelerFileActionListener.java:150)
    2 frames
  6. org.netbeans.db
    DBViewerActionListener.init
    1. org.netbeans.db.modeler.specification.model.file.action.DBViewerActionListener.init(DBViewerActionListener.java:59)
    1 frame
  7. org.netbeans.jpa
    JPAModelerScene.lambda$getPopupMenuItemList$4
    1. org.netbeans.jpa.modeler.specification.model.util.JPAModelerUtil.openDBViewer(JPAModelerUtil.java:1767)
    2. org.netbeans.jpa.modeler.specification.model.scene.JPAModelerScene.lambda$getPopupMenuItemList$4(JPAModelerScene.java:384)
    2 frames
  8. Java RT
    EventQueue.dispatchEvent
    1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
    2. javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
    3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
    4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
    5. javax.swing.AbstractButton.doClick(AbstractButton.java:376)
    6. javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
    7. javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
    8. java.awt.Component.processMouseEvent(Component.java:6535)
    9. javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
    10. java.awt.Component.processEvent(Component.java:6300)
    11. java.awt.Container.processEvent(Container.java:2236)
    12. java.awt.Component.dispatchEventImpl(Component.java:4891)
    13. java.awt.Container.dispatchEventImpl(Container.java:2294)
    14. java.awt.Component.dispatchEvent(Component.java:4713)
    15. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
    16. java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
    17. java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
    18. java.awt.Container.dispatchEventImpl(Container.java:2280)
    19. java.awt.Window.dispatchEventImpl(Window.java:2750)
    20. java.awt.Component.dispatchEvent(Component.java:4713)
    21. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
    22. java.awt.EventQueue.access$500(EventQueue.java:97)
    23. java.awt.EventQueue$3.run(EventQueue.java:709)
    24. java.awt.EventQueue$3.run(EventQueue.java:703)
    25. java.security.AccessController.doPrivileged(Native Method)
    26. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
    27. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
    28. java.awt.EventQueue$4.run(EventQueue.java:731)
    29. java.awt.EventQueue$4.run(EventQueue.java:729)
    30. java.security.AccessController.doPrivileged(Native Method)
    31. java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
    32. java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
    32 frames
  9. org.netbeans.core
    TimableEventQueue.dispatchEvent
    1. org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
    1 frame
  10. Java RT
    EventDispatchThread.run
    1. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    2. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    3. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    4. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    5. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    6. java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
    6 frames