RE: So can no one help with my Socket Write Error Question ?

2001-01-18 Thread Damian Penney

Thanks Hans, this seems to make the most sense. I was seeing this error on
multiple images, not just those in the root, and it would produce errors
like:

Ctx(  ): IOException in: R(  + images/ + /tomcat-power.gif = + null)
Connection aborted by peer: socket write error

Haven't checked but these images were probably cached (and I was using IE5)

Still annoying though, I'm wondering if I just use apache to serve all my
images this issue will go away (using tomcat as a standalone right now)

Again, thanks to all for their help.
Damian




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Hans
Bergsten
Sent: Wednesday, January 17, 2001 10:16 PM
To: [EMAIL PROTECTED]
Subject: Re: So can no one help with my Socket Write Error Question ?


"Damian Penney" [EMAIL PROTECTED] wrote:
 Just in case you missed it the first time :)

 Can anyone tell me why I'm getting this error in the command prompt window
?
 The page seems to load ok though. I'm running W2K Advanced Server, and
 tomcat 3.2.1

 2000-10-24 01:41:19 - Ctx(  ): IOException in: R(  + /tomcat-power.gif =
 + null) Connection aborted by peer: socket write error

 Thanks for your help,
 Damian

I have seen this when using Internet Explorer (IE) and the resource
is cached by IE. It seems like IE closes the connection before reading
the complete response in this case, so Tomcat complains that it
couldn't write the full response. I don't see a way to fix this at
the Tomcat end. It's irritating but nothing bad happens, so just
ignore it.

Hans
--
Hans Bergsten   [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
Author of JavaServer Pages (O'Reilly), http://TheJSPBook.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: So can no one help with my Socket Write Error Question ?

2001-01-18 Thread Craig O'Brien

Hey that's a good idea!  :0)

Could you please place these lines in your Servlet,

response.setHeader("Cache-Control", "no-cache");
response.setHeader("Pragma", "no-cache");

.and let us know what happens.

This would be helpful for others as I have seen this problem several times
on this mailing list.

Thanks,
Craig

-Original Message-
From: Damian Penney [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 18, 2001 10:57 AM
To: [EMAIL PROTECTED]
Subject: RE: So can no one help with my Socket Write Error Question ?


Thanks Hans, this seems to make the most sense. I was seeing this error on
multiple images, not just those in the root, and it would produce errors
like:

Ctx(  ): IOException in: R(  + images/ + /tomcat-power.gif = + null)
Connection aborted by peer: socket write error

Haven't checked but these images were probably cached (and I was using IE5)

Still annoying though, I'm wondering if I just use apache to serve all my
images this issue will go away (using tomcat as a standalone right now)

Again, thanks to all for their help.
Damian




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Hans
Bergsten
Sent: Wednesday, January 17, 2001 10:16 PM
To: [EMAIL PROTECTED]
Subject: Re: So can no one help with my Socket Write Error Question ?


"Damian Penney" [EMAIL PROTECTED] wrote:
 Just in case you missed it the first time :)

 Can anyone tell me why I'm getting this error in the command prompt window
?
 The page seems to load ok though. I'm running W2K Advanced Server, and
 tomcat 3.2.1

 2000-10-24 01:41:19 - Ctx(  ): IOException in: R(  + /tomcat-power.gif =
 + null) Connection aborted by peer: socket write error

 Thanks for your help,
 Damian

I have seen this when using Internet Explorer (IE) and the resource
is cached by IE. It seems like IE closes the connection before reading
the complete response in this case, so Tomcat complains that it
couldn't write the full response. I don't see a way to fix this at
the Tomcat end. It's irritating but nothing bad happens, so just
ignore it.

Hans
--
Hans Bergsten   [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
Author of JavaServer Pages (O'Reilly), http://TheJSPBook.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: So can no one help with my Socket Write Error Question ?

2001-01-17 Thread Hosahalli, RaghavendraX

Including myself, couple of guys are waiting for a response to this problem.
Hope somebody knows' what's wrong here! :-)

-Original Message-
From: Damian Penney [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 4:32 PM
To: [EMAIL PROTECTED]
Subject: So can no one help with my Socket Write Error Question ?


Just in case you missed it the first time :)

Can anyone tell me why I'm getting this error in the command prompt window ?
The page seems to load ok though. I'm running W2K Advanced Server, and
tomcat 3.2.1

2000-10-24 01:41:19 - Ctx(  ): IOException in: R(  + /tomcat-power.gif =
+ null) Connection aborted by peer: socket write error

Thanks for your help,
Damian


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: So can no one help with my Socket Write Error Question ?

2001-01-17 Thread Geoff Lane

Ok, I'll take a shot in the dark. :)
Is there a file called 'tomcat-power.gif' in your $TOMCAT_HOME/webapps
directory? If so, what is likely happening is that Tomcat is trying to
auto configure a context to /tomcat-power.gif - and since it can't
expand it or find a WEB-INF/web.xml inside it doesn't know what to do.

Just a guess, try moving the file and see if that changes anything.

Damian Penney wrote:
 
 Just in case you missed it the first time :)
 
 Can anyone tell me why I'm getting this error in the command prompt window ?
 The page seems to load ok though. I'm running W2K Advanced Server, and
 tomcat 3.2.1
 
 2000-10-24 01:41:19 - Ctx(  ): IOException in: R(  + /tomcat-power.gif =
 + null) Connection aborted by peer: socket write error
 
 Thanks for your help,
 Damian
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

-- 

Geoff Lane [EMAIL PROTECTED]
(650) 969-5000 x104

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: So can no one help with my Socket Write Error Question ?

2001-01-17 Thread Jose Ferrer

Damian,

This error drove us nuts. We were runnign tomcat 3.2.1 on a win98 machine. 
It was finally fixed when we installed the latest win98 service pack. Hope 
this helps.

Jose

On Wednesday, January 17, 2001 7:32 PM, Damian Penney 
[SMTP:[EMAIL PROTECTED]] wrote:
 Just in case you missed it the first time :)

 Can anyone tell me why I'm getting this error in the command prompt 
window ?
 The page seems to load ok though. I'm running W2K Advanced Server, and
 tomcat 3.2.1

 2000-10-24 01:41:19 - Ctx(  ): IOException in: R(  + /tomcat-power.gif =
 + null) Connection aborted by peer: socket write error

 Thanks for your help,
 Damian


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: So can no one help with my Socket Write Error Question ?

2001-01-17 Thread Craig O'Brien

I don't have much to offer, but...

Tomcat-power.gif is one of the images on the default
http://localhost:8080/index.html page. Are all of the pages and examples
working?

I think I saw something similar to this when I was experimenting with a
connection pool in a reloading directory after many changes to the
servlet.(50 threads in the pool)  Not sure though. (win2k server) I
basically overloaded tomcat and it got confused but with this application
only.  Everything else on the server continued with no problem.  I just
restarted tomcat and everything was fine.

I would fuss around with win2k's permissions and TCP/IP filtering first.
What are the permissions in the tomcat directory?

Good luck,
Craig




-Original Message-
From: Jose Ferrer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 5:17 PM
To: '[EMAIL PROTECTED]'
Subject: RE: So can no one help with my Socket Write Error Question ?


Damian,

This error drove us nuts. We were runnign tomcat 3.2.1 on a win98 machine.
It was finally fixed when we installed the latest win98 service pack. Hope
this helps.

Jose

On Wednesday, January 17, 2001 7:32 PM, Damian Penney
[SMTP:[EMAIL PROTECTED]] wrote:
 Just in case you missed it the first time :)

 Can anyone tell me why I'm getting this error in the command prompt
window ?
 The page seems to load ok though. I'm running W2K Advanced Server, and
 tomcat 3.2.1

 2000-10-24 01:41:19 - Ctx(  ): IOException in: R(  + /tomcat-power.gif =
 + null) Connection aborted by peer: socket write error

 Thanks for your help,
 Damian


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: So can no one help with my Socket Write Error Question ?

2001-01-17 Thread CPC Livelink Admin

This has been discussed many times on this mailing list.  I did a quick
search through my archive and found these two snippets, neither of which I
know anything about, but thought I would give them to you for your
amusement. These were from messages on December 8, 2000.

-- Snippet 1 
The dev lists suggest the following (that is being
considered for 3.3 dev)
http://w4.metronet.com/~wjm/tomcat/2000/Jul/msg00910.html

Commenting out the following lines -
sout.write( buffer, 0, bufferCount );
sout.flush();

in the method endHeaders() of HttpResponseAdapter.java

The above fix did eliminate errors of the type -
2000-12-08 11:39:27 - Ctx( /estore ): IOException in:
R( /estore + /template.js + null) Connection reset by
peer: socket write error

but the stack trace reported continued.

--

-- Snippet 2 -
I checked the code... it says ignore this message.
--


-Original Message-
From: Jose Ferrer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 8:17 PM
To: '[EMAIL PROTECTED]'
Subject: RE: So can no one help with my Socket Write Error Question ?


Damian,

This error drove us nuts. We were runnign tomcat 3.2.1 on a win98 machine.
It was finally fixed when we installed the latest win98 service pack. Hope
this helps.

Jose

On Wednesday, January 17, 2001 7:32 PM, Damian Penney
[SMTP:[EMAIL PROTECTED]] wrote:
 Just in case you missed it the first time :)

 Can anyone tell me why I'm getting this error in the command prompt
window ?
 The page seems to load ok though. I'm running W2K Advanced Server, and
 tomcat 3.2.1

 2000-10-24 01:41:19 - Ctx(  ): IOException in: R(  + /tomcat-power.gif =
 + null) Connection aborted by peer: socket write error

 Thanks for your help,
 Damian


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: So can no one help with my Socket Write Error Question ?

2001-01-17 Thread Pete Ehli

I agree -- delete the tomcat-power.gif -- and then check your server.xml
files context's to make sure everything is right.
You might comment out any context you added that is not stock or came with
the tomcat download.
-- Pete Ehli --

- Original Message -
From: "Geoff Lane" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 17, 2001 4:56 PM
Subject: Re: So can no one help with my Socket Write Error Question ?


 Ok, I'll take a shot in the dark. :)
 Is there a file called 'tomcat-power.gif' in your $TOMCAT_HOME/webapps
 directory? If so, what is likely happening is that Tomcat is trying to
 auto configure a context to /tomcat-power.gif - and since it can't
 expand it or find a WEB-INF/web.xml inside it doesn't know what to do.

 Just a guess, try moving the file and see if that changes anything.

 Damian Penney wrote:
 
  Just in case you missed it the first time :)
 
  Can anyone tell me why I'm getting this error in the command prompt
window ?
  The page seems to load ok though. I'm running W2K Advanced Server, and
  tomcat 3.2.1
 
  2000-10-24 01:41:19 - Ctx(  ): IOException in: R(  + /tomcat-power.gif =
  + null) Connection aborted by peer: socket write error
 
  Thanks for your help,
  Damian
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]

 --

 Geoff Lane [EMAIL PROTECTED]
 (650) 969-5000 x104

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




Re: So can no one help with my Socket Write Error Question ?

2001-01-17 Thread Hans Bergsten

"Damian Penney" [EMAIL PROTECTED] wrote:
 Just in case you missed it the first time :)
 
 Can anyone tell me why I'm getting this error in the command prompt window ?
 The page seems to load ok though. I'm running W2K Advanced Server, and
 tomcat 3.2.1
 
 2000-10-24 01:41:19 - Ctx(  ): IOException in: R(  + /tomcat-power.gif =
 + null) Connection aborted by peer: socket write error
 
 Thanks for your help,
 Damian

I have seen this when using Internet Explorer (IE) and the resource 
is cached by IE. It seems like IE closes the connection before reading 
the complete response in this case, so Tomcat complains that it 
couldn't write the full response. I don't see a way to fix this at
the Tomcat end. It's irritating but nothing bad happens, so just
ignore it.

Hans
-- 
Hans Bergsten   [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
Author of JavaServer Pages (O'Reilly), http://TheJSPBook.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]