java.sql.SQLException: Before start of result set

javamexico.org | 7 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

    Problema al intentar consultar tabla de base de datos hecha en MySQL | Java México

    javamexico.org | 7 months ago
    java.sql.SQLException: Before start of result set

    Root Cause Analysis

    1. java.sql.SQLException

      Before start of result set

      at com.mysql.jdbc.SQLError.createSQLException()
    2. MySQL jdbc
      ResultSet.getFloat
      1. com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910)
      2. com.mysql.jdbc.ResultSet.checkRowPos(ResultSet.java:720)
      3. com.mysql.jdbc.ResultSet.getStringInternal(ResultSet.java:5624)
      4. com.mysql.jdbc.ResultSet.getString(ResultSet.java:5544)
      5. com.mysql.jdbc.ResultSet.getFloat(ResultSet.java:2523)
      6. com.mysql.jdbc.ResultSet.getFloat(ResultSet.java:2543)
      6 frames
    3. GUIs
      PanelControl.actionPerformed
      1. GUIs.PanelControl.loadData(PanelControl.java:122)
      2. GUIs.PanelControl.actionPerformed(PanelControl.java:113)
      2 frames
    4. Java RT
      Dialog.setVisible
      1. javax.swing.JComboBox.fireActionEvent(JComboBox.java:1260)
      2. javax.swing.JComboBox.setSelectedItem(JComboBox.java:588)
      3. javax.swing.JComboBox.setSelectedIndex(JComboBox.java:624)
      4. javax.swing.plaf.basic.BasicComboPopup$Handler.mouseReleased(BasicComboPopup.java:835)
      5. java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:290)
      6. java.awt.Component.processMouseEvent(Component.java:6505)
      7. javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
      8. javax.swing.plaf.basic.BasicComboPopup$1.processMouseEvent(BasicComboPopup.java:499)
      9. java.awt.Component.processEvent(Component.java:6270)
      10. java.awt.Container.processEvent(Container.java:2229)
      11. java.awt.Component.dispatchEventImpl(Component.java:4861)
      12. java.awt.Container.dispatchEventImpl(Container.java:2287)
      13. java.awt.Component.dispatchEvent(Component.java:4687)
      14. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
      15. java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
      16. java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
      17. java.awt.Container.dispatchEventImpl(Container.java:2273)
      18. java.awt.Window.dispatchEventImpl(Window.java:2713)
      19. java.awt.Component.dispatchEvent(Component.java:4687)
      20. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:707)
      21. java.awt.EventQueue.access$000(EventQueue.java:101)
      22. java.awt.EventQueue$3.run(EventQueue.java:666)
      23. java.awt.EventQueue$3.run(EventQueue.java:664)
      24. java.security.AccessController.doPrivileged(Native Method)
      25. java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      26. java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
      27. java.awt.EventQueue$4.run(EventQueue.java:680)
      28. java.awt.EventQueue$4.run(EventQueue.java:678)
      29. java.security.AccessController.doPrivileged(Native Method)
      30. java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      31. java.awt.EventQueue.dispatchEvent(EventQueue.java:677)
      32. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
      33. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
      34. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:121)
      35. java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:182)
      36. java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:221)
      37. java.security.AccessController.doPrivileged(Native Method)
      38. java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:219)
      39. java.awt.Dialog.show(Dialog.java:1072)
      40. java.awt.Component.show(Component.java:1651)
      41. java.awt.Component.setVisible(Component.java:1603)
      42. java.awt.Window.setVisible(Window.java:1013)
      43. java.awt.Dialog.setVisible(Dialog.java:1003)
      43 frames
    5. GUIs
      Principal.actionPerformed
      1. GUIs.PanelControl.<init>(PanelControl.java:17)
      2. GUIs.Principal.actionPerformed(Principal.java:213)
      2 frames
    6. Java RT
      EventDispatchThread.run
      1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
      2. javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
      4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
      5. javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
      6. java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
      7. java.awt.Component.processMouseEvent(Component.java:6505)
      8. javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
      9. java.awt.Component.processEvent(Component.java:6270)
      10. java.awt.Container.processEvent(Container.java:2229)
      11. java.awt.Component.dispatchEventImpl(Component.java:4861)
      12. java.awt.Container.dispatchEventImpl(Container.java:2287)
      13. java.awt.Component.dispatchEvent(Component.java:4687)
      14. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
      15. java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
      16. java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
      17. java.awt.Container.dispatchEventImpl(Container.java:2273)
      18. java.awt.Window.dispatchEventImpl(Window.java:2713)
      19. java.awt.Component.dispatchEvent(Component.java:4687)
      20. java.awt.EventQueue.dispatchEventImpl(EventQueue.java:707)
      21. java.awt.EventQueue.access$000(EventQueue.java:101)
      22. java.awt.EventQueue$3.run(EventQueue.java:666)
      23. java.awt.EventQueue$3.run(EventQueue.java:664)
      24. java.security.AccessController.doPrivileged(Native Method)
      25. java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      26. java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
      27. java.awt.EventQueue$4.run(EventQueue.java:680)
      28. java.awt.EventQueue$4.run(EventQueue.java:678)
      29. java.security.AccessController.doPrivileged(Native Method)
      30. java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
      31. java.awt.EventQueue.dispatchEvent(EventQueue.java:677)
      32. java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
      33. java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
      34. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
      35. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
      36. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
      37. java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
      37 frames