wood burning stoves*
The moose likes Servlets and the fly likes IOException for image Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "IOException for image " Watch "IOException for image " New topic
Author

IOException for image

James Long
Greenhorn

Joined: Feb 02, 2001
Posts: 14
Hi, all:
I have a Java web application. in one page I have two picture
as the Title images. Whenever I run the application in the
TOMCAT3.2 server, in the console window I always see the following message:
2001-03-22 12:46:47 - Ctx( /MyWebApplication ): IOException in: R( /MyWebApplication + /images/MyWeb.gif + null) Connection aborted by peer: socket write error
2001-03-22 12:46:47 - Ctx( /MyWebApplication ): IOException in: R( /MyWebApplication + /images/Application.gif + null) Connection aborted by peer: socket write error
In fact these two images -- MyWeb.gif & Application.gif are shown on the web page with no problem. I don't know why the server give out these error message.
I put these two images into table and their size is reduced by
IMG object's attribute hight and width. The actual of the image size is bigger than the attributes I defined in the table.
Is it cause that message in the console?
<TD valign="bottom">
<IMG src="../images/MyWeb.gif" higth="26" width="160">   <IMG src="../images/Application.gif" higth="28" width="220">
</TD>
Can any one tell me how to take off these message?

Thank you in advance!

J. Long
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12769
    
    5
I heard the following explanation for those messages.
Supposedly, your browser has cached those images, but when the page is reloaded it sends a request, but then decides that it doesn't need the images after all and closes the socket.
I have no idea if this is the correct explanation, but thats what I heard.
James Long
Greenhorn

Joined: Feb 02, 2001
Posts: 14
William Brogden
Thank you for your explaination.

J. Long
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: IOException for image