com.sun.faces.context.FacesFileNotFoundException Java Examples
The following examples show how to use
com.sun.faces.context.FacesFileNotFoundException.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DefaultExceptionHandler.java From ee8-sandbox with Apache License 2.0 | 5 votes |
@Override public void handle() throws FacesException { LOG.log(Level.INFO, "invoking custom ExceptionHandlder..."); Iterator<ExceptionQueuedEvent> events = getUnhandledExceptionQueuedEvents().iterator(); while (events.hasNext()) { ExceptionQueuedEvent event = events.next(); ExceptionQueuedEventContext context = (ExceptionQueuedEventContext) event.getSource(); Throwable t = context.getException(); LOG.log(Level.INFO, "Exception@" + t.getClass().getName()); LOG.log(Level.INFO, "ExceptionHandlder began."); LOG.log(Level.INFO, "t instanceof FacesException@" + (t instanceof FacesException)); // log.log(Level.INFO, "t instanceof FacesFileNotFoundException@" + (t instanceof FacesFileNotFoundException)); t.printStackTrace(); if (t instanceof ViewExpiredException) { try { handleViewExpiredException((ViewExpiredException) t); } finally { events.remove(); } } else if (t instanceof FacesFileNotFoundException) { try { handleNotFoundException((Exception) t); } finally { events.remove(); } } else { getWrapped().handle(); } LOG.log(Level.INFO, "ExceptionHandlder end."); } }
Example #2
Source File: DefaultExceptionHandler.java From ee8-sandbox with Apache License 2.0 | 5 votes |
@Override public void handle() throws FacesException { LOG.log(Level.INFO, "invoking custom ExceptionHandlder..."); Iterator<ExceptionQueuedEvent> events = getUnhandledExceptionQueuedEvents().iterator(); while (events.hasNext()) { ExceptionQueuedEvent event = events.next(); ExceptionQueuedEventContext context = (ExceptionQueuedEventContext) event.getSource(); Throwable t = context.getException(); LOG.log(Level.INFO, "Exception@" + t.getClass().getName()); LOG.log(Level.INFO, "ExceptionHandlder began."); LOG.log(Level.INFO, "t instanceof FacesException@" + (t instanceof FacesException)); // log.log(Level.INFO, "t instanceof FacesFileNotFoundException@" + (t instanceof FacesFileNotFoundException)); t.printStackTrace(); if (t instanceof ViewExpiredException) { try { handleViewExpiredException((ViewExpiredException) t); } finally { events.remove(); } } else if (t instanceof FacesFileNotFoundException) { try { handleNotFoundException((Exception) t); } finally { events.remove(); } } else { getWrapped().handle(); } LOG.log(Level.INFO, "ExceptionHandlder end."); } }
Example #3
Source File: DefaultExceptionHandler.java From ee8-sandbox with Apache License 2.0 | 5 votes |
@Override public void handle() throws FacesException { LOG.log(Level.INFO, "invoking custom ExceptionHandlder..."); Iterator<ExceptionQueuedEvent> events = getUnhandledExceptionQueuedEvents().iterator(); while (events.hasNext()) { ExceptionQueuedEvent event = events.next(); ExceptionQueuedEventContext context = (ExceptionQueuedEventContext) event.getSource(); Throwable t = context.getException(); LOG.log(Level.INFO, "Exception@" + t.getClass().getName()); LOG.log(Level.INFO, "ExceptionHandlder began."); LOG.log(Level.INFO, "t instanceof FacesException@" + (t instanceof FacesException)); // log.log(Level.INFO, "t instanceof FacesFileNotFoundException@" + (t instanceof FacesFileNotFoundException)); t.printStackTrace(); if (t instanceof ViewExpiredException) { try { handleViewExpiredException((ViewExpiredException) t); } finally { events.remove(); } } else if (t instanceof FacesFileNotFoundException) { try { handleNotFoundException((Exception) t); } finally { events.remove(); } } else { getWrapped().handle(); } LOG.log(Level.INFO, "ExceptionHandlder end."); } }
Example #4
Source File: DefaultExceptionHandler.java From ee8-sandbox with Apache License 2.0 | 5 votes |
@Override public void handle() throws FacesException { LOG.log(Level.INFO, "invoking custom ExceptionHandlder..."); Iterator<ExceptionQueuedEvent> events = getUnhandledExceptionQueuedEvents().iterator(); while (events.hasNext()) { ExceptionQueuedEvent event = events.next(); ExceptionQueuedEventContext context = (ExceptionQueuedEventContext) event.getSource(); Throwable t = context.getException(); LOG.log(Level.INFO, "Exception@" + t.getClass().getName()); LOG.log(Level.INFO, "ExceptionHandlder began."); LOG.log(Level.INFO, "t instanceof FacesException@" + (t instanceof FacesException)); // log.log(Level.INFO, "t instanceof FacesFileNotFoundException@" + (t instanceof FacesFileNotFoundException)); t.printStackTrace(); if (t instanceof ViewExpiredException) { try { handleViewExpiredException((ViewExpiredException) t); } finally { events.remove(); } } else if (t instanceof FacesFileNotFoundException) { try { handleNotFoundException((Exception) t); } finally { events.remove(); } } else { getWrapped().handle(); } LOG.log(Level.INFO, "ExceptionHandlder end."); } }
Example #5
Source File: DefaultExceptionHandler.java From ee8-sandbox with Apache License 2.0 | 5 votes |
@Override public void handle() throws FacesException { LOG.log(Level.INFO, "invoking custom ExceptionHandlder..."); Iterator<ExceptionQueuedEvent> events = getUnhandledExceptionQueuedEvents().iterator(); while (events.hasNext()) { ExceptionQueuedEvent event = events.next(); ExceptionQueuedEventContext context = (ExceptionQueuedEventContext) event.getSource(); Throwable t = context.getException(); LOG.log(Level.INFO, "Exception@" + t.getClass().getName()); LOG.log(Level.INFO, "ExceptionHandlder began."); LOG.log(Level.INFO, "t instanceof FacesException@" + (t instanceof FacesException)); // log.log(Level.INFO, "t instanceof FacesFileNotFoundException@" + (t instanceof FacesFileNotFoundException)); t.printStackTrace(); if (t instanceof ViewExpiredException) { try { handleViewExpiredException((ViewExpiredException) t); } finally { events.remove(); } } else if (t instanceof FacesFileNotFoundException) { try { handleNotFoundException((Exception) t); } finally { events.remove(); } } else { getWrapped().handle(); } LOG.log(Level.INFO, "ExceptionHandlder end."); } }
Example #6
Source File: DefaultExceptionHandler.java From ee8-sandbox with Apache License 2.0 | 5 votes |
@Override public void handle() throws FacesException { LOG.log(Level.INFO, "invoking custom ExceptionHandlder..."); Iterator<ExceptionQueuedEvent> events = getUnhandledExceptionQueuedEvents().iterator(); while (events.hasNext()) { ExceptionQueuedEvent event = events.next(); ExceptionQueuedEventContext context = (ExceptionQueuedEventContext) event.getSource(); Throwable t = context.getException(); LOG.log(Level.INFO, "Exception@" + t.getClass().getName()); LOG.log(Level.INFO, "ExceptionHandlder began."); LOG.log(Level.INFO, "t instanceof FacesException@" + (t instanceof FacesException)); // log.log(Level.INFO, "t instanceof FacesFileNotFoundException@" + (t instanceof FacesFileNotFoundException)); t.printStackTrace(); if (t instanceof ViewExpiredException) { try { handleViewExpiredException((ViewExpiredException) t); } finally { events.remove(); } } else if (t instanceof FacesFileNotFoundException) { try { handleNotFoundException((Exception) t); } finally { events.remove(); } } else { getWrapped().handle(); } LOG.log(Level.INFO, "ExceptionHandlder end."); } }
Example #7
Source File: DefaultExceptionHandler.java From ee8-sandbox with Apache License 2.0 | 5 votes |
@Override public void handle() throws FacesException { LOG.log(Level.INFO, "invoking custom ExceptionHandlder..."); Iterator<ExceptionQueuedEvent> events = getUnhandledExceptionQueuedEvents().iterator(); while (events.hasNext()) { ExceptionQueuedEvent event = events.next(); ExceptionQueuedEventContext context = (ExceptionQueuedEventContext) event.getSource(); Throwable t = context.getException(); LOG.log(Level.INFO, "Exception@" + t.getClass().getName()); LOG.log(Level.INFO, "ExceptionHandlder began."); LOG.log(Level.INFO, "t instanceof FacesException@" + (t instanceof FacesException)); // log.log(Level.INFO, "t instanceof FacesFileNotFoundException@" + (t instanceof FacesFileNotFoundException)); t.printStackTrace(); if (t instanceof ViewExpiredException) { try { handleViewExpiredException((ViewExpiredException) t); } finally { events.remove(); } } else if (t instanceof FacesFileNotFoundException) { try { handleNotFoundException((Exception) t); } finally { events.remove(); } } else { getWrapped().handle(); } LOG.log(Level.INFO, "ExceptionHandlder end."); } }
Example #8
Source File: DefaultExceptionHandler.java From ee8-sandbox with Apache License 2.0 | 5 votes |
@Override public void handle() throws FacesException { LOG.log(Level.INFO, "invoking custom ExceptionHandlder..."); Iterator<ExceptionQueuedEvent> events = getUnhandledExceptionQueuedEvents().iterator(); while (events.hasNext()) { ExceptionQueuedEvent event = events.next(); ExceptionQueuedEventContext context = (ExceptionQueuedEventContext) event.getSource(); Throwable t = context.getException(); LOG.log(Level.INFO, "Exception@" + t.getClass().getName()); LOG.log(Level.INFO, "ExceptionHandlder began."); LOG.log(Level.INFO, "t instanceof FacesException@" + (t instanceof FacesException)); // log.log(Level.INFO, "t instanceof FacesFileNotFoundException@" + (t instanceof FacesFileNotFoundException)); t.printStackTrace(); if (t instanceof ViewExpiredException) { try { handleViewExpiredException((ViewExpiredException) t); } finally { events.remove(); } } else if (t instanceof FacesFileNotFoundException) { try { handleNotFoundException((Exception) t); } finally { events.remove(); } } else { getWrapped().handle(); } LOG.log(Level.INFO, "ExceptionHandlder end."); } }
Example #9
Source File: DefaultExceptionHandler.java From ee8-sandbox with Apache License 2.0 | 5 votes |
@Override public void handle() throws FacesException { LOG.log(Level.INFO, "invoking custom ExceptionHandlder..."); Iterator<ExceptionQueuedEvent> events = getUnhandledExceptionQueuedEvents().iterator(); while (events.hasNext()) { ExceptionQueuedEvent event = events.next(); ExceptionQueuedEventContext context = (ExceptionQueuedEventContext) event.getSource(); Throwable t = context.getException(); LOG.log(Level.INFO, "Exception@" + t.getClass().getName()); LOG.log(Level.INFO, "ExceptionHandlder began."); LOG.log(Level.INFO, "t instanceof FacesException@" + (t instanceof FacesException)); // log.log(Level.INFO, "t instanceof FacesFileNotFoundException@" + (t instanceof FacesFileNotFoundException)); t.printStackTrace(); if (t instanceof ViewExpiredException) { try { handleViewExpiredException((ViewExpiredException) t); } finally { events.remove(); } } else if (t instanceof FacesFileNotFoundException) { try { handleNotFoundException((Exception) t); } finally { events.remove(); } } else { getWrapped().handle(); } LOG.log(Level.INFO, "ExceptionHandlder end."); } }
Example #10
Source File: DefaultExceptionHandler.java From ee8-sandbox with Apache License 2.0 | 5 votes |
@Override public void handle() throws FacesException { LOG.log(Level.INFO, "invoking custom ExceptionHandlder..."); Iterator<ExceptionQueuedEvent> events = getUnhandledExceptionQueuedEvents().iterator(); while (events.hasNext()) { ExceptionQueuedEvent event = events.next(); ExceptionQueuedEventContext context = (ExceptionQueuedEventContext) event.getSource(); Throwable t = context.getException(); LOG.log(Level.INFO, "Exception@" + t.getClass().getName()); LOG.log(Level.INFO, "ExceptionHandlder began."); LOG.log(Level.INFO, "t instanceof FacesException@" + (t instanceof FacesException)); // log.log(Level.INFO, "t instanceof FacesFileNotFoundException@" + (t instanceof FacesFileNotFoundException)); t.printStackTrace(); if (t instanceof ViewExpiredException) { try { handleViewExpiredException((ViewExpiredException) t); } finally { events.remove(); } } else if (t instanceof FacesFileNotFoundException) { try { handleNotFoundException((Exception) t); } finally { events.remove(); } } else { getWrapped().handle(); } LOG.log(Level.INFO, "ExceptionHandlder end."); } }
Example #11
Source File: DefaultExceptionHandler.java From ee8-sandbox with Apache License 2.0 | 5 votes |
@Override public void handle() throws FacesException { LOG.log(Level.INFO, "invoking custom ExceptionHandlder..."); Iterator<ExceptionQueuedEvent> events = getUnhandledExceptionQueuedEvents().iterator(); while (events.hasNext()) { ExceptionQueuedEvent event = events.next(); ExceptionQueuedEventContext context = (ExceptionQueuedEventContext) event.getSource(); Throwable t = context.getException(); LOG.log(Level.INFO, "Exception@" + t.getClass().getName()); LOG.log(Level.INFO, "ExceptionHandlder began."); LOG.log(Level.INFO, "t instanceof FacesException@" + (t instanceof FacesException)); // log.log(Level.INFO, "t instanceof FacesFileNotFoundException@" + (t instanceof FacesFileNotFoundException)); t.printStackTrace(); if (t instanceof ViewExpiredException) { try { handleViewExpiredException((ViewExpiredException) t); } finally { events.remove(); } } else if (t instanceof FacesFileNotFoundException) { try { handleNotFoundException((Exception) t); } finally { events.remove(); } } else { getWrapped().handle(); } LOG.log(Level.INFO, "ExceptionHandlder end."); } }
Example #12
Source File: DefaultExceptionHandler.java From ee7-sandbox with Apache License 2.0 | 5 votes |
@Override public void handle() throws FacesException { log.log(Level.INFO, "invoking custom ExceptionHandlder..."); Iterator<ExceptionQueuedEvent> events = getUnhandledExceptionQueuedEvents().iterator(); while (events.hasNext()) { ExceptionQueuedEvent event = events.next(); ExceptionQueuedEventContext context = (ExceptionQueuedEventContext) event.getSource(); Throwable t = context.getException(); log.log(Level.INFO, "Exception@" + t); log.log(Level.INFO, "ExceptionHandlder began."); log.log(Level.INFO, "t instanceof FacesException@" + (t instanceof FacesException)); // log.log(Level.INFO, "t instanceof FacesFileNotFoundException@" + (t instanceof FacesFileNotFoundException)); if (t instanceof ViewExpiredException) { try { handleViewExpiredException((ViewExpiredException) t); } finally { events.remove(); } } if (t instanceof FacesFileNotFoundException || t instanceof TaskNotFoundException) { try { handleNotFoundException((Exception) t); } finally { events.remove(); } } log.log(Level.INFO, "ExceptionHandlder end."); getWrapped().handle(); } }
Example #13
Source File: DefaultExceptionHandler.java From spring4-sandbox with Apache License 2.0 | 5 votes |
@Override public void handle() throws FacesException { log.debug("invoking custom ExceptionHandlder..."); Iterator<ExceptionQueuedEvent> events = getUnhandledExceptionQueuedEvents().iterator(); while (events.hasNext()) { ExceptionQueuedEvent event = events.next(); ExceptionQueuedEventContext context = (ExceptionQueuedEventContext) event.getSource(); Throwable t = context.getException(); log.debug("Exception@" + t); log.debug("ExceptionHandlder began."); log.debug("t instanceof FacesException@" + (t instanceof FacesException)); log.debug("t instanceof FacesFileNotFoundException@" + (t instanceof FacesFileNotFoundException)); if (t instanceof ViewExpiredException) { try { handleViewExpiredException((ViewExpiredException) t); } finally { events.remove(); } } if (t instanceof FacesFileNotFoundException|| t instanceof TaskNotFoundException) { try { handleNotFoundException((Exception) t); } finally { events.remove(); } } log.debug("ExceptionHandlder end."); getWrapped().handle(); } }