From: | "Vitali Petrov" <vitalipetrov(at)hotmail(dot)com> |
---|---|
To: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | No results were returned by the query. |
Date: | 2003-01-17 13:50:45 |
Message-ID: | F77uYkUey6kNMHzEHN800012c01@hotmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
I am using PostGreSQL 7.3 with JDBC driver of
http://jdbc.postgresql.org/download/devpgjdbc2.jar.
Code is:
try{
stat = con.createStatement();
newItemPStat = con.prepareStatement("INSERT INTO rentijad
VALUES(?,?,?,?,?,?,?,?)");
newItemPStat.setInt(1,
Integer.valueOf(values.elementAt(1).toString()).intValue());
for (int x = 2; x < 9; x++) {
newItemPStat.setString(x, values.elementAt(x).toString());
}
ResultSet rs_tmp = newItemPStat.executeQuery();
}catch (SQLException ex) {
}
And after that i get an exception, which stack trace is:
No results were returned by the query.
at
org.postgresql.jdbc1.AbstractJdbc1Statement.executeQuery(AbstractJdbc1Statement.java:157)
at rendifirma.RentijadListModel.insertNewItem(RentijadListModel.java:107)
at
rendifirma.MainFrame.jButtonIR2Salvesta_actionPerformed(MainFrame.java:644)
at rendifirma.MainFrame$12.actionPerformed(MainFrame.java:315)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504)
at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
at
javax.swing.plaf.basic.BasicRootPaneUI$DefaultAction.actionPerformed(BasicRootPaneUI.java:156)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1384)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2078)
at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:252)
at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:205)
at
javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2145)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2138)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2045)
at java.awt.Component.processEvent(Component.java:3553)
at java.awt.Container.processEvent(Container.java:1164)
at java.awt.Component.dispatchEventImpl(Component.java:2593)
at java.awt.Container.dispatchEventImpl(Container.java:1213)
at java.awt.Component.dispatchEvent(Component.java:2497)
at java.awt.LightweightDispatcher.processKeyEvent(Container.java:2155)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2135)
at java.awt.Container.dispatchEventImpl(Container.java:1200)
at java.awt.Window.dispatchEventImpl(Window.java:914)
at java.awt.Component.dispatchEvent(Component.java:2497)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
My question is:
_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus
From | Date | Subject | |
---|---|---|---|
Next Message | Vitali Petrov | 2003-01-17 14:02:31 | No Results were returned by the query |
Previous Message | Patric Bechtel | 2003-01-17 07:16:25 | Re: Error Code [Viruschecked] |