dev@javaserverfaces.java.net

NPE in factory.getApplication()

From: Matthias Wessendorf <matzew_at_apache.org>
Date: Mon, 7 Jan 2008 21:56:29 +0100

Hi,

this code:

ApplicationFactory factory = (ApplicationFactory)
  FactoryFinder.getFactory(FactoryFinder.APPLICATION_FACTORY);
Application application = factory.getApplication();

did throw this error:
java.lang.NullPointerException
at com.sun.faces.application.ApplicationAssociate.<init>(ApplicationAssociate.
java:143)
at com.sun.faces.application.ApplicationImpl.<init>(ApplicationImpl.java:132)
at com.sun.faces.application.ApplicationFactoryImpl.getApplication(Application
FactoryImpl.java:97)

I haven't observed this myself, but a customer did report it.
So, just curios, if some of you saw this already...
(looks like 1.2_04-b10-p01 was used)

Thanks,
Matthias

-- 
Matthias Wessendorf
further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org