use of javax.el.ELException in project camunda-engine-dmn by camunda.
the class FeelEngineFactoryImpl method createExpressionFactory.
protected ExpressionFactory createExpressionFactory() {
Properties properties = new Properties();
properties.put(ExpressionFactoryImpl.PROP_CACHE_SIZE, String.valueOf(expressionCacheSize));
try {
return new ExpressionFactoryImpl(properties, createTypeConverter());
} catch (ELException e) {
throw LOG.unableToInitializeFeelEngine(e);
}
}
use of javax.el.ELException in project muikku by otavanopisto.
the class ExceptionHandler method handle.
@Override
public void handle() throws FacesException {
for (final Iterator<ExceptionQueuedEvent> queuedEventIterator = getUnhandledExceptionQueuedEvents().iterator(); queuedEventIterator.hasNext(); ) {
ExceptionQueuedEvent queuedEvent = queuedEventIterator.next();
ExceptionQueuedEventContext queuedEventContext = queuedEvent.getContext();
Throwable exception = queuedEventContext.getException();
while ((exception instanceof FacesException || exception instanceof EJBException || exception instanceof ELException || exception instanceof RewriteException || exception instanceof CreationException || exception instanceof IllegalStateException) && exception.getCause() != null) {
exception = exception.getCause();
}
FacesContext facesContext = FacesContext.getCurrentInstance();
ExternalContext externalContext = facesContext.getExternalContext();
try {
if (exception instanceof AuthorizationException) {
externalContext.setResponseStatus(HttpServletResponse.SC_FORBIDDEN);
renderView("/error/access-denied.jsf");
} else if (exception instanceof FileNotFoundException) {
externalContext.setResponseStatus(HttpServletResponse.SC_NOT_FOUND);
renderView("/error/not-found.jsf");
} else {
throw new FacesException(exception);
}
} finally {
queuedEventIterator.remove();
}
}
getWrapped().handle();
}
use of javax.el.ELException in project Activiti by Activiti.
the class DynamicBeanPropertyELResolver method setValue.
@Override
public void setValue(ELContext context, Object base, Object property, Object value) {
if (base == null || this.getCommonPropertyType(context, base) == null) {
return;
}
String propertyName = property.toString();
try {
ReflectUtil.invoke(base, this.writeMethodName, new Object[] { propertyName, value });
context.setPropertyResolved(true);
} catch (Exception e) {
throw new ELException(e);
}
}
Aggregations