users@grizzly.java.net

Re: Unable to restart a controller

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Thu, 28 Feb 2008 10:26:07 -0500

Salut Jerome,

Jerome Louvel wrote:
> Hi all,
>
> I completing the Grizzly connector for Restlet 1.1 M2 release. It almost
> working but I encountered an issue.
>
> If you start a controller, then stop it, then start it again, you get a NPE
> due to issues with the default pipeline.
>
> Exception in thread "Thread-2" java.lang.NullPointerException
> at
> com.sun.grizzly.DefaultPipeline.startPipeline(DefaultPipeline.java:180)
> at com.sun.grizzly.Controller.start(Controller.java:819)
> at com.noelios.restlet.ext.grizzly.GrizzlyServerHelper
>
> $1.run(GrizzlyServerHelper.java:94)
>
> I found a workaround by doing this:
> this.controller.stop();
> this.controller.getPipeline().stopPipeline();
> this.controller.setPipeline(new DefaultPipeline());

I've just filled:

https://grizzly.dev.java.net/issues/show_bug.cgi?id=77

The fix is simple...testing :-)

Merci!

-- Jeanfrancois


>
> Obviously, it would be better to be able to reuse the existing
> pipeline/threads.
>
> Best regards,
> Jerome Louvel
> http://www.restlet.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>