users@glassfish.java.net

Glassfish 3.1.2.2 warning GRIZZLY0024 and SelectorFactory, with atmosphere

From: <forums_at_java.net>
Date: Sun, 16 Sep 2012 21:52:34 -0500 (CDT)

Hi all! My environment is Glassfish 3.1.2.2 (enable Comet and websocket), JDK
1.7.0_07, Atmosphere 1.0.0.RC1, JSF 2.1.10, and PrimeFaces 3.4 on Windows 7.
I have enabled the comet with the steps follow :
  * Start GlassFish Server, navigate to Web Admin Console (default:
    http://localhost:4848/) in browser.
  * At "Common Task" pan on left hand side, select "Configuration" –>
    "Network Config" –> "Network Listeners" –> "http-listener-1"
  * At "Edit Network Listener", select tab "HTTP".
  * Under tab "HTTP", select the checkbox of "Comet Support"
  * Click "Save" button (at top of frame)
I am trying out the Counter example (primefaces 3.4 counter [1]) I followed
the steps for manual PF3.4 [2] and I enabled Comet support in my domain. But
this example, not works, because haven't comunication between the browsers.
Also, I have the following warnings WARNING: GRIZZLY0024: Terminate process
interrupted. java.lang.InterruptedException at
java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1325)
at java.util.concurrent.Semaphore.tryAcquire(Semaphore.java:414) at
com.sun.grizzly.http.ProcessorTask.terminateProcess(ProcessorTask.java:1021)
at
com.sun.grizzly.arp.DefaultAsyncExecutor.finishResponse(DefaultAsyncExecutor.java:186)
at
com.sun.grizzly.arp.DefaultAsyncExecutor.finishExecute(DefaultAsyncExecutor.java:210)
at com.sun.grizzly.arp.AsyncProcessorTask.doTask(AsyncProcessorTask.java:133)
at com.sun.grizzly.comet.CometEngine.flushPostExecute(CometEngine.java:426)
at com.sun.grizzly.comet.CometEngine.interrupt0(CometEngine.java:405) at
com.sun.grizzly.comet.CometEngine.interrupt(CometEngine.java:383) at
com.sun.grizzly.comet.CometContext.resumeCometHandler(CometContext.java:442)
at
org.atmosphere.container.GrizzlyCometSupport.resume(GrizzlyCometSupport.java:172)
at
org.atmosphere.container.GrizzlyCometSupport.action(GrizzlyCometSupport.java:184)
at
org.atmosphere.container.GrizzlyCometSupport.action(GrizzlyCometSupport.java:81)
at
org.atmosphere.cpr.AtmosphereResourceImpl.resume(AtmosphereResourceImpl.java:317)
at
org.atmosphere.handler.AbstractReflectorAtmosphereHandler.onStateChange(AbstractReflectorAtmosphereHandler.java:146)
at
org.atmosphere.cpr.DefaultBroadcaster.broadcast(DefaultBroadcaster.java:853)
at
org.atmosphere.cpr.DefaultBroadcaster.executeAsyncWrite(DefaultBroadcaster.java:768)
at org.atmosphere.cpr.DefaultBroadcaster$3.run(DefaultBroadcaster.java:801)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at
java.util.concurrent.FutureTask.run(FutureTask.java:166) at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722) WARNING: SelectorFactory. Can not
create a selector java.io.IOException: Unable to establish loopback
connection at sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:125) at
sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:69) at
java.security.AccessController.doPrivileged(Native Method) at
sun.nio.ch.PipeImpl.(PipeImpl.java:141) at
sun.nio.ch.SelectorProviderImpl.openPipe(SelectorProviderImpl.java:50) at
java.nio.channels.Pipe.open(Pipe.java:150) at
sun.nio.ch.WindowsSelectorImpl.(WindowsSelectorImpl.java:126) at
sun.nio.ch.WindowsSelectorProvider.openSelector(WindowsSelectorProvider.java:44)
at java.nio.channels.Selector.open(Selector.java:227) at
com.sun.grizzly.util.Utils.openSelector(Utils.java:99) at
com.sun.grizzly.util.SelectorFactory.getSelector(SelectorFactory.java:113) at
com.sun.grizzly.util.OutputWriter.flushChannel(OutputWriter.java:140) at
com.sun.grizzly.util.OutputWriter.flushChannel(OutputWriter.java:76) at
com.sun.grizzly.http.SocketChannelOutputBuffer.flushChannel(SocketChannelOutputBuffer.java:426)
at
com.sun.grizzly.http.SocketChannelOutputBuffer.flushBuffer(SocketChannelOutputBuffer.java:498)
at
com.sun.grizzly.http.SocketChannelOutputBuffer.endRequest(SocketChannelOutputBuffer.java:489)
at com.sun.grizzly.http.ProcessorTask.action(ProcessorTask.java:1127) 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:375)
at
com.sun.enterprise.v3.services.impl.ContainerMapper.afterService(ContainerMapper.java:483)
at com.sun.grizzly.http.ProcessorTask.finishResponse(ProcessorTask.java:792)
at com.sun.grizzly.http.ProcessorTask.postResponse(ProcessorTask.java:782) at
com.sun.grizzly.arp.DefaultAsyncExecutor.postExecute(DefaultAsyncExecutor.java:198)
at com.sun.grizzly.arp.AsyncProcessorTask.doTask(AsyncProcessorTask.java:114)
at com.sun.grizzly.comet.CometEngine.flushPostExecute(CometEngine.java:426)
at com.sun.grizzly.comet.CometEngine.interrupt0(CometEngine.java:405) at
com.sun.grizzly.comet.CometEngine.interrupt(CometEngine.java:383) at
com.sun.grizzly.comet.CometContext.resumeCometHandler(CometContext.java:442)
at
org.atmosphere.container.GrizzlyCometSupport.resume(GrizzlyCometSupport.java:172)
at
org.atmosphere.container.GrizzlyCometSupport.action(GrizzlyCometSupport.java:184)
at
org.atmosphere.container.GrizzlyCometSupport.action(GrizzlyCometSupport.java:81)
at
org.atmosphere.cpr.AtmosphereResourceImpl.resume(AtmosphereResourceImpl.java:317)
at
org.atmosphere.handler.AbstractReflectorAtmosphereHandler.onStateChange(AbstractReflectorAtmosphereHandler.java:146)
at
org.atmosphere.cpr.DefaultBroadcaster.broadcast(DefaultBroadcaster.java:853)
at
org.atmosphere.cpr.DefaultBroadcaster.executeAsyncWrite(DefaultBroadcaster.java:768)
at org.atmosphere.cpr.DefaultBroadcaster$3.run(DefaultBroadcaster.java:801)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) at
java.util.concurrent.FutureTask.run(FutureTask.java:166) at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722) Caused by:
java.nio.channels.ClosedByInterruptException at
java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:202)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:634) at
java.nio.channels.SocketChannel.open(SocketChannel.java:184) at
sun.nio.ch.PipeImpl$Initializer.run(PipeImpl.java:97) I've asked in 2 forums
(primefaces-forum [3] and atmosphere [4])and they have told me is a problem
in glassfish.

[1] http://www.primefaces.org/showcase-labs/push/counter.jsf
[2] http://primefaces.googlecode.com/files/primefaces_users_guide_3_4.pdf
[3] http://forum.primefaces.org/viewtopic.php?t=24634
[4]
https://groups.google.com/forum/?fromgroups=#!topic/atmosphere-framework/ieERKNvCzH4

--
[Message sent by forum member 'fylex.182']
View Post: http://forums.java.net/node/890277