[JDBC] [DBSUTILS] Exception processing async thread queue
Bonjour,
Je suis en train de regarder ce tutorial :
http://christophej.developpez.com/tutoriel/api/dbutils/
et quand jexecute une requette avec param�tre j'obtient cette erreur :
Code:
1 2 3
|
Exception processing async thread queue
Exception processing async thread queue |
Voici mon code :
Code:
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 28 29 30 31 32 33 34 35 36
| private static boolean Test_SymbEquiReseau(Map map, String t6Symbole,
String t4Site) {
Connection conn = ConnectionJdbc.Create_Jdbc_Connection();
try {
if (t6Symbole.length() == 0) {
return false;
}
QueryRunner qRunner = new QueryRunner();
Object reponse[] = new Object[1];
Object param[] = new Object[2];
/*
* param[0] = t6Symbole; try { param[1] = t4Site; } catch
* (RuntimeException e) { param[1] = ""; }
*/
String param1;
param1 = t6Symbole;
try {
reponse = (Object[]) qRunner.query(conn, (String) map
.get("creeractifactivitelocalisecheck3"), param1,
new ArrayHandler());
} catch (SQLException e2) {
e2.printStackTrace();
}
if (reponse[0] == "0") {
return false;
} else {
return true;
}
} finally {
DbUtils.closeQuietly(conn);
}
} |
Je ne comprend pas si je test sans param�tre tout marche.
Merci