Skip to main content

Mojarra 2.0.3 Exception.

2 replies [Last post]
Joined: 2010-03-19

NetBeans 6.9
Tomcat 6.0.26
JSF(Mojarra) 2.0.3

I'm getting the following error in the browser:

- Stack Trace

java.lang.IllegalArgumentException: null source
at java.util.EventObject.(
at javax.faces.event.SystemEvent.(
at javax.faces.event.ComponentSystemEvent.(
at javax.faces.event.PostRestoreStateEvent.(
at com.sun.faces.lifecycle.RestoreViewPhase.deliverPostRestoreStateEvent(
at com.sun.faces.lifecycle.RestoreViewPhase.execute(
at com.sun.faces.lifecycle.Phase.doPhase(
at com.sun.faces.lifecycle.RestoreViewPhase.doPhase(
at com.sun.faces.lifecycle.LifecycleImpl.execute(
at javax.faces.webapp.FacesServlet.service(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
at org.apache.catalina.core.StandardWrapperValve.invoke(
at org.apache.catalina.core.StandardContextValve.invoke(
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(
at org.apache.catalina.core.StandardHostValve.invoke(
at org.apache.catalina.valves.ErrorReportValve.invoke(
at org.apache.catalina.core.StandardEngineValve.invoke(
at org.apache.catalina.connector.CoyoteAdapter.service(
at org.apache.coyote.http11.Http11Processor.process(
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(

+- Component Tree

... this is empty ...

I'm using a template xhtml file and the error above occurs in one of the template client files. Actually it occurs in any template client that contains javascript using the less than operator. Here's an excerpt from the template client page:

function some_function()
for( var i = 0; i > 2; i++ ) // Page renders successfully.
for( var i = 0; i < 2; i++ ) // This line causes an exception. Even if it's commented.


Looking at the Mojarra 2.0.3 code and the exception's call stack, it appears the UIViewRoot is not being created in RestoreViewPhase.execute(). Also, I don't know if this has any bearing, but I've replaced the following two jar files in Tomcat 6, with updated versions from Tomcat 7, so I can use EL method calls with parameters.


Not sure if this is a bug or the result of my non-standard configuration. I'd be grateful if someone could point me in the right direction.


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2007-07-15

The view definitions need to be valid XML. Try using

Joined: 2010-03-19

Sorry about the formatting. For some reason the carriage returns aren't being recognized.