[jboss-user] [JBoss Seam] - Re: AbstractResource subclass gets ClientAbortException writ
JakeC
do-not-reply at jboss.com
Fri Nov 2 20:10:20 EDT 2007
I think you're on to something. I got a bit farther.
16:45:52,234 INFO [Util] 0: Writing 16,384 bytes of 57,567 to buffer
| 16:45:52,250 INFO [Util] 0: Writing 16,384 bytes of 57,567 to buffer
| 16:45:52,250 INFO [Util] 0: Writing 16,384 bytes of 57,567 to buffer
| 16:45:52,265 INFO [Util] 0: Writing 8,415 bytes of 57,567 to buffer
| 16:45:52,296 ERROR [Util] Error serving file: <path to file>
It got to the very last buffer full. In my code I added the following line after the rest of the response.set***() methods:
response.setContentLength((int)file.length());
Do I need to take the size of the header into account or something? It is called setContentLength().
Whoops, I take it back. I tried a larger file, and still get an exception way before the end of the file.
17:04:08,390 INFO [Util] 0: Writing 16,384 bytes of 265,076 to buffer
| 17:04:08,390 INFO [Util] 0: Writing 16,384 bytes of 265,076 to buffer
| 17:04:08,390 INFO [Util] 0: Writing 16,384 bytes of 265,076 to buffer
| 17:04:47,796 ERROR [Util] Error serving file: <path to file>
Any other ideas? I know that it works if the file is small enough, because it is used to display thumbnail images in another part of our app.
17:10:15,062 INFO [Util] 0: Writing 5,082 bytes of 5,082 to buffer
This is driving me nuts! It is absolutely essential we get our app working under SSL. :-(
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4101496#4101496
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4101496
More information about the jboss-user
mailing list