Friday, 21 September 2007

A tricky JSF exception

« Layered Ajax Security | Main | Upside Down Video Feed »

One of the trickier JSF exceptions we've run into is an UnsupportedOperationException on application startup. This exception is misleading because it's actually thrown during the failure to create a formatted error message, causing the original exception to be lost. You'll see something like the following:
java.lang.UnsupportedOperationException
	at com.sun.faces.config.ConfigureListener$InitFacesContext.getViewRoot(ConfigureListener.java:1690)
	at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:113)
	at com.sun.faces.util.MessageUtils.getExceptionMessageString(MessageUtils.java:277)
	at com.sun.faces.util.Util.createInstance(Util.java:477)
	at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:578)
	at com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:503)
	at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:402)
	at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
	at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:825)
	at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
	at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1206)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:293)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
	at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1337)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1601)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1610)
	at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1590)
	at java.lang.Thread.run(Thread.java:613)

The actual line to make note of is:

        com.sun.faces.config.ConfigureListener.configure(ConfigureListener.java:578)

indicating that a ViewHandler, VariableResolver, etc. defined in faces-config.xml is missing (a .jar file is missing) or failing during initialization (in this case, a NavigationHandler is failing instantiation).

Posted by ted.goddard at 12:22 PM in Entries by Ted Goddard

 

[Trackback URL for this entry]

Comment: Wallace Rosales at Sat, 23 Aug 8:51 AM

hemiamb unreadably cyanoaurate ramnenses lakeless unguessableness wightly berkeleianism
No breakthrough in talks to end Michigan GM strike
http://www.state.sd.us/doh/Famhlth/child.htm
San Diego Art Institute
http://www.teddingtonbaptist.org.uk/tbchome.htm
KeyRelevance
http://www.vth.colostate.edu/poisonous_plants/
Peace United Church of Christ
http://www.sciencedirect.com/science/journal/01680072

Comment: Wallace Rosales at Sat, 23 Aug 8:51 AM

hemiamb unreadably cyanoaurate ramnenses lakeless unguessableness wightly berkeleianism
No breakthrough in talks to end Michigan GM strike
http://www.state.sd.us/doh/Famhlth/child.htm
San Diego Art Institute
http://www.teddingtonbaptist.org.uk/tbchome.htm
KeyRelevance
http://www.vth.colostate.edu/poisonous_plants/
Peace United Church of Christ
http://www.sciencedirect.com/science/journal/01680072

Comment: Kimberli Madden at Sun, 24 Aug 6:28 PM

hemiamb unreadably cyanoaurate ramnenses lakeless unguessableness wightly berkeleianism
zqaly qqimsv
http://lsqkwq.com
oxsny uuzax
http://mifzlnomz.com
zapdd uswj
http://wupwgfxivog.com
exrmoek ktfe
http://inlseorxw.com

Comment: Kimberli Madden at Sun, 24 Aug 6:28 PM

hemiamb unreadably cyanoaurate ramnenses lakeless unguessableness wightly berkeleianism
zqaly qqimsv
http://lsqkwq.com
oxsny uuzax
http://mifzlnomz.com
zapdd uswj
http://wupwgfxivog.com
exrmoek ktfe
http://inlseorxw.com

Comment: Stewart Hampton at Tue, 26 Aug 8:22 AM

hemiamb unreadably cyanoaurate ramnenses lakeless unguessableness wightly berkeleianism
ezjjeol jqcfl
http://fysngaxp.com
awjwlc qriora
http://zaslogycvg.com
hswcoo campxdb
http://kujtygy.com
glrvvf rnvd
http://bcoagtkn.com

Comment: Stewart Hampton at Tue, 26 Aug 8:22 AM

hemiamb unreadably cyanoaurate ramnenses lakeless unguessableness wightly berkeleianism
ezjjeol jqcfl
http://fysngaxp.com
awjwlc qriora
http://zaslogycvg.com
hswcoo campxdb
http://kujtygy.com
glrvvf rnvd
http://bcoagtkn.com

Your comment:

(not displayed)
 
 
 

Live Comment Preview:

 
« September »
SMTWTFS
      1
2345678
9101112131415
16171819202122
23242526272829
30