tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 37350] New: - Problems serving large (50k+) static images on linux
Date Fri, 04 Nov 2005 03:07:45 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37350>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37350

           Summary: Problems serving large (50k+) static images on linux
           Product: Tomcat 5
           Version: 5.5.12
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: Catalina
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: pcasey@earthlink.net


I have a web app that spits out dynamic pages that include within them links to
static icons and whatnot. A typical <img> looks like:

<img src="./img/help/newsurvey.gif" />

These all work perfectly on Tomcat 5.5.9 on Windows XP.

When I move the war over to my linux box with Tomcat 5.5.12, however, all the
<img> tags that point to images over about 50k break. I don't get a broken link,
I don't get a half an image, I just get ... nothing.

When I look in catalina.out, I see what I think is the error message, but I
can't figure out the cause.

Again, small images server just fine. Big ones cause errors, but only when
references via links as I described.

Also noteworthy is that Tomcat appears unable to serve the image even if I
navigate to it via the url directly e.g. typing:

http://p500:9090/Corinna/img/help/navigatemain.png

Results in the same error.

The error I get the *first* time I go after the resource. 

ClientAbortException:  java.net.SocketException: Broken pipe
        at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffe
r.java:366)
        at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:403)
        at org.apache.catalina.connector.OutputBuffer.doFlush(OutputBuffer.java:
314)
        at org.apache.catalina.connector.OutputBuffer.flush(OutputBuffer.java:29
3)
        at org.apache.catalina.connector.CoyoteOutputStream.flush(CoyoteOutputSt
ream.java:97)
        at org.apache.tapestry.request.ResponseOutputStream.forceFlush(ResponseO
utputStream.java:149)
        at org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java
:945)
        at org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.j
ava:198)
        at servlet.MyServlet.doService(MyServlet.java:167)
        at org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:
159)
        at servlet.MyServlet.doGet(MyServlet.java:141)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:868)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:663)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo
int.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol
lowerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:684)
        at java.lang.Thread.run(Thread.java:595)

The error I get *subsequent times*:

java.lang.NoSuchMethodError:
org.apache.naming.resources.ResourceAttributes.getCanonicalPath()Ljava/lang/String;
	org.apache.catalina.servlets.DefaultServlet.checkSendfile(DefaultServlet.java:1521)
	org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:839)
	org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:348)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message