hello

i want to update my records i made code but it has error. i can't understand error please give me solution my database is in oracle

this is my code

private void updateActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:

ResultSet rs;
String dob,hdate;
int empid1,empphone1,empsal1,siteid1;
String empname1,emptype1,empmail1,empadd1,empg1,qli1,desi g1;
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:project ","scott","tiger");
String s="update empdetail set empname=?,empadd=?,empphone=?,dob=?," +
"hire_date=?,empmail=?," +
"empsal=?,designation=?,empgender=?,siteid=? where empid=?";
PreparedStatement stmt=con.prepareStatement(s);
int eid;
eid=Integer.parseInt(empid.getSelectedItem());
stmt.setInt(1,eid);
empname1=empname.getText();
empadd1=empadd.getText();
empphone1=Integer.parseInt(empphone.getText());
dob=date.getText();
hdate=date.getText();
empmail1=empmail.getText();
empsal1=Integer.parseInt(empsal.getText());
desig1=desig.getSelectedItem();
empg1=gender.getSelectedItem();
siteid1=Integer.parseInt(sid.getSelectedItem());
rs=stmt.executeQuery();

if(rs.next())
{
stmt.setString(2,empname1);
stmt.setString(3,empadd1);
stmt.setInt(4,empphone1);
SimpleDateFormat formatter = new SimpleDateFormat("MM/dd/yyyy");
java.util.Date utildate=formatter.parse(dob);
java.sql.Date sqldate=new java.sql.Date(utildate.getTime());
stmt.setDate(5, sqldate);

SimpleDateFormat formatter1 = new SimpleDateFormat("MM/dd/yyyy");
java.util.Date utildate1=formatter1.parse(hdate);
java.sql.Date hiredate=new java.sql.Date(utildate1.getTime());
stmt.setDate(6, hiredate);

stmt.setString(7,empmail1);
stmt.setInt(8,empsal1);
stmt.setString(9,desig1);
stmt.setString(10,empg1);
stmt.setInt(11,siteid1);




}
con.close();
stmt.close();
}
catch(Exception e1)
{
e1.printStackTrace();
}


}


:confused:After Runing program and when i am clicking the update button following errors r shown

init:
deps-jar:
Compiling 1 source file to E:\MCM IV\CMS\build\classes
compile-single:
run-single:
java.sql.SQLException: General error
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc .java:6987)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java :7115)
at sun.jdbc.odbc.JdbcOdbc.SQLExecute(JdbcOdbc.java:31 50)
at sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(Jd bcOdbcPreparedStatement.java:214)
at sun.jdbc.odbc.JdbcOdbcPreparedStatement.executeQue ry(JdbcOdbcPreparedStatement.java:89)
at cms.EmployeeDetialsUpdate.updateActionPerformed(Em ployeeDetialsUpdate.java:363)
at cms.EmployeeDetialsUpdate.access$300(EmployeeDetia lsUpdate.java:9)
at cms.EmployeeDetialsUpdate$4.actionPerformed(Employ eeDetialsUpdate.java:161)
at java.awt.Button.processActionEvent(Button.java:388 )
at java.awt.Button.processEvent(Button.java:356)
at java.awt.Component.dispatchEventImpl(Component.jav a:3984)
at java.awt.Component.dispatchEvent(Component.java:38 19)
at java.awt.EventQueue.dispatchEvent(EventQueue.java: 463)
at java.awt.EventDispatchThread.pumpOneEventForHierar chy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarch y(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispa tchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThre ad.java:110)
BUILD SUCCESSFUL (total time: 23 seconds)