Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 50401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:35:15+00:00 2026-05-10T16:35:15+00:00

If my code throws an exception, sometimes – not everytime – the jsf presents

  • 0

If my code throws an exception, sometimes – not everytime – the jsf presents a blank page. I´m using facelets for layout. A similar error were reported at this Sun forumn´s post, but without answers. Anyone else with the same problem, or have a solution? 😉

Due to some requests. Here follow more datails:

web.xml

 <error-page>         <exception-type>com.company.ApplicationResourceException</exception-type>         <location>/error.faces</location>  </error-page> 

And the stack related to jsf is printed after the real exception:

####<Sep 23, 2008 5:42:55 PM GMT-03:00> <Error> <HTTP> <comp141> <AdminServer> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1222202575662> <BEA-101107> <[weblogic.servlet.internal.WebAppServletContext@6d46b9 - appName: 'ControlPanelEAR', name: 'ControlPanelWeb', context-path: '/Web'] Problem occurred while serving the error page. javax.servlet.ServletException: viewId:/error.xhtml - View /error.xhtml could not be restored.     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:249)     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)     at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:525)     at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:261)     at weblogic.servlet.internal.ForwardAction.run(ForwardAction.java:22)     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)     at weblogic.security.service.SecurityManager.runAs(Unknown Source)     at weblogic.servlet.internal.ErrorManager.handleException(ErrorManager.java:144)     at weblogic.servlet.internal.WebAppServletContext.handleThrowableFromInvocation(WebAppServletContext.java:2201)     at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2053)     at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)     at weblogic.work.ExecuteThread.run(ExecuteThread.java:172) javax.faces.application.ViewExpiredException: viewId:/error.xhtml - View /error.xhtml could not be restored.     at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:180)     at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)     at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124) 

I´m using the jsf version Mojarra 1.2_09, richfaces 3.2.1.GA and facelets 1.1.13.

Hope some help 🙁

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T16:35:16+00:00Added an answer on May 10, 2026 at 4:35 pm

    I think this largely depends on your JSF implementation. I’ve heard that some will render blank screens.

    The one we were using would throw error 500’s with a stack trace. Other times out buttons wouldn’t work without any error for the user. This was all during our development phase.

    But the best advice I can give you is to catch the exceptions and log them in an error log so you have the stack trace for debugging later. For messages that we couldn’t do anything about like a backend failing we would just add a fatal message to the FacesContext that gets displayed on the screen and log the stack trace.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 79k
  • Answers 79k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If you're a normal user (i.e., not 'root') ifconfig isn't… May 11, 2026 at 4:10 pm
  • Editorial Team
    Editorial Team added an answer Yes, but you have to specify that they are floats,… May 11, 2026 at 4:10 pm
  • Editorial Team
    Editorial Team added an answer The If _TicketCharge = Nothing is not doing what you… May 11, 2026 at 4:10 pm

Related Questions

If my code throws an exception, sometimes - not everytime - the jsf presents
Been having a heated debate with a colleague about his practice of wrapping most
In my code, I am creating a collection of objects which will be accessed
ANSWER: If you ever see these lines and are mistified like I was, here's
There is a try-catch thing about functions, which I think sometimes may be quite

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.