users@grizzly.java.net

Re: removeCometHandler Error

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Mon, 25 May 2009 11:03:27 -0400

Salut,

Umar Farman wrote:
> Dear All,
>
> Why does I keep getting this error:
>
> java.lang.NoSuchMethodError:
> com.sun.enterprise.web.connector.grizzly.comet.CometContext.removeCometHandler(Lcom/sun/enterprise/web/connector/grizzly/comet/CometHandler;Z)Z
>
> Whenever i try to use "removeCometHandler(CometHandler, resume)"

At runtime, right? I think your classpath prefix in domain.xml is not
correct because:

> 389 /**
> 390 * Remove a {_at_link CometHandler}. If the continuation (connection)
> 391 * associated with this {_at_link CometHandler} no longer have
> 392 * {_at_link CometHandler} associated to it, it will be resumed.
> 393 * @param handler The CometHandler to remove.
> 394 * @param resume True is the connection can be resumed if no CometHandler
> 395 * are associated with the underlying SelectionKey.
> 396 * @return <tt>true</tt> if the operation succeeded.
> 397 */
> 398 public boolean removeCometHandler(CometHandler handler,boolean resume){

Could it be the issue?

Thanks

-- Jeanfrancois

>
> If I use it without the boolean flag, it works fine, but gives me above
> error everytime I use the method with boolean flag.
>
>
> I am using grizzly-framework-http-1.0.29 with GlassFish v2.
>
> I downloaded the jar from maven/grizzly.
>
>
> --
> Umar Farman
> Software Engineer
> PakVista Technologies Co. (Pvt) Ltd.
> Office No.18, 3rd Floor, Select Center,
> F-11 Markaz - Islamabad.
> Office: +92 51 831 4504-5
> Cell : +92 3333 525 4003
> URL: www.pakvistatech.com <http://www.pakvistatech.com>
> <http://www.pakvistatech.com/>