Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-dev] jetty 7.5.0: NullPointerException when stopping the server

Michele,

What is your code that sets up and starts jetty?

Jan

On 2 September 2011 18:06, Michele Rossi <michele.rossi@xxxxxxxxx> wrote:
> Hi,
> I have just tried out the latest build of Jetty available on maven, 7.5.0
> 20110901 and I am getting the following exception when attempting to call
> Server.stop().
>
> java.lang.NullPointerException
>     at
> org.eclipse.jetty.servlet.ServletContextHandler.doStop(ServletContextHandler.java:146)
>     at org.eclipse.jetty.webapp.WebAppContext.doStop(WebAppContext.java:477)
>     at
> org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:84)
>     at
> org.eclipse.jetty.server.handler.HandlerCollection.doStop(HandlerCollection.java:245)
>     at
> org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:84)
>     at
> org.eclipse.jetty.server.handler.HandlerWrapper.doStop(HandlerWrapper.java:101)
>     at org.eclipse.jetty.server.Server.doStop(Server.java:322)
>     at
> org.eclipse.jetty.util.component.AbstractLifeCycle.stop(AbstractLifeCycle.java:84)
>
> The method in question is
>
>     @Override
>     protected void doStop() throws Exception
>     {
>         super.doStop();
>         _decorators.clear();
>         _wrapper.setHandler(null);
>     }
>
> and _wrapper is null.
>
>
> thanks,
> Michele
>
> _______________________________________________
> jetty-dev mailing list
> jetty-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/jetty-dev
>
>


Back to the top