Getting Error :Could not create a validated object,
Posted: 16 Jul 2014, 12:25
Hello Guys,
I am getting following error on SFS connection with mysql while i am doing any operations related to database.
SQL Failed: java.sql.SQLException: Cannot get a connection, pool error: Could not create a validated object, cause: ValidateObject failed
Following is the code i have used
Error is on line ISFSArray res = dbManager.executeQuery(sql, new Object[] {});
Thanks,
Nikhil.
I am getting following error on SFS connection with mysql while i am doing any operations related to database.
SQL Failed: java.sql.SQLException: Cannot get a connection, pool error: Could not create a validated object, cause: ValidateObject failed
Following is the code i have used
Code: Select all
IDBManager dbManager = getParentExtension().getParentZone()
.getDBManager();
//any of the following line doesn't make any differance...
String sql = "SELECT * FROM room;"; or String sql = "SELECT * FROM room";
try {
// Obtain a resultset
trace("check point 1");
ISFSArray res = dbManager.executeQuery(sql, new Object[] {});
trace("check point 2");
// Populate the response parameters
ISFSObject response = new SFSObject();
response.putSFSArray("room", res);
trace("check point 1 list data");
// Send back to requester
send("room_create_handler", response, sender, false);
} catch (SQLException e) {
trace(ExtensionLogLevel.WARN,
"SQL Failed:list_persisted_room " + e.toString());
}Thanks,
Nikhil.