Bonjour, j'ai le message suivant :
finally block does not complete normally
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 public static boolean VerifierIdentification(CIdentificationFlash ident) { ResultSet rs = null; Connection conn = null; PreparedStatement pstmt = null; boolean result = false; try { conn = getConnection(); String query = "SELECT 1 FROM table_users u WHERE u.user_id="+ident.user_id+" AND u.user_passwd='"+ident.mdp+ "' Limit 1;"; pstmt = conn.prepareStatement(query); rs = pstmt.executeQuery(); result=(rs.getRow()==1); } catch (Exception e) { return false; } finally { try { rs.close(); pstmt.close(); conn.close(); return result; } catch (SQLException e) { return false; } } }
Partager