users@glassfish.java.net

Re: Multiple Null Pointer Exceptions in MonitorableSelectionKeyHandler

From: Oleksiy Stashok <oleksiy.stashok_at_oracle.com>
Date: Wed, 26 Sep 2012 17:57:31 +0200

Can you pls. try Glassfish 3.1.2.2?

Thanks.

On 09/26/2012 05:04 PM, forums_at_java.net wrote:
> We are receiving multiple null pointer exceptions in the
> MonitorableSelectionKeyHandler module of GF 3.1.2 as in:
> [#|2012-09-26T09:10:18.198-0400|WARNING|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=17;_ThreadName=Thread-2;|StandardWrapperValve[default]:
>
> PWC1406: Servlet.service() for servlet default threw exception
> 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.realWriteBytes(SocketChannelOutputBuffer.java:282)
>
> at
> com.sun.grizzly.tcp.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:898)
>
> at
> com.sun.grizzly.tcp.http11.filters.IdentityOutputFilter.doWrite(IdentityOutputFilter.java:159)
>
> at
> com.sun.grizzly.tcp.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:658)
>
> at com.sun.grizzly.tcp.Response.doWrite(Response.java:685) at
> org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:422)
>
> at com.sun.grizzly.util.buf.ByteChunk.flushBuffer(ByteChunk.java:453) at
> com.sun.grizzly.util.buf.ByteChunk.append(ByteChunk.java:375) at
> org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:452)
>
> at
> org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:439) at
>
> org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:160)
>
> at
> org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.java:2229)
>
> at
> org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:1965)
> at
> org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:987)
>
> at
> org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:413)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at
> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)
>
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
>
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
>
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
>
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98) at
> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
>
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
>
> at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)
>
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
>
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)
>
> at
> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
> at
> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725) 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:662) |#]
> [#|2012-09-26T09:10:18.198-0400|WARNING|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=17;_ThreadName=Thread-2;|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:662) |#]
> [#|2012-09-26T09:10:18.198-0400|WARNING|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=19;_ThreadName=Thread-2;|StandardWrapperValve[default]:
>
> PWC1406: Servlet.service() for servlet default threw exception
> 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.realWriteBytes(SocketChannelOutputBuffer.java:282)
>
> at
> com.sun.grizzly.tcp.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:898)
>
> at
> com.sun.grizzly.tcp.http11.filters.IdentityOutputFilter.doWrite(IdentityOutputFilter.java:159)
>
> at
> com.sun.grizzly.tcp.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:658)
>
> at com.sun.grizzly.tcp.Response.doWrite(Response.java:685) at
> org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:422)
>
> at com.sun.grizzly.util.buf.ByteChunk.flushBuffer(ByteChunk.java:453) at
> com.sun.grizzly.util.buf.ByteChunk.append(ByteChunk.java:375) at
> org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:452)
>
> at
> org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:439) at
>
> org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:160)
>
> at
> org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.java:2229)
>
> at
> org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:1965)
> at
> org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:987)
>
> at
> org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:413)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:734) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:847) at
> org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1539)
>
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:281)
>
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>
> at
> org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:655)
>
> at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:595)
>
> at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:98) at
> com.sun.enterprise.web.PESessionLockingStandardPipeline.invoke(PESessionLockingStandardPipeline.java:91)
>
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:162)
>
> at
> org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:330)
>
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:231)
>
> at
> com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:174)
>
> at
> com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:828)
> at
> com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:725) 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:662) |#]
> [#|2012-09-26T09:10:18.198-0400|WARNING|glassfish3.1.1|javax.enterprise.system.container.web.com.sun.enterprise.web|_ThreadID=19;_ThreadName=Thread-2;|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:662) Can anyone tell me what is
> causing
> GF to experience these exceptions?
>
> --
>
> [Message sent by forum member 'braddus']
>
> View Post: http://forums.java.net/node/890696
>
>