Weblogic throws this error:
String sql = "SELECT a FROM Requests a where a.id = ? and upper(a.type) = \'YES\' order by a.reqId desc"; Query q = em