public EPPreparedQuery prepareQuery(String epl) { try { EPPreparedExecuteMethod startMethod = getExecuteMethod(epl); return new EPPreparedQueryImpl(startMethod, epl); } catch (EPStatementException ex) { throw ex; } catch (Throwable t) { String message = "Error executing statement: " + t.getMessage(); log.debug(message, t); throw new EPStatementException(message, epl); } }
statement); } catch (EPStatementException e) { EsperController.logger.warn(e.getMessage()); for (StackTraceElement ste : e.getStackTrace()) { sb.append("\n" + ste.toString()); if (e.getMessage().contains("Implicit conversion")) { throw new Exception( "Registration of statement failed. Looks like your observerd property was" + e.getMessage() + "'", e);
public EPQueryResult execute() { try { EPPreparedQueryResult result = executeMethod.execute(); return new EPQueryResultImpl(result); } catch (EPStatementException ex) { throw ex; } catch (Throwable t) { String message = "Error executing statement: " + t.getMessage(); throw new EPStatementException(message, epl); } }
public EPQueryResult executeQuery(String epl) { try { EPPreparedExecuteMethod executeMethod = getExecuteMethod(epl); EPPreparedQueryResult result = executeMethod.execute(); return new EPQueryResultImpl(result); } catch (EPStatementException ex) { throw ex; } catch (Throwable t) { String message = "Error executing statement: " + t.getMessage(); log.debug(message, t); throw new EPStatementException(message, epl); } }
throw new EPStatementException(ex.getMessage(), eplStatement); throw new EPStatementException(ex.getMessage(), eplStatement);
private EPPreparedExecuteMethod getExecuteMethod(String epl) { String stmtName = UuidGenerator.generate(epl); String stmtId = UuidGenerator.generate(epl + " "); try { StatementSpecRaw spec = EPAdministratorImpl.compileEPL(epl, stmtName, services, SelectClauseStreamSelectorEnum.ISTREAM_ONLY); StatementContext statementContext = services.getStatementContextFactory().makeContext(stmtId, stmtName, epl, false, services, null, null, null); StatementSpecCompiled compiledSpec = StatementLifecycleSvcImpl.compile(spec, epl, statementContext, true); return new EPPreparedExecuteMethod(compiledSpec, services, statementContext); } catch (EPStatementException ex) { throw ex; } catch (Throwable t) { String message = "Error executing statement: " + t.getMessage(); log.debug(message, t); throw new EPStatementException(message, epl); } }
stmtNameToStmtMap.remove(statement.getName()); log.debug(".start Error starting view", ex); throw new EPStatementException("Error starting view: " + ex.getMessage(), statement.getText()); stmtNameToStmtMap.remove(statement.getName()); log.debug(".start Error starting view", ex); throw new EPStatementException("Error starting view: " + ex.getMessage(), statement.getText());
throw new EPStatementException(ex.getMessage(), expression); throw new EPStatementException(ex.getMessage(), expression);
throw new EPStatementException(e.getMessage(), eplStatement);
throw new EPStatementException("Error validating expression: " + ex.getMessage(), statementContext.getExpression()); throw new EPStatementException("Error validating expression: " + message, statementContext.getExpression()); throw new EPStatementException("Error validating expression: " + message, statementContext.getExpression()); throw new EPStatementException("Error validating expression: " + message, statementContext.getExpression());
throw new EPStatementException("Error validating expression: " + ex.getMessage(), statementContext.getExpression()); throw new EPStatementException("Error validating expression: " + ex.getMessage(), statementContext.getExpression()); throw new EPStatementException("Error validating expression: " + message, statementContext.getExpression());
throw new EPStatementException(ex.getMessage(), eplStatement); throw new EPStatementException(text + ":" + ex.getClass().getName() + ":" + ex.getMessage(), eplStatement); throw new EPStatementException(e.getMessage(), eplStatement);
if (statementResourceLock == null) throw new EPStatementException("Named window '" + windowName + "' has not been declared", expression);