You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "Howard W. Smith, Jr." <sm...@gmail.com> on 2013/11/09 03:28:31 UTC
[TomEE/MyFaces 2.1.13] SocketTimeoutException thrown by
ResourceHandlerImpl handleResourceRequest
Today (this evening), the exception below occurred twice for the same
(mobile) enduser within 1 to 2 hours' time. In the past, while using
previous releases of MyFaces 2.1.8+, I have seen the handleResourceRequest
error, but the stacktrace was not in the log file.
Can the stacktrace be eliminated as in previous versions of MyFaces? was
this added, recently, to log the stracktrace of this exception or
certain/selected exceptions? Or should I catch this exception in my Filter
when chain.doFilter(req, res) is executed?
gist[1] has the two occurrences of the stacktrace in the log file.
Nov 08, 2013 4:06:05 PM org.apache.myfaces.application.ResourceHandlerImpl
handleResourceRequest
SEVERE: Error trying to load resource jquery/jquery-plugins.js with library
primefaces :null
ClientAbortException: java.net.SocketTimeoutException
at
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:413)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:480)
at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:359)
at org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:309)
at
org.apache.catalina.connector.CoyoteOutputStream.close(CoyoteOutputStream.java:108)
at java.util.zip.DeflaterOutputStream.close(Unknown Source)
at
org.omnifaces.servlet.GzipHttpServletResponse$GzipThresholdOutputStream.close(GzipHttpServletResponse.java:229)
at
org.omnifaces.io.ResettableBufferedOutputStream.close(ResettableBufferedOutputStream.java:101)
at
org.omnifaces.servlet.HttpServletResponseOutputWrapper$1.close(HttpServletResponseOutputWrapper.java:100)
at
org.apache.myfaces.application.ResourceHandlerImpl.handleResourceRequest(ResourceHandlerImpl.java:421)
at
javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:62)
at
org.primefaces.application.PrimeResourceHandler.handleResourceRequest(PrimeResourceHandler.java:132)
at
javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:62)
at
org.primefaces.mobile.application.PrimeResourceHandler.handleResourceRequest(PrimeResourceHandler.java:119)
at
javax.faces.application.ResourceHandlerWrapper.handleResourceRequest(ResourceHandlerWrapper.java:62)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:191)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:98)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.omnifaces.filter.GzipResponseFilter.doFilter(GzipResponseFilter.java:149)
at org.omnifaces.filter.HttpFilter.doFilter(HttpFilter.java:75)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
<snip>
at pf.LoginFilter.doFilter(LoginFilter.java:241)
</snip>
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at
org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1721)
at
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1679)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketTimeoutException
at
org.apache.tomcat.util.net.NioBlockingSelector.write(NioBlockingSelector.java:127)
at
org.apache.tomcat.util.net.NioSelectorPool.write(NioSelectorPool.java:174)
at
org.apache.coyote.http11.InternalNioOutputBuffer.writeToSocket(InternalNioOutputBuffer.java:163)
at
org.apache.coyote.http11.InternalNioOutputBuffer.flushBuffer(InternalNioOutputBuffer.java:242)
at
org.apache.coyote.http11.InternalNioOutputBuffer.addToBB(InternalNioOutputBuffer.java:213)
at
org.apache.coyote.http11.InternalNioOutputBuffer.access$000(InternalNioOutputBuffer.java:41)
at
org.apache.coyote.http11.InternalNioOutputBuffer$SocketOutputBuffer.doWrite(InternalNioOutputBuffer.java:268)
at
org.apache.coyote.http11.filters.IdentityOutputFilter.doWrite(IdentityOutputFilter.java:84)
at
org.apache.coyote.http11.AbstractOutputBuffer.doWrite(AbstractOutputBuffer.java:192)
at org.apache.coyote.Response.doWrite(Response.java:517)
at
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:408)
... 46 more
[1] https://gist.github.com/smithh032772/7380812
Re: [TomEE/MyFaces 2.1.13] SocketTimeoutException thrown by
ResourceHandlerImpl handleResourceRequest
Posted by "Howard W. Smith, Jr." <sm...@gmail.com>.
FOLLOWUP:
org.apache.myfaces.application.ResourceHandlerImpl.level = OFF
is working great, thanks again.
On Tue, Jan 7, 2014 at 11:03 PM, Howard W. Smith, Jr. <
smithh032772@gmail.com> wrote:
> Thanks Leonardo for the response. Per javadoc[1], OFF is available as you
> stated. I will give that a try.
>
> [1]
> http://docs.oracle.com/javase/6/docs/api/java/util/logging/Level.html#OFF
>
>
>
> On Tue, Jan 7, 2014 at 10:54 PM, Leonardo Uribe <lu...@gmail.com> wrote:
>
>> Hi Howard
>>
>> I think it should work with:
>>
>> org.apache.myfaces.application.ResourceHandlerImpl.level = OFF
>>
>> regards,
>>
>> Leonardo
>>
>> 2014/1/7 Howard W. Smith, Jr. <sm...@gmail.com>:
>> > Leonardo,
>> >
>> > On Tue, Nov 12, 2013 at 10:45 PM, Leonardo Uribe <lu...@gmail.com>
>> wrote:
>> >
>> >> The exception
>> >> was added in the log on:
>> >>
>> >> https://issues.apache.org/jira/browse/MYFACES-3736
>> >>
>> >> I have checked it and there is no evidence of an error from MyFaces
>> side.
>> >>
>> >> Maybe we can do something to hide the exception, printing it only if
>> >> Level.FINE is set.
>> >>
>> >
>> > In the meanwhile, what is the best way to prevent this exception from
>> > appearing in my (tomee+) log file? can i disable it via
>> logging.properties
>> > via the following?
>> >
>> > org.apache.myfaces.application.ResourceHandlerImpl.level = WARNING
>>
>
>
Re: [TomEE/MyFaces 2.1.13] SocketTimeoutException thrown by
ResourceHandlerImpl handleResourceRequest
Posted by "Howard W. Smith, Jr." <sm...@gmail.com>.
Thanks Leonardo for the response. Per javadoc[1], OFF is available as you
stated. I will give that a try.
[1]
http://docs.oracle.com/javase/6/docs/api/java/util/logging/Level.html#OFF
On Tue, Jan 7, 2014 at 10:54 PM, Leonardo Uribe <lu...@gmail.com> wrote:
> Hi Howard
>
> I think it should work with:
>
> org.apache.myfaces.application.ResourceHandlerImpl.level = OFF
>
> regards,
>
> Leonardo
>
> 2014/1/7 Howard W. Smith, Jr. <sm...@gmail.com>:
> > Leonardo,
> >
> > On Tue, Nov 12, 2013 at 10:45 PM, Leonardo Uribe <lu...@gmail.com>
> wrote:
> >
> >> The exception
> >> was added in the log on:
> >>
> >> https://issues.apache.org/jira/browse/MYFACES-3736
> >>
> >> I have checked it and there is no evidence of an error from MyFaces
> side.
> >>
> >> Maybe we can do something to hide the exception, printing it only if
> >> Level.FINE is set.
> >>
> >
> > In the meanwhile, what is the best way to prevent this exception from
> > appearing in my (tomee+) log file? can i disable it via
> logging.properties
> > via the following?
> >
> > org.apache.myfaces.application.ResourceHandlerImpl.level = WARNING
>
Re: [TomEE/MyFaces 2.1.13] SocketTimeoutException thrown by
ResourceHandlerImpl handleResourceRequest
Posted by Leonardo Uribe <lu...@gmail.com>.
Hi Howard
I think it should work with:
org.apache.myfaces.application.ResourceHandlerImpl.level = OFF
regards,
Leonardo
2014/1/7 Howard W. Smith, Jr. <sm...@gmail.com>:
> Leonardo,
>
> On Tue, Nov 12, 2013 at 10:45 PM, Leonardo Uribe <lu...@gmail.com> wrote:
>
>> The exception
>> was added in the log on:
>>
>> https://issues.apache.org/jira/browse/MYFACES-3736
>>
>> I have checked it and there is no evidence of an error from MyFaces side.
>>
>> Maybe we can do something to hide the exception, printing it only if
>> Level.FINE is set.
>>
>
> In the meanwhile, what is the best way to prevent this exception from
> appearing in my (tomee+) log file? can i disable it via logging.properties
> via the following?
>
> org.apache.myfaces.application.ResourceHandlerImpl.level = WARNING
Re: [TomEE/MyFaces 2.1.13] SocketTimeoutException thrown by
ResourceHandlerImpl handleResourceRequest
Posted by "Howard W. Smith, Jr." <sm...@gmail.com>.
Leonardo,
On Tue, Nov 12, 2013 at 10:45 PM, Leonardo Uribe <lu...@gmail.com> wrote:
> The exception
> was added in the log on:
>
> https://issues.apache.org/jira/browse/MYFACES-3736
>
> I have checked it and there is no evidence of an error from MyFaces side.
>
> Maybe we can do something to hide the exception, printing it only if
> Level.FINE is set.
>
In the meanwhile, what is the best way to prevent this exception from
appearing in my (tomee+) log file? can i disable it via logging.properties
via the following?
org.apache.myfaces.application.ResourceHandlerImpl.level = WARNING
Re: [TomEE/MyFaces 2.1.13] SocketTimeoutException thrown by
ResourceHandlerImpl handleResourceRequest
Posted by "Howard W. Smith, Jr." <sm...@gmail.com>.
Correct. Not a MyFaces or Tomcat/TomEE issue, but hiding the exception...
sounds good to me. :)
On Tue, Nov 12, 2013 at 10:45 PM, Leonardo Uribe <lu...@gmail.com> wrote:
> Hi
>
> Thanks to provide the link of the discussion in tomcat list. The exception
> was added in the log on:
>
> https://issues.apache.org/jira/browse/MYFACES-3736
>
> I have checked it and there is no evidence of an error from MyFaces side.
>
> Maybe we can do something to hide the exception, printing it only if
> Level.FINE is set.
>
> regards,
>
> Leonardo Uribe
>
>
>
> 2013/11/11 Howard W. Smith, Jr. <sm...@gmail.com>
>
> > FYI,
> >
> > On Sun, Nov 10, 2013 at 8:29 AM, Howard W. Smith, Jr. <
> > smithh032772@gmail.com> wrote:
> >
> > > more on this topic...
> >
> >
> > Discussed on the tomcat list:
> >
> > Avoiding/Handling SocketTimeoutException(s) when web application serving
> > resources to mobile clients[1]
> >
> >
> > [1]
> >
> >
> http://tomcat.10.x6.nabble.com/Avoiding-Handling-SocketTimeoutException-s-when-web-application-serving-resources-to-mobile-clients-td5007700.html
> >
>
Re: [TomEE/MyFaces 2.1.13] SocketTimeoutException thrown by
ResourceHandlerImpl handleResourceRequest
Posted by Leonardo Uribe <lu...@gmail.com>.
Hi
Thanks to provide the link of the discussion in tomcat list. The exception
was added in the log on:
https://issues.apache.org/jira/browse/MYFACES-3736
I have checked it and there is no evidence of an error from MyFaces side.
Maybe we can do something to hide the exception, printing it only if
Level.FINE is set.
regards,
Leonardo Uribe
2013/11/11 Howard W. Smith, Jr. <sm...@gmail.com>
> FYI,
>
> On Sun, Nov 10, 2013 at 8:29 AM, Howard W. Smith, Jr. <
> smithh032772@gmail.com> wrote:
>
> > more on this topic...
>
>
> Discussed on the tomcat list:
>
> Avoiding/Handling SocketTimeoutException(s) when web application serving
> resources to mobile clients[1]
>
>
> [1]
>
> http://tomcat.10.x6.nabble.com/Avoiding-Handling-SocketTimeoutException-s-when-web-application-serving-resources-to-mobile-clients-td5007700.html
>
Re: [TomEE/MyFaces 2.1.13] SocketTimeoutException thrown by
ResourceHandlerImpl handleResourceRequest
Posted by "Howard W. Smith, Jr." <sm...@gmail.com>.
FYI,
On Sun, Nov 10, 2013 at 8:29 AM, Howard W. Smith, Jr. <
smithh032772@gmail.com> wrote:
> more on this topic...
Discussed on the tomcat list:
Avoiding/Handling SocketTimeoutException(s) when web application serving
resources to mobile clients[1]
[1]
http://tomcat.10.x6.nabble.com/Avoiding-Handling-SocketTimeoutException-s-when-web-application-serving-resources-to-mobile-clients-td5007700.html
Re: [TomEE/MyFaces 2.1.13] SocketTimeoutException thrown by
ResourceHandlerImpl handleResourceRequest
Posted by "Howard W. Smith, Jr." <sm...@gmail.com>.
more on this topic...
On Fri, Nov 8, 2013 at 9:28 PM, Howard W. Smith, Jr. <smithh032772@gmail.com
> wrote:
> Today (this evening), the exception below occurred twice for the same
> (mobile) enduser within 1 to 2 hours' time. In the past, while using
> previous releases of MyFaces 2.1.8+, I have seen the handleResourceRequest
> error, but the stacktrace was not in the log file.
>
> Can the stacktrace be eliminated as in previous versions of MyFaces? was
> this added, recently, to log the stracktrace of this exception or
> certain/selected exceptions? Or should I catch this exception in my Filter
> when chain.doFilter(req, res) is executed?
>
this morning, I recognized more occurrences of this exception in log files,
and it is still related to connection between server and 'mobile client'.
User was attempting to login from mobile iPad via an internal wireless
phone connection. please see all below and advise if MyFaces can do
anything about this, or if I should approach tomcat user list about socket
timeout exception(s), or the best way I should approach this type of
scenario-and-exception. I updated gist[1], too.
localhost_access_log shows the follow (please note the filenames and time
difference between the 1, 2, and 3rd lines below)
x.x.x.x - - [09/Nov/2013:13:08:25 -0500] "GET
/webapp/javax.faces.resource/primefaces.css.jsf?ln=primefaces&v=4.0.3
HTTP/1.1" 200 10036
x.x.x.x - - [09/Nov/2013:13:09:00 -0500] "GET
/webapp/javax.faces.resource/jquery/jquery.js.jsf?ln=primefaces&v=4.0.3
HTTP/1.1" 200 -
x.x.x.x - - [09/Nov/2013:13:09:00 -0500] "GET
/webapp/javax.faces.resource/jquery/jquery-plugins.js.jsf?ln=primefaces&v=4.0.3
HTTP/1.1" 200 -
tomcat7-stderr
Nov 09, 2013 1:09:00 PM
org.apache.myfaces.application.ResourceHandlerImpl
handleResourceRequest
SEVERE: Error trying to load resource jquery/jquery.js with library
primefaces :null
ClientAbortException: java.net.SocketTimeoutException
at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:413)
Caused by: java.net.SocketTimeoutException
at org.apache.tomcat.util.net.NioBlockingSelector.write(NioBlockingSelector.java:127)
at org.apache.tomcat.util.net.NioSelectorPool.write(NioSelectorPool.java:174)
at org.apache.coyote.http11.InternalNioOutputBuffer.writeToSocket(InternalNioOutputBuffer.java:163)
Nov 09, 2013 1:09:00 PM
org.apache.myfaces.application.ResourceHandlerImpl
handleResourceRequest
SEVERE: Error trying to load resource jquery/jquery-plugins.js with
library primefaces :null
ClientAbortException: java.net.SocketTimeoutException
Caused by: java.net.SocketTimeoutException
at org.apache.tomcat.util.net.NioBlockingSelector.write(NioBlockingSelector.java:127)
at org.apache.tomcat.util.net.NioSelectorPool.write(NioSelectorPool.java:174)
at org.apache.coyote.http11.InternalNioOutputBuffer.writeToSocket(InternalNioOutputBuffer.java:163)
[1] https://gist.github.com/smithh032772/7380812