java.sql.SQLException: Can not issue data manipulation statements with executeQuery().

Coderanch | Rodney Ibanez | 4 years ago
  1. 0

    Updating a record in database using a save button

    Coderanch | 4 years ago | Rodney Ibanez
    java.sql.SQLException: Can not issue data manipulation statements with executeQuery().
  2. 0

    Why can I connect java application to MySQL DB but can't execute a query?

    Stack Overflow | 2 years ago | Hugo P
    java.sql.SQLException: Can not issue data manipulation statements with executeQuery().
  3. 0

    JDBC, MySQL - DML Error with PreparedStatement executeUpdate

    Stack Overflow | 3 years ago | Satish Jonnala
    java.sql.SQLException: Can not issue data manipulation statements with executeQuery().
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Error in executing MySQL query in Java

    Stack Overflow | 5 years ago | Firhan Fikrin
    java.sql.SQLException: Can not issue data manipulation statements with executeQuery().
  6. 0

    I try connect my java program to MySQL database , and i received this exception

    Stack Overflow | 3 years ago | A.Bassam
    java.sql.SQLException: Can not issue data manipulation statements with executeQuery().

  1. Kialandei 1 times, last 2 weeks ago
  2. linxiaolong 4 times, last 4 months ago
3 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

    Can not issue data manipulation statements with executeQuery().

    at com.mysql.jdbc.SQLError.createSQLException()
  2. MySQL jdbc
    StatementImpl.executeQuery
    1. com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1074)
    2. com.mysql.jdbc.SQLError.createSQLException(SQLError.java:988)
    3. com.mysql.jdbc.SQLError.createSQLException(SQLError.java:974)
    4. com.mysql.jdbc.SQLError.createSQLException(SQLError.java:919)
    5. com.mysql.jdbc.StatementImpl.checkForDml(StatementImpl.java:499)
    6. com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1518)
    6 frames
  3. GradingSystem
    DetailedClass$3.actionPerformed
    1. GradingSystem.DetailedClass$3.actionPerformed(DetailedClass.java:139)
    1 frame
  4. Java RT
    EventDispatchThread.run
    1. javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    2. javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    3. javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    4. javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    5. javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    6. java.awt.Component.processMouseEvent(Unknown Source)
    7. javax.swing.JComponent.processMouseEvent(Unknown Source)
    8. java.awt.Component.processEvent(Unknown Source)
    9. java.awt.Container.processEvent(Unknown Source)
    10. java.awt.Component.dispatchEventImpl(Unknown Source)
    11. java.awt.Container.dispatchEventImpl(Unknown Source)
    12. java.awt.Component.dispatchEvent(Unknown Source)
    13. java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    14. java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    15. java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    16. java.awt.Container.dispatchEventImpl(Unknown Source)
    17. java.awt.Window.dispatchEventImpl(Unknown Source)
    18. java.awt.Component.dispatchEvent(Unknown Source)
    19. java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    20. java.awt.EventQueue.access$000(Unknown Source)
    21. java.awt.EventQueue$3.run(Unknown Source)
    22. java.awt.EventQueue$3.run(Unknown Source)
    23. java.security.AccessController.doPrivileged(Native Method)
    24. java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    25. java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    26. java.awt.EventQueue$4.run(Unknown Source)
    27. java.awt.EventQueue$4.run(Unknown Source)
    28. java.security.AccessController.doPrivileged(Native Method)
    29. java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
    30. java.awt.EventQueue.dispatchEvent(Unknown Source)
    31. java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    32. java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    33. java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    34. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    35. java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    36. java.awt.EventDispatchThread.run(Unknown Source)
    36 frames