users@glassfish.java.net

cometd implementation

From: Wang Yu <Wang.Yu_at_Sun.COM>
Date: Tue, 30 Oct 2007 11:08:17 +0800
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)?

Thanks and Best Regards
Wang Yu
 

--
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@Sun.COM