users@grizzly.java.net

RE: Unable to restart a controller

From: Jerome Louvel <contact_at_noelios.com>
Date: Thu, 28 Feb 2008 19:53:59 +0100

Salut Jean-François,

That was quick! Thanks, it's working fine now :)

Best regards,
Jerome

> -----Message d'origine-----
> De : Jeanfrancois.Arcand_at_Sun.COM [mailto:Jeanfrancois.Arcand_at_Sun.COM]
> Envoyé : jeudi 28 février 2008 17:52
> À : users_at_grizzly.dev.java.net
> Objet : Re: Unable to restart a controller
>
> Salut Jerome,
>
> fixed :-) and backported to 1.7.2
>
> A+
>
> -- Jeanfrancois
>
> Jeanfrancois Arcand wrote:
> > 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
> >>
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> > For additional commands, e-mail: users-help_at_grizzly.dev.java.net
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_grizzly.dev.java.net
> For additional commands, e-mail: users-help_at_grizzly.dev.java.net
>