dev@javaserverfaces.java.net

Re: NPE in factory.getApplication()

From: Matthias Wessendorf <matzew_at_apache.org>
Date: Mon, 7 Jan 2008 23:31:38 +0100

from an init() of a Filter.

On Jan 7, 2008 10:10 PM, Ryan Lubke <Ryan.Lubke_at_sun.com> wrote:
> Matthias Wessendorf wrote:
> > 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
> >
> >
> Where/when are they calling this code?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_javaserverfaces.dev.java.net
> For additional commands, e-mail: dev-help_at_javaserverfaces.dev.java.net
>
>



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