Hello to everyone. I am beginner in Java programming. I confront an incomprehensible problem with an insert statement in Java. I try to develop Java GUI Applications and stuck.
I try to find out "what is going wrong" but without result. When i execute the method below, it throws the following exception:
ORA-00933: command not properly ended
Why it throws this exception. It shows to be absolutely correct; Thanks in advance.
Source methods's code:
public void insertMemberAction() {
try (PreparedStatement ps = con.prepareStatement(
"insert into members values(?, ?, ?, ?, ?)")) {
ps.setString(1, jMnoTxt.getText());
ps.setString(2, jLastnameTxt.getText());
ps.setString(3, jFirstnameTxt.getText());
ps.setString(4, jAddressTxt.getText());
ps.setString(5, jRegistrationDateTxt.getText());
ps.executeUpdate();
} catch (java.sql.SQLException e) {
javax.swing.JOptionPane.showMessageDialog(this, e.getMessage());
}
}