You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Stojce Dimski <sd...@yahoo.it> on 2007/09/03 14:27:25 UTC

embedded jetty 1.3b2 -> 1.3b3 = NullPointerException

When using webapp as embedded in jetty (without 'web.xml') I had a NPE
when passing from beta2 to beta3...
Later I downloaded the sources of beta3 and I think that problem lies
in: DiskPageStore-getDefaultFileStoreFolder()
which returns null...



      ___________________________________ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: embedded jetty 1.3b2 -> 1.3b3 = NullPointerException

Posted by Matej Knopp <ma...@gmail.com>.
There seems to be something wrong with your setup,

The method looks like this

return
(File)((WebApplication)Application.get()).getServletContext().getAttribute(
                "javax.servlet.context.tempdir");

If there was no application attached to current thread, you'd get different
exception. So it seems like Applictation.getServletContext() returns null.
How is this possible?

-Matej


On 9/3/07, Stojce Dimski <sd...@yahoo.it> wrote:
>
> When using webapp as embedded in jetty (without 'web.xml') I had a NPE
> when passing from beta2 to beta3...
> Later I downloaded the sources of beta3 and I think that problem lies
> in: DiskPageStore-getDefaultFileStoreFolder()
> which returns null...
>
>
>
>       ___________________________________
> L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail:
> http://it.docs.yahoo.com/nowyoucan.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>