Re: REPOST: NEED HELP URGENT:: internet explorer nullifies session on open new window

2001-11-13 Thread David Hamilton

Would that be a P3P issue?

If so, you need to define P3P policy descriptors on your site...

david


- Original Message -
From: "Martin van den Bemt" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, November 13, 2001 3:54 PM
Subject: RE: REPOST: NEED HELP URGENT:: internet explorer nullifies session
on open new window


> It seems that ie 6 isn't accepting cookies by default (collegue of mine is
> also using ie 6 and had the same problem, even in 1 window). He set a
> certain option and everything was working again.  Can you confirm that
that
> is the default, else everyone must start using url rewriting to keep ie6
> users happy
>
> Mvgr,
> Martin
>
> > -Original Message-
> > From: Jim Urban [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, November 13, 2001 4:21 PM
> > To: Tomcat Users List
> > Subject: RE: REPOST: NEED HELP URGENT:: internet explorer nullifies
> > session on open new window
> >
> >
> > Our application does the same thing (openning child browser windows and
> > closing them) and we have no problems with IE 5.5.  We have not tried
I.E.
> > 6.0 yet, so I can't comment on that.  We are running Tomcat 4.0 on Win
NT
> > and 2K.
> >
> > Jim
> >
> > -Original Message-
> > From: Amit Kelkar [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, November 13, 2001 9:01 AM
> > To: Tomcat Users List
> > Subject: REPOST: NEED HELP URGENT:: internet explorer nullifies session
> > on open new window
> >
> >
> >
> >
> > -Original Message-
> > From: Amit Kelkar [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, 13 November 2001 6:41 PM
> > To: Tomcat Users List
> > Subject: internet explorer nullifies session on open new window
> >
> > The application we are coding requires a new window to be opened. This
new
> > window may just contain a JavaScript calendar or a JSP page
> > (dispatched by a
> > servlet).
> >
> > We have been using Internet Explorer 5 till recently to run the
> > application
> > and this has been fine. But we recently upgraded to I.E. 5.5 and 6.0. In
> > both of the new versions, when a new window is opened and then closed,
the
> > session in the original window gets nullified.
> >
> > For example, there are places where I need to see a calendar, so
> > I open this
> > calendar in a new window, I use the calendar, then I close the calendar
> > window. I then press a button (in the main window) to go to
> > another page in
> > my application, where all the session values are now displayed as null.
> > Subsequent system error statements show that the session is indeed null.
> >
> > I am not sure this is a tomcat problem or a IE problem (probably a IE
> > problem), but was wondering if anybody has experienced anything
> > similar and
> > if they have solved the problem...
> >
> > Note: I am using tomcat 4.01
> >
> > Thanks much in advance,
> >
> >
> > Amit Kelkar
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
> >
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>
>
>
>
>




--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: REPOST: NEED HELP URGENT:: internet explorer nullifies session on open new window

2001-11-13 Thread David Hamilton

P3P = Platform for Privacy Preferences
W3C spec for what sites do with your personal info.

IIRC, default option for IE6 will not accept cookies (other that session
scope ones) if a site does not have a P3P descriptor on your site.
Obviously this can be changed, but since most IE users never get round to
changing the default preferences...

More info on setting your site to be P3P compliant:
http://www.w3.org/P3P/usep3p.html

HTH
david

- Original Message -
From: "Martin van den Bemt" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, November 13, 2001 4:42 PM
Subject: RE: REPOST: NEED HELP URGENT:: internet explorer nullifies session
on open new window


> I don't know what p3p is ... Enlighten me ;))
>
>
> Mvgr,
> Martin
>
> > -Original Message-
> > From: David Hamilton [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, November 13, 2001 5:45 PM
> > To: Tomcat Users List
> > Subject: Re: REPOST: NEED HELP URGENT:: internet explorer nullifies
> > session on open new window
> >
> >
> > Would that be a P3P issue?
> >
> > If so, you need to define P3P policy descriptors on your site...
> >
> > david
> >
> >
> > - Original Message -
> > From: "Martin van den Bemt" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Tuesday, November 13, 2001 3:54 PM
> > Subject: RE: REPOST: NEED HELP URGENT:: internet explorer
> > nullifies session
> > on open new window
> >
> >
> > > It seems that ie 6 isn't accepting cookies by default (collegue
> > of mine is
> > > also using ie 6 and had the same problem, even in 1 window). He set a
> > > certain option and everything was working again.  Can you confirm that
> > that
> > > is the default, else everyone must start using url rewriting to keep
ie6
> > > users happy
> > >
> > > Mvgr,
> > > Martin
> > >
> > > > -Original Message-
> > > > From: Jim Urban [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, November 13, 2001 4:21 PM
> > > > To: Tomcat Users List
> > > > Subject: RE: REPOST: NEED HELP URGENT:: internet explorer nullifies
> > > > session on open new window
> > > >
> > > >
> > > > Our application does the same thing (openning child browser
> > windows and
> > > > closing them) and we have no problems with IE 5.5.  We have not
tried
> > I.E.
> > > > 6.0 yet, so I can't comment on that.  We are running Tomcat 4.0 on
Win
> > NT
> > > > and 2K.
> > > >
> > > > Jim
> > > >
> > > > -Original Message-
> > > > From: Amit Kelkar [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, November 13, 2001 9:01 AM
> > > > To: Tomcat Users List
> > > > Subject: REPOST: NEED HELP URGENT:: internet explorer
> > nullifies session
> > > > on open new window
> > > >
> > > >
> > > >
> > > >
> > > > -Original Message-
> > > > From: Amit Kelkar [mailto:[EMAIL PROTECTED]]
> > > > Sent: Tuesday, 13 November 2001 6:41 PM
> > > > To: Tomcat Users List
> > > > Subject: internet explorer nullifies session on open new window
> > > >
> > > > The application we are coding requires a new window to be opened.
This
> > new
> > > > window may just contain a JavaScript calendar or a JSP page
> > > > (dispatched by a
> > > > servlet).
> > > >
> > > > We have been using Internet Explorer 5 till recently to run the
> > > > application
> > > > and this has been fine. But we recently upgraded to I.E. 5.5
> > and 6.0. In
> > > > both of the new versions, when a new window is opened and then
closed,
> > the
> > > > session in the original window gets nullified.
> > > >
> > > > For example, there are places where I need to see a calendar, so
> > > > I open this
> > > > calendar in a new window, I use the calendar, then I close
> > the calendar
> > > > window. I then press a button (in the main window) to go to
> > > > another page in
> > > > my application, where all the session values are now
> > displayed as null.
> > > > Subsequent system error statements show that the session is
> > indeed null.
> > > >
> > > > I 

Re: Best JDK For Tomcat ?

2001-11-28 Thread David Hamilton

There is also a danger that, when you are not using the results of variable
assignments or increments/decrements, the compiler or VM may choose to
optimise the code out completely!!

david

- Original Message -
From: "Laurent Michenaud" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 28, 2001 5:54 PM
Subject: Best JDK For Tomcat ?


Hi,

I would like you to comment these results, tell me about your
experiences, and tell me about which jdk is best for a Tomcat...

I'm testing the different jdk with a litte Test.java

Here's the following execution time :

sun jdk1.2.2_rev9 => 16 seconds
sun jdk1.3.1_01 => 2 seconds
ibm jdk1.1.8 => more than 2 minutes, it didnot finish.
ibm jdk1.3 => 3 seconds



Here the Test.java i've done :
( u may think about revelent instructions to add in it, please
tell me about ):

public class Test
{

public static void main( String args[] )
{
   Integer i ;
   String t ;
   for( int cpt = 0 ; cpt < 50 ; cpt++ )
   {
  cpt++ ;
  cpt-- ;
  t = new String("12345");
  i = new Integer("12345");
  i.toString();
   }
}
}






Michenaud Laurent
- Adeuza -
[ Développeur Web - Administrateur Réseau

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 










--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: java.lan.OutOfMemoryError

2002-03-22 Thread David Hamilton

> 'java.lan.OutOfMemoryError'

Coo - is your whole LAN out of memory?  Wow!  (Sorry couldn't resist.)

Seriously:  You using JDK 1.4?  We found that TC 3.2.3 with JDK 1.4 was
giving us a recursive IllegalStateException which locked up the server and
eventually fell over.

Reason:  Any cancelled or closed HTTP request would apparently cause this
problem.  Seems that this causes the output stream to be closed and under
JDK 1.4 any attempt to write to it causes an IllegalStateException.

Closer investigation showed that the error handling in 3.2.3 was fairly
junky, (lots of empty exception handlers, hopefully addressed in 3.3/4.0
series) and it tries to handle by passing it to the error servlet, which
tries to write out the error, which gives an IllegalStateException, which
redirects to the error servlet, etc.

Solution:  TC 4.01 does not exhibit this behaviour, so we upgraded.

Hope that helps
david


- Original Message -
From: "Robert Douglass" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, March 22, 2002 12:06 PM
Subject: RE: java.lan.OutOfMemoryError


> I'm using Tomcat 3.2.3, by the way.
>
> -Original Message-
> From: Robert Douglass [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 22, 2002 1:01 PM
> To: Tomcat Users List
> Subject: RE: java.lan.OutOfMemoryError
>
>
> I also get this error:
>
> 2002-03-22 12:59:29 - Ctx( /RobertDouglass ): IllegalStateException in: R(
> /Robe
> rtDouglass + /img/Beetle5.jpg + null) Current state = FLUSHED, new state =
> CODIN
> G
>
> but once again, only when I try to access it from the link on my webpage,
> not when I run localhost:8080
> -Original Message-
> From: Robert Douglass [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 22, 2002 12:53 PM
> To: Tomcat Group
> Subject: java.lan.OutOfMemoryError
>
>
> Hi all,
> When I run my webapp from localhost, everything seems to be fine. When I
put
> a link to in on my website and try running accessing it from there, I get:
> 2002-03-22 12:47:12 - Ctx( /RobertDouglass ): Exception in: R(
> /RobertDouglass +
>  /img/Beetle8.jpg + null) - java.lang.OutOfMemoryError
> and Tomcat eventually crashes, but not before my data is corrupted.
>
> I also get the following error:
> 2002-03-20 22:27:01 - Ctx( /RobertDouglass ): IOException in: R(
> /RobertDouglass
> + /img/Beetle6.jpg + null) Software caused connection abort: socket write
> error
>
> where do I start looking to fix this?
>
> Thanks,
> Robert Douglass
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: java.lan.OutOfMemoryError

2002-03-22 Thread David Hamilton

You sure?

I only ask because if you are I have to got back to my team member who
reported 4.01 fixed it and
get him to
a) double check with 4.01 and
b) find if 4.03 is different.

david

- Original Message -
From: "Vincent Lambert" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Friday, March 22, 2002 6:09 PM
Subject: RE : java.lan.OutOfMemoryError


I encounter similar problem and i am running TC4.0.3 with JDK 1.4.

-Message d'origine-
De : David Hamilton [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi 22 mars 2002 18:59
À : Tomcat Users List; [EMAIL PROTECTED]
Objet : Re: java.lan.OutOfMemoryError


> 'java.lan.OutOfMemoryError'

Coo - is your whole LAN out of memory?  Wow!  (Sorry couldn't resist.)

Seriously:  You using JDK 1.4?  We found that TC 3.2.3 with JDK 1.4 was
giving us a recursive IllegalStateException which locked up the server
and eventually fell over.

Reason:  Any cancelled or closed HTTP request would apparently cause
this problem.  Seems that this causes the output stream to be closed and
under JDK 1.4 any attempt to write to it causes an
IllegalStateException.

Closer investigation showed that the error handling in 3.2.3 was fairly
junky, (lots of empty exception handlers, hopefully addressed in 3.3/4.0
series) and it tries to handle by passing it to the error servlet, which
tries to write out the error, which gives an IllegalStateException,
which redirects to the error servlet, etc.

Solution:  TC 4.01 does not exhibit this behaviour, so we upgraded.

Hope that helps
david


- Original Message -
From: "Robert Douglass" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, March 22, 2002 12:06 PM
Subject: RE: java.lan.OutOfMemoryError


> I'm using Tomcat 3.2.3, by the way.
>
> -Original Message-
> From: Robert Douglass [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 22, 2002 1:01 PM
> To: Tomcat Users List
> Subject: RE: java.lan.OutOfMemoryError
>
>
> I also get this error:
>
> 2002-03-22 12:59:29 - Ctx( /RobertDouglass ): IllegalStateException
> in: R( /Robe rtDouglass + /img/Beetle5.jpg + null) Current state =
> FLUSHED, new state = CODIN
> G
>
> but once again, only when I try to access it from the link on my
> webpage, not when I run localhost:8080 -Original Message-
> From: Robert Douglass [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 22, 2002 12:53 PM
> To: Tomcat Group
> Subject: java.lan.OutOfMemoryError
>
>
> Hi all,
> When I run my webapp from localhost, everything seems to be fine. When

> I
put
> a link to in on my website and try running accessing it from there, I
> get: 2002-03-22 12:47:12 - Ctx( /RobertDouglass ): Exception in:

> /RobertDouglass +  /img/Beetle8.jpg + null) -
> java.lang.OutOfMemoryError and Tomcat eventually crashes, but not
> before my data is corrupted.
>
> I also get the following error:
> 2002-03-20 22:27:01 - Ctx( /RobertDouglass ): IOException in:

> /RobertDouglass
> + /img/Beetle6.jpg + null) Software caused connection abort: socket
> + write
> error
>
> where do I start looking to fix this?
>
> Thanks,
> Robert Douglass
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>
>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>


--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>




Re: RE : java.lan.OutOfMemoryError

2002-03-22 Thread David Hamilton

That was my evaluation.  The error handling looked distinctly fragile to me.
To be honest, it looks like Sun have tightened up their state-checking with
the nio package (good) and exposed some weaknesses in the tomcat code (bad).

But then I have strong opinions on error handling (i.e. you should define a
policy for it in your coding standard).  It seems too often that it's just
left to individual coders to make arbitrary decisions on which errors ignore
and which to escalate... seems to be a frequent cause of 'unexpected'
behaviour!

david

- Original Message -
From: "Jeff Larsen" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, March 22, 2002 7:04 PM
Subject: Re: RE : java.lan.OutOfMemoryError


> OK, so I missed the part where they found that it was a Tomcat
> problem. But I stand by my point on avoiding first edition JDK
> releases. And I'm not necessarily flaming Sun here. If I didn't
> think Java was a godsend, I wouldn't be reading this list. It's just
> the reality of software that new major releases have greater potential
> for bugs. That's why they have maintenance releases. In general, I avoid
> ALL vendor's x.0 releases unless they have features I absolutely need. As
> far as I'm concerned, JDK 1.4.0 is not a "must have".
>
> My $0.02
>



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: java.lan.OutOfMemoryError

2002-03-22 Thread David Hamilton

I know that IllegalStateException with TC 4.0x was reported on this list a
few weeks ago - but IIRC the evaluation of it indicated that it was due to
another reason than the one I described below (was it servlet forwarding, or
something like that?)

Is your similar problem occurring recursively, or just the once?

david

- Original Message -
From: "David Hamilton" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, March 22, 2002 7:55 PM
Subject: Re: java.lan.OutOfMemoryError


> You sure?
>
> I only ask because if you are I have to got back to my team member who
> reported 4.01 fixed it and
> get him to
> a) double check with 4.01 and
> b) find if 4.03 is different.
>
> david
>
> - Original Message -
> From: "Vincent Lambert" <[EMAIL PROTECTED]>
> To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> Sent: Friday, March 22, 2002 6:09 PM
> Subject: RE : java.lan.OutOfMemoryError
>
>
> I encounter similar problem and i am running TC4.0.3 with JDK 1.4.
>
> -Message d'origine-
> De : David Hamilton [mailto:[EMAIL PROTECTED]]
> Envoyé : vendredi 22 mars 2002 18:59
> À : Tomcat Users List; [EMAIL PROTECTED]
> Objet : Re: java.lan.OutOfMemoryError
>
>
> > 'java.lan.OutOfMemoryError'
>
> Coo - is your whole LAN out of memory?  Wow!  (Sorry couldn't resist.)
>
> Seriously:  You using JDK 1.4?  We found that TC 3.2.3 with JDK 1.4 was
> giving us a recursive IllegalStateException which locked up the server
> and eventually fell over.
>
> Reason:  Any cancelled or closed HTTP request would apparently cause
> this problem.  Seems that this causes the output stream to be closed and
> under JDK 1.4 any attempt to write to it causes an
> IllegalStateException.
>
> Closer investigation showed that the error handling in 3.2.3 was fairly
> junky, (lots of empty exception handlers, hopefully addressed in 3.3/4.0
> series) and it tries to handle by passing it to the error servlet, which
> tries to write out the error, which gives an IllegalStateException,
> which redirects to the error servlet, etc.
>
> Solution:  TC 4.01 does not exhibit this behaviour, so we upgraded.
>
> Hope that helps
> david
>
>
> - Original Message -
> From: "Robert Douglass" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, March 22, 2002 12:06 PM
> Subject: RE: java.lan.OutOfMemoryError
>
>
> > I'm using Tomcat 3.2.3, by the way.
> >
> > -Original Message-
> > From: Robert Douglass [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, March 22, 2002 1:01 PM
> > To: Tomcat Users List
> > Subject: RE: java.lan.OutOfMemoryError
> >
> >
> > I also get this error:
> >
> > 2002-03-22 12:59:29 - Ctx( /RobertDouglass ): IllegalStateException
> > in: R( /Robe rtDouglass + /img/Beetle5.jpg + null) Current state =
> > FLUSHED, new state = CODIN
> > G
> >
> > but once again, only when I try to access it from the link on my
> > webpage, not when I run localhost:8080 -Original Message-
> > From: Robert Douglass [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, March 22, 2002 12:53 PM
> > To: Tomcat Group
> > Subject: java.lan.OutOfMemoryError
> >
> >
> > Hi all,
> > When I run my webapp from localhost, everything seems to be fine. When
>
> > I
> put
> > a link to in on my website and try running accessing it from there, I
> > get: 2002-03-22 12:47:12 - Ctx( /RobertDouglass ): Exception in:
>
> > /RobertDouglass +  /img/Beetle8.jpg + null) -
> > java.lang.OutOfMemoryError and Tomcat eventually crashes, but not
> > before my data is corrupted.
> >
> > I also get the following error:
> > 2002-03-20 22:27:01 - Ctx( /RobertDouglass ): IOException in:
>
> > /RobertDouglass
> > + /img/Beetle6.jpg + null) Software caused connection abort: socket
> > + write
> > error
> >
> > where do I start looking to fix this?
> >
> > Thanks,
> > Robert Douglass
> >
> >
> > --
> > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > For additional commands: <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> >
> >
> > --
> > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> > For additional commands: <mailto:[EMAIL PROTECTED]>
> > Troubles with the list: <mailto:[EMAIL PROTECTED]>
> >
> >
> > --
> > To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> >

Re: java.lan.OutOfMemoryError

2002-03-22 Thread David Hamilton

Kind of like this? ;-)

[DEBUG,EmbeddedTomcatServiceSX] 2002-03-22 21:15:25 - Ctx( /financity ):
IllegalStateException in: R( /financity + /fintools/networth.jsp + null)
Current state = FLUSHED, new state = CODING
[DEBUG,EmbeddedTomcatServiceSX] 2002-03-22 21:15:25 - Ctx( /financity ):
IllegalStateException in: R( /financity + /fintools/networth.jsp + null)
Current state = FLUSHED, new state = CODING
[DEBUG,EmbeddedTomcatServiceSX] 2002-03-22 21:15:25 - Ctx( /financity ):
IllegalStateException in: R( /financity + /fintools/networth.jsp + null)
Current state = FLUSHED, new state = CODING

+ 3,765 others!!!

I did think about modifying the TC code to bail the error handling process
in the event of the IllegalStateException, but then set a Junior Developer
to try other TC versions.  His report is that this does not happen in 4.01.
We haven't rolled out the change for retesting yet, hence my interest in the
observation that it may occur in 4.03.

Think it's time I went home for the weekend!

david


- Original Message -
From: "Robert Douglass" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, March 22, 2002 8:58 PM
Subject: RE: java.lan.OutOfMemoryError


> The problem occurs repeatedly. It handles light traffic alright, but as
soon
> as it has to handle more than one or two page requests per second, the
error
> log overflows. That is very likely why it is out of memory. When I shut
> Tomcat down, the error log needs another MINUTE or two to display all of
the
> errors in the console window! There is, however, usually no discernable
> problem in the application itself. From the client's point of view, it is
> business as usual. You can see some code (and get some Duke Dollars) on
the
> forum site at Sun:
> http://forum.java.sun.com/thread.jsp?forum=45&thread=233298
>
> -Original Message-
> From: David Hamilton [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 22, 2002 9:17 PM
> To: Tomcat Users List
> Subject: Re: java.lan.OutOfMemoryError
>
>
> I know that IllegalStateException with TC 4.0x was reported on this list a
> few weeks ago - but IIRC the evaluation of it indicated that it was due to
> another reason than the one I described below (was it servlet forwarding,
or
> something like that?)
>
> Is your similar problem occurring recursively, or just the once?
>
> david
>
> - Original Message -
> From: "David Hamilton" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, March 22, 2002 7:55 PM
> Subject: Re: java.lan.OutOfMemoryError
>
>
> > You sure?
> >
> > I only ask because if you are I have to got back to my team member who
> > reported 4.01 fixed it and
> > get him to
> > a) double check with 4.01 and
> > b) find if 4.03 is different.
> >
> > david
> >
> > - Original Message -
> > From: "Vincent Lambert" <[EMAIL PROTECTED]>
> > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > Sent: Friday, March 22, 2002 6:09 PM
> > Subject: RE : java.lan.OutOfMemoryError
> >
> >
> > I encounter similar problem and i am running TC4.0.3 with JDK 1.4.
> >
> > -Message d'origine-
> > De : David Hamilton [mailto:[EMAIL PROTECTED]]
> > Envoyé : vendredi 22 mars 2002 18:59
> > À : Tomcat Users List; [EMAIL PROTECTED]
> > Objet : Re: java.lan.OutOfMemoryError
> >
> >
> > > 'java.lan.OutOfMemoryError'
> >
> > Coo - is your whole LAN out of memory?  Wow!  (Sorry couldn't resist.)
> >
> > Seriously:  You using JDK 1.4?  We found that TC 3.2.3 with JDK 1.4 was
> > giving us a recursive IllegalStateException which locked up the server
> > and eventually fell over.
> >
> > Reason:  Any cancelled or closed HTTP request would apparently cause
> > this problem.  Seems that this causes the output stream to be closed and
> > under JDK 1.4 any attempt to write to it causes an
> > IllegalStateException.
> >
> > Closer investigation showed that the error handling in 3.2.3 was fairly
> > junky, (lots of empty exception handlers, hopefully addressed in 3.3/4.0
> > series) and it tries to handle by passing it to the error servlet, which
> > tries to write out the error, which gives an IllegalStateException,
> > which redirects to the error servlet, etc.
> >
> > Solution:  TC 4.01 does not exhibit this behaviour, so we upgraded.
> >
> > Hope that helps
> > david
> >
> >
> > - Original Message -
> > From: "Robert Douglass" <[EMAIL PROTECTED]>
>

Re: java.lan.OutOfMemoryError

2002-03-22 Thread David Hamilton

No, AFAIK it is because the IOException is handled differently from the
IllegalStateException:

The IllegalStateException causes a recursive error handling trap to occur
that gradually fills up the stack and blows the system.

Because you've got a number of requests happening it hides the fact that
IllegalStateException is happening repeatedly off the handling of one
(closed) request.  IMHO!

david

- Original Message -
From: "Robert Douglass" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, March 22, 2002 9:19 PM
Subject: RE: java.lan.OutOfMemoryError


> I changed the JDK back to 1.3.1 (which is what my class files were
compiled
> with) and the error message:
> 2002-03-22 22:17:32 - Ctx( /RobertDouglass ): IOException in: R( /Robert
>  + /img/Beetle4.gif + null) Connection aborted by peer: socket write err
>
> is still there every time it loads an image, but I cannot get the
> java.lang.OutOfMemoryError.
>
> Whether this is because more resources are available on my system, I don't
> know.



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: java.lan.OutOfMemoryError

2002-03-25 Thread David Hamilton

H.  I recant my heresy!

Tomcat is not to blame here.  I have just reminded myself that IOException
is the only checked exception thrown by OutputStream and
IllegalStateException is unchecked.  Given that the rule-of-thumb is 'use
unchecked exceptions only if the error cannot occur in a bug-free, correctly
running, well configured system', and that a closed socket can happen any
system, the JDK classes should be throwing IOException.

david

- Original Message -----
From: "David Hamilton" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, March 22, 2002 8:06 PM
Subject: Re: RE : java.lan.OutOfMemoryError


> That was my evaluation.  The error handling looked distinctly fragile to
me.
> To be honest, it looks like Sun have tightened up their state-checking
with
> the nio package (good) and exposed some weaknesses in the tomcat code
(bad).
>
> But then I have strong opinions on error handling (i.e. you should define
a
> policy for it in your coding standard).  It seems too often that it's just
> left to individual coders to make arbitrary decisions on which errors
ignore
> and which to escalate... seems to be a frequent cause of 'unexpected'
> behaviour!
>
> david
>



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>