users@glassfish.java.net

Comet Programming

From: <forums_at_java.net>
Date: Tue, 4 Oct 2011 16:30:49 -0500 (CDT)

Hello I start to work with comet and as my first step I download GF Source
Edition 3.1.1 (build 12).

After I download the sample app at    
/maven/2/com/sun/grizzly/samples/grizzly-comet-hidden/   version 1.9.9

Enabled comet support on GF console (both for default and server
configurations )

Start application in Firefox  and IE8.

On firefox I see only the index ,without any number and on IE I see a blank
page (404 )

GF console ,into netbeans 7.01, report : 

AVVERTENZA: Response Error during finishResponse
java.lang.NullPointerException
    at
com.sun.enterprise.v3.services.impl.monitor.MonitorableSelectionKeyHandler$CloseHandler.notifyClosed(MonitorableSelectionKeyHandler.java:94)
    at
com.sun.enterprise.v3.services.impl.monitor.MonitorableSelectionKeyHandler$CloseHandler.remotlyClosed(MonitorableSelectionKeyHandler.java:90)
    at
com.sun.grizzly.BaseSelectionKeyHandler.notifyRemotlyClose(BaseSelectionKeyHandler.java:233)
    at
com.sun.grizzly.util.OutputWriter.notifyRemotelyClosed(OutputWriter.java:353)
    at
com.sun.grizzly.util.OutputWriter.flushChannel(OutputWriter.java:148)
    at
com.sun.grizzly.util.OutputWriter.flushChannel(OutputWriter.java:76)
    at
com.sun.grizzly.http.SocketChannelOutputBuffer.flushChannel(SocketChannelOutputBuffer.java:326)
    at
com.sun.grizzly.http.SocketChannelOutputBuffer.flushBuffer(SocketChannelOutputBuffer.java:398)
    at
com.sun.grizzly.http.SocketChannelOutputBuffer.endRequest(SocketChannelOutputBuffer.java:389)
    at com.sun.grizzly.http.ProcessorTask.action(ProcessorTask.java:1090)
    at com.sun.grizzly.tcp.Response.action(Response.java:268)
    at com.sun.grizzly.tcp.Response.finish(Response.java:412)
    at
org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:341)
    at
org.apache.catalina.connector.Response.finishResponse(Response.java:582)
    at
org.apache.catalina.connector.CoyoteAdapter.afterService(CoyoteAdapter.java:370)
    at
com.sun.enterprise.v3.services.impl.ContainerMapper.afterService(ContainerMapper.java:366)
    at
com.sun.grizzly.http.ProcessorTask.finishResponse(ProcessorTask.java:760)
    at
com.sun.grizzly.http.ProcessorTask.postResponse(ProcessorTask.java:750)
    at
com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:726)
    at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1019)
    at
com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
    at
com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
    at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
    at
com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
    at
com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
    at
com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
    at
com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
    at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
    at
com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
    at
com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
    at java.lang.Thread.run(Thread.java:619)

 

Then  what is the problem, and where I can find the source of this
application or other application to study Comet ?

Thanks


--
[Message sent by forum member 'kronos72it']
View Post: http://forums.java.net/node/850200