Topic
  • 4 replies
  • Latest Post - ‏2013-09-10T14:56:52Z by yenlu
yenlu
yenlu
3 Posts

Pinned topic Wink exception when closing an IE10 browser session

‏2013-09-05T21:05:41Z |

I have a JAX-RS Web application which runs fine. However, when I close a browser containing a front end which interacts with my services, I see a Wink runtime exception on WebSphere Liberty 8.5.5. This only occurs when the browser is IE 10. Nothing in the stack trace points to my application's code:

[ERROR   ] An unhandled exception occurred which will be propagated to the container.
Connection closed: Read failed.  Possible end of stream encountered.
[ERROR   ] SRVE0777E: Exception thrown by application class 'org.apache.wink.server.internal.RequestProcessor.handleRequest:195'
javax.servlet.ServletException: java.io.IOException: Connection closed: Read failed.  Possible end of stream encountered.
    at org.apache.wink.server.internal.RequestProcessor.handleRequest(RequestProcessor.java:195)
    at org.apache.wink.server.internal.servlet.RestServlet.service(RestServlet.java:124)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1240)
    at [internal classes]
Caused by: java.io.IOException: Connection closed: Read failed.  Possible end of stream encountered.
    at com.ibm.ws.tcpchannel.internal.WorkQueueManager.attemptIO(WorkQueueManager.java:667)
    at [internal classes]
    at org.apache.wink.common.utils.ProviderUtils.copyStream(ProviderUtils.java:215)
    at org.apache.wink.common.utils.ProviderUtils.readFromStream(ProviderUtils.java:192)
    at org.apache.wink.common.utils.ProviderUtils.readFromStreamAsString(ProviderUtils.java:203)
    at org.apache.wink.common.internal.providers.entity.FormMultivaluedMapProvider.readFrom(FormMultivaluedMapProvider.java:127)
    at org.apache.wink.common.internal.providers.entity.FormMultivaluedMapProvider.readFrom(FormMultivaluedMapProvider.java:44)
    at org.apache.wink.server.internal.registry.ServerInjectableFactory$EntityParam.getValue(ServerInjectableFactory.java:197)
    at org.apache.wink.server.internal.registry.ServerInjectableFactory$FormParamBinding.getValue(ServerInjectableFactory.java:384)
    at org.apache.wink.common.internal.registry.InjectableFactory.instantiate(InjectableFactory.java:68)
    at org.apache.wink.server.internal.handlers.CreateInvocationParametersHandler.handleRequest(CreateInvocationParametersHandler.java:44)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
    at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)
    at org.apache.wink.server.handlers.AbstractHandler.handleRequest(AbstractHandler.java:34)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
    at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)
    at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleSubResourceMethod(FindResourceMethodHandler.java:188)
    at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleRequest(FindResourceMethodHandler.java:110)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
    at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)
    at org.apache.wink.server.internal.handlers.FindRootResourceHandler.handleRequest(FindRootResourceHandler.java:95)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
    at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)
    at org.apache.wink.server.internal.handlers.HeadMethodHandler.handleRequest(HeadMethodHandler.java:53)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
    at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)
    at org.apache.wink.server.internal.handlers.OptionsMethodWADLHandler.handleRequest(OptionsMethodWADLHandler.java:51)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
    at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)
    at org.apache.wink.server.internal.handlers.SearchResultHandler.handleRequest(SearchResultHandler.java:33)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
    at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)
    at org.apache.wink.server.internal.log.ResourceInvocation.handleRequest(ResourceInvocation.java:92)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
    at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)
    at org.apache.wink.server.internal.log.Requests.handleRequest(Requests.java:76)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
    at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)
    at org.apache.wink.server.handlers.AbstractHandlersChain.run(AbstractHandlersChain.java:60)
    at org.apache.wink.server.internal.RequestProcessor.handleRequestWithoutFaultBarrier(RequestProcessor.java:207)
    at org.apache.wink.server.internal.RequestProcessor.handleRequest(RequestProcessor.java:154)
    ... 4 more

[ERROR   ] An unhandled exception occurred which will be propagated to the container.
Connection closed: Read failed.  Possible end of stream encountered.
[ERROR   ] SRVE0777E: Exception thrown by application class 'org.apache.wink.server.internal.RequestProcessor.handleRequest:195'
javax.servlet.ServletException: java.io.IOException: Connection closed: Read failed.  Possible end of stream encountered.
    at org.apache.wink.server.internal.RequestProcessor.handleRequest(RequestProcessor.java:195)
    at org.apache.wink.server.internal.servlet.RestServlet.service(RestServlet.java:124)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1240)
    at [internal classes]
Caused by: java.io.IOException: Connection closed: Read failed.  Possible end of stream encountered.
    at com.ibm.ws.tcpchannel.internal.WorkQueueManager.attemptIO(WorkQueueManager.java:667)
    at [internal classes]
    at org.apache.wink.common.utils.ProviderUtils.copyStream(ProviderUtils.java:215)
    at org.apache.wink.common.utils.ProviderUtils.readFromStream(ProviderUtils.java:192)
    at org.apache.wink.common.utils.ProviderUtils.readFromStreamAsString(ProviderUtils.java:203)
    at org.apache.wink.common.internal.providers.entity.FormMultivaluedMapProvider.readFrom(FormMultivaluedMapProvider.java:127)
    at org.apache.wink.common.internal.providers.entity.FormMultivaluedMapProvider.readFrom(FormMultivaluedMapProvider.java:44)
    at org.apache.wink.server.internal.registry.ServerInjectableFactory$EntityParam.getValue(ServerInjectableFactory.java:197)
    at org.apache.wink.server.internal.registry.ServerInjectableFactory$FormParamBinding.getValue(ServerInjectableFactory.java:384)
    at org.apache.wink.common.internal.registry.InjectableFactory.instantiate(InjectableFactory.java:68)
    at org.apache.wink.server.internal.handlers.CreateInvocationParametersHandler.handleRequest(CreateInvocationParametersHandler.java:44)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
    at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)
    at org.apache.wink.server.handlers.AbstractHandler.handleRequest(AbstractHandler.java:34)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
    at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)
    at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleSubResourceMethod(FindResourceMethodHandler.java:188)
    at org.apache.wink.server.internal.handlers.FindResourceMethodHandler.handleRequest(FindResourceMethodHandler.java:110)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
    at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)
    at org.apache.wink.server.internal.handlers.FindRootResourceHandler.handleRequest(FindRootResourceHandler.java:95)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
    at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)
    at org.apache.wink.server.internal.handlers.HeadMethodHandler.handleRequest(HeadMethodHandler.java:53)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
    at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)
    at org.apache.wink.server.internal.handlers.OptionsMethodWADLHandler.handleRequest(OptionsMethodWADLHandler.java:51)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
    at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)
    at org.apache.wink.server.internal.handlers.SearchResultHandler.handleRequest(SearchResultHandler.java:33)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
    at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)
    at org.apache.wink.server.internal.log.ResourceInvocation.handleRequest(ResourceInvocation.java:92)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
    at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)
    at org.apache.wink.server.internal.log.Requests.handleRequest(Requests.java:76)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:26)
    at org.apache.wink.server.handlers.RequestHandlersChain.handle(RequestHandlersChain.java:22)
    at org.apache.wink.server.handlers.AbstractHandlersChain.doChain(AbstractHandlersChain.java:75)
    at org.apache.wink.server.handlers.AbstractHandlersChain.run(AbstractHandlersChain.java:60)
    at org.apache.wink.server.internal.RequestProcessor.handleRequestWithoutFaultBarrier(RequestProcessor.java:207)
    at org.apache.wink.server.internal.RequestProcessor.handleRequest(RequestProcessor.java:154)
    ... 4 more

Is this a known problem?

 

 

  • VB3C_Wendy_Raschke
    VB3C_Wendy_Raschke
    14 Posts

    Re: Wink exception when closing an IE10 browser session

    ‏2013-09-06T15:50:46Z  

    It looks like the root exception is thrown by the com.ibm.ws.tcpchannel.internal.WorkQueueManager.attemptIO() method, and unfortunately, that's code that I have no knowledge about. Are there any other nested exceptions? What's mysterious to me is the bit " at [internal classes]"--I wonder what the full call chain is.

     

    This IOException doesn't disrupt functionality, correct? An annoyance, but doesn't break your application?

  • yenlu
    yenlu
    3 Posts

    Re: Wink exception when closing an IE10 browser session

    ‏2013-09-06T16:34:54Z  

    It looks like the root exception is thrown by the com.ibm.ws.tcpchannel.internal.WorkQueueManager.attemptIO() method, and unfortunately, that's code that I have no knowledge about. Are there any other nested exceptions? What's mysterious to me is the bit " at [internal classes]"--I wonder what the full call chain is.

     

    This IOException doesn't disrupt functionality, correct? An annoyance, but doesn't break your application?

    Wendy,

    That's the full exception trace that I see. It does not disrupt functionality as far as I can tell.

  • VB3C_Wendy_Raschke
    VB3C_Wendy_Raschke
    14 Posts

    Re: Wink exception when closing an IE10 browser session

    ‏2013-09-10T14:34:10Z  

    Hi, Yen, I'm sorry, I'm at a total loss about the channel framework component. I did a developer's attention to this post, so I hope he or someone else on his team will comment here soon.

     

    One thing I find curious is, that the stack trace shows that another incoming request is made when the error occurs. Which is weird, because you are just closing your browser when that happens. I'm not sure why a browser close would trigger a request--I'm assuming that you haven't implemented your application to do that, correct?

  • yenlu
    yenlu
    3 Posts

    Re: Wink exception when closing an IE10 browser session

    ‏2013-09-10T14:56:52Z  

    Hi, Yen, I'm sorry, I'm at a total loss about the channel framework component. I did a developer's attention to this post, so I hope he or someone else on his team will comment here soon.

     

    One thing I find curious is, that the stack trace shows that another incoming request is made when the error occurs. Which is weird, because you are just closing your browser when that happens. I'm not sure why a browser close would trigger a request--I'm assuming that you haven't implemented your application to do that, correct?

    Wendy,

    That's a possibility that recently crossed my mind. I've asked the developers to see if there are any close handlers that might be doing this.

    Thanks,

    Yen Lu