users@glassfish.java.net

Re: cometd implementation

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Tue, 13 Nov 2007 16:13:48 -0500

Wang Yu wrote:
> Great news! I will start to write a "stock price subscribe" demo with
> this new implementation.

Great! Let us know once you have it :-)

-- Jeanfrancois
>
> Thanks and Best Regards
> Wang Yu
>
>
> Jeanfrancois Arcand wrote:
>> Hi,
>>
>> Wang Yu wrote:
>>> Thanks for the information.
>>
>> Starting tomorrow, GlassFish cometd implementation support Bayeux 1.0
>> spec implemenation (and dojo 0.9 and up :-))
>>
>> -- Jeanfrancois
>>
>>>
>>> Best Regards
>>> Wang Yu
>>>
>>>
>>> Jeanfrancois Arcand wrote:
>>>> Hi,
>>>>
>>>> Wang Yu wrote:
>>>>> Hello,
>>>>>
>>>>> I want to do a cometd demo in the Glassfish Day in Beijing, but
>>>>> failed when trying the last builds (V2, V2U1,nightly build...).
>>>>> The error message is:
>>>>>
>>>>> java.lang.NullPointerException
>>>>> at
>>>>> com.sun.grizzly.cometd.bayeux.Handshake.toJSON(Handshake.java:198)
>>>>> at
>>>>> com.sun.grizzly.cometd.BayeuxCometHandler.onHandshake(BayeuxCometHandler.java:100)
>>>>>
>>>>> at
>>>>> com.sun.grizzly.cometd.BayeuxCometHandlerBase.onEvent(BayeuxCometHandlerBase.java:59)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.web.connector.grizzly.comet.DefaultNotificationHandler.notify0(DefaultNotificationHandler.java:187)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.web.connector.grizzly.comet.DefaultNotificationHandler.notify(DefaultNotificationHandler.java:143)
>>>>>
>>>>> at
>>>>> com.sun.enterprise.web.connector.grizzly.comet.CometContext.notify(CometContext.java:456)
>>>>>
>>>>> at
>>>>> com.sun.grizzly.cometd.EventRouterImpl.route(EventRouterImpl.java:93)
>>>>> at
>>>>> com.sun.grizzly.cometd.servlet.CometdServlet.doPost(CometdServlet.java:166)
>>>>>
>>>>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:738)
>>>>> .....
>>>>>
>>>>> It seems that Glassfish hasnot implement the Cometd protocol
>>>>> properly in these versions.
>>>>> Can someone tell me which version can work well with cometd client
>>>>> (Dojo toolkit)?
>>>>
>>>> The spec evolved faster than the GlassFish implementation :-(. The
>>>> version supported is 0.5.
>>>>
>>>> Thanks
>>>>
>>>> -- Jeanfrancois
>>>>
>>>>
>>>>>
>>>>> Thanks and Best Regards
>>>>> Wang Yu
>>>>>
>>>>>
>>>>> --
>>>>> <http://www.sun.com> * Yu Wang *
>>>>> Software Engineer
>>>>> *Sun China Engineering&Research Institute*
>>>>> 10/F Chuangxin Plaza, Tsinghua Science Park
>>>>> Beijing 100084 CHINA
>>>>> Phone x82934/+86 10 82618200
>>>>> Mobile 13701319042
>>>>> Fax +86-10-62702127
>>>>> Email Wang.Yu_at_Sun.COM
>>>>> <http://www.sun.com>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>>
>>>
>>>
>>> --
>>> <http://www.sun.com> * Yu Wang *
>>> Software Engineer
>>> *Sun China Engineering&Research Institute*
>>> 10/F Chuangxin Plaza, Tsinghua Science Park
>>> Beijing 100084 CHINA
>>> Phone x82934/+86 10 82618200
>>> Mobile 13701319042
>>> Fax +86-10-62702127
>>> Email Wang.Yu_at_Sun.COM
>>> <http://www.sun.com>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net For
>>> additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>
>
> --
> <http://www.sun.com> * Yu Wang *
> Software Engineer
> *Sun China Engineering&Research Institute*
> 10/F Chuangxin Plaza, Tsinghua Science Park
> Beijing 100084 CHINA
> Phone x82934/+86 10 82618200
> Mobile 13701319042
> Fax +86-10-62702127
> Email Wang.Yu_at_Sun.COM
> <http://www.sun.com>
>
> --------------------------------------------------------------------- To
> unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net For
> additional commands, e-mail: users-help_at_glassfish.dev.java.net