users@glassfish.java.net

JSF1064 error with Internet Explorer only

From: <forums_at_java.net>
Date: Sat, 17 Sep 2011 08:54:47 -0500 (CDT)

Hello,

I'm not sure if this is the right forum. During programming a JSF
application, I encountered an issue. I selected this forum because I am using
Mojarra JSF 2.1 which is part of the Glassfish project, as far as I
understand.

When I set javax.faces.PROJECT_STAGE=Development and call my locally running
web application with my Internet Explorer 9, I see often (but not always) the
following error message in the log file:

FINE Received request
/myApp/javax.faces.resource/jsf.js.jsf?ln=javax.faces&stage=Development
WARNING JSF1064: Ressource jsf.js aus Bibliothek javax.faces kann nicht
gefunden oder bedient werden.
(Resource jsf.js from library javax.faces not found)
WARNING ClientAbortException: java.net.SocketException: Connection reset by
peer: socket write error

The script jsf.js is included in the library and it works fine as I can
easily see because my websites are fully functional and the internet explorer
shows the whole script in its internal script debugger. The explorer does not
log any script related error message. Using Firefox, the problem does not
occur, and it also does not occur (or simply is not logged) if I set
javax.faces.PROJECT_STAGE=Production.

As far as I understand the stack trace, the problem is caused by the Internet
Explorer, which seems to request the script and then does not accept the file
content. I just like to know If I am right or if there is an error in my
application that I can fix. StackTrace:

WARNING ClientAbortException: java.net.SocketException: Connection reset by
peer: socket write error
at
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:369)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:437)
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:351)
at
org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:392)
at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:381)
at
org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:93)
at
java.nio.channels.Channels$WritableByteChannelImpl.write(Channels.java:458)
at
com.sun.faces.application.resource.ResourceHandlerImpl.handleResourceRequest(ResourceHandlerImpl.java:283)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:407)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at de.butterfly.bfAlarm.ui.RequestFilter.doFilter(RequestFilter.java:128)
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:240)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:399)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:317)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:204)
at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:311)
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.net.SocketException: Connection reset by peer: socket write
error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109)
at java.net.SocketOutputStream.write(SocketOutputStream.java:153)
at
org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:218)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:437)
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:351)
at
org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:243)
at
org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:119)
at
org.apache.coyote.http11.AbstractOutputBuffer.doWrite(AbstractOutputBuffer.java:190)
at org.apache.coyote.Response.doWrite(Response.java:533)
at
org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:364)
... 27 more

 


--
[Message sent by forum member 's.frings']
View Post: http://forums.java.net/node/844075