RE: Tomcat clustering and NotSerializableException

2005-03-02 Thread Sng Wee Jim
:[EMAIL PROTECTED] Sent: Wed 3/2/2005 12:17 PM To: Tomcat Users List Subject: RE: Tomcat clustering and NotSerializableException > From: Sng Wee Jim [mailto:[EMAIL PROTECTED] > Subject: RE: Tomcat clustering and NotSerializableException > > Indeed a reference to the HttpServletRequest i

RE: Tomcat clustering and NotSerializableException

2005-03-01 Thread Caldarale, Charles R
> From: Sng Wee Jim [mailto:[EMAIL PROTECTED] > Subject: RE: Tomcat clustering and NotSerializableException > > Indeed a reference to the HttpServletRequest is held in my Struts form > (session-scope). The problem went away once I added transient to the > attribute. How

RE: Tomcat clustering and NotSerializableException

2005-03-01 Thread Richard Mixon (qwest)
List Subject: RE: Tomcat clustering and NotSerializableException Thanks to all that replied. Indeed a reference to the HttpServletRequest is held in my Struts form (session-scope). The problem went away once I added transient to the attribute. My concern is when the session is replicated t

RE: Tomcat clustering and NotSerializableException

2005-03-01 Thread Sng Wee Jim
null? - Jim -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 01, 2005 11:47 PM To: Tomcat Users List Subject: Re: Tomcat clustering and NotSerializableException As Richard says, don't store your request in the session, not a good

Re: Tomcat clustering and NotSerializableException

2005-03-01 Thread Filip Hanik - Dev Lists
As Richard says, don't store your request in the session, not a good idea. Richard Mixon (qwest) wrote: CoyoteRequestFacade is the first element in the stack trace - it is not the session stored object that is causing the NotSerializableException. As I said in my prior posting, to resolve

RE: Tomcat clustering and NotSerializableException

2005-03-01 Thread Caldarale, Charles R
> From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] > Subject: RE: Tomcat clustering and NotSerializableException > > CoyoteRequestFacade is the first element in the stack trace - > it is not the session stored object that is causing the > NotSerializableExcepti

RE: Tomcat clustering and NotSerializableException

2005-03-01 Thread Richard Mixon (qwest)
CoyoteRequestFacade is the first element in the stack trace - it is not the session stored object that is causing the NotSerializableException. As I said in my prior posting, to resolve this issue you need to: 1) Identify each object that you are explicitly storing in the session and make sure

RE: Tomcat clustering and NotSerializableException

2005-02-28 Thread Caldarale, Charles R
> From: Sng Wee Jim [mailto:[EMAIL PROTECTED] > Subject: RE: Tomcat clustering and NotSerializableException > > But the stacktrace says > > java.io.NotSerializableException: > org.apache.coyote.tomcat5.CoyoteRequestFacade > > Since CoyoteRequestFacade is a tomcat clas

RE: Tomcat clustering and NotSerializableException

2005-02-28 Thread Sng Wee Jim
, February 28, 2005 11:13 PM To: Tomcat Users List Subject: RE: Tomcat clustering and NotSerializableException As Matt said its probably your applications objects. When we switched to clustering I was surprised at how many of my session objects I needed to add serializable to. But it was easy work and

RE: Tomcat clustering and NotSerializableException

2005-02-28 Thread Randall Svancara
-Original Message- From: Dale, Matt [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 11:04 AM To: Tomcat Users List Subject: RE: Tomcat clustering and NotSerializableException These objects will replicate to other instances when ALL objects in the session are serializable. I suspect

RE: Tomcat clustering and NotSerializableException

2005-02-28 Thread Dale, Matt
15:14 To: Tomcat Users List Subject: RE: Tomcat clustering and NotSerializableException But do those session objects replicate to the other tomcat instances??? I have been testing session objects that implement java.io.serializable and I have not yet been able to see these objects when fail over

RE: Tomcat clustering and NotSerializableException

2005-02-28 Thread Randall Svancara
, 2005 8:55 AM To: Tomcat Users List Subject: RE: Tomcat clustering and NotSerializableException Randall, I know that session replication works in Tomcat 5.5.7 and it may also works in 5.0.x (no experience). But to get failover restart to work properly (i.e. restarting a failed node) I had to use Tomcat

RE: Tomcat clustering and NotSerializableException

2005-02-28 Thread Richard Mixon (qwest)
? > > Thanks, > > Randall > > -Original Message- > From: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] > Sent: Monday, February 28, 2005 8:13 AM > To: Tomcat Users List > Subject: RE: Tomcat clustering and NotSerializableException > > As Matt said its probably

RE: Tomcat clustering and NotSerializableException

2005-02-28 Thread Randall Svancara
Mixon (qwest) [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 8:13 AM To: Tomcat Users List Subject: RE: Tomcat clustering and NotSerializableException As Matt said its probably your applications objects. When we switched to clustering I was surprised at how many of my session objects I

RE: Tomcat clustering and NotSerializableException

2005-02-28 Thread Richard Mixon (qwest)
our session that > does not implement the serializable interface. > > Ta > Matt > > -Original Message- > From: Sng Wee Jim [mailto:[EMAIL PROTECTED] > Sent: 28 February 2005 09:21 > To: tomcat-user@jakarta.apache.org > Subject: Tomcat clustering and No

RE: Tomcat clustering and NotSerializableException

2005-02-28 Thread Dale, Matt
NotSerializableException Hi, I am using Tomcat 5.0.28 on MS Win2k server. After I have uncommented the "Cluster" element in server.xml, I get the following exceptions on the tomcat console for some actions that are using displaytag. Is it a tomcat bug, since org.apache.coyo

Tomcat clustering and NotSerializableException

2005-02-28 Thread Sng Wee Jim
Hi, I am using Tomcat 5.0.28 on MS Win2k server. After I have uncommented the "Cluster" element in server.xml, I get the following exceptions on the tomcat console for some actions that are using displaytag. Is it a tomcat bug, since org.apache.coyote.tomcat5.CoyoteRequestFacade is involv

Re: NotSerializableException: StandardSessionFacade

2003-12-03 Thread Andoni
ich are in Session and application scope. Unfortunately the error message is still there. ;-( Andoni. - Original Message - From: "Shapira, Yoav" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Wednesday, December 03, 2003 2:0

RE: NotSerializableException: StandardSessionFacade

2003-12-03 Thread Shapira, Yoav
Howdy, Don't put a Session as a session attribute. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Andoni [mailto:[EMAIL PROTECTED] >Sent: Wednesday, December 03, 2003 7:20 AM >To: Tomcat Users List >Subject: NotSerializableException: Standa

NotSerializableException: StandardSessionFacade

2003-12-03 Thread Andoni
I managed to get around the other problem with DBCP by removing the implements Serializable from the connection pooling bean. Now I am left with a problem I can't solve though as I cannot affect the: org.apache.catalina.session.StandardSessionFacade Each of my beans have an init() method that t

NotSerializableException - DBCP

2003-12-03 Thread Andoni
Hello, I have not been using the "shutdown" command when restarting Tomcat in Windows but now that I have I get exception traces for all my Session beans on shutting down and then again for each of two connection objects when starting up. Is this simply that the DBCP package's PoolableConnectio

Re: NotSerializableException on webapp restart

2003-06-10 Thread Boris Folgmann
Shapira, Yoav schrieb: > You're right. If you want to do it this way, you have to take care of > serializing and de-serializing your listener yourself on your webapp's > startup and shutdown (e.g. by using a ServletContextListener). IMHO sessionCreated() shoud be called for each session that is

RE: NotSerializableException on webapp restart

2003-06-10 Thread Shapira, Yoav
Howdy, >I tried it this way. But the problem is, that since the listener itself is >not in a session context, the Map is empty when the application is >reloaded. You're right. If you want to do it this way, you have to take care of serializing and de-serializing your listener yourself on your w

Re: NotSerializableException on webapp restart

2003-06-10 Thread Boris Folgmann
Shapira, Yoav schrieb: > It depends on how much work you want to do. It's not a good idea for > your to depend on implementation details of the Catalina session façade. > However, the session ID is a primitive (String) which is serializable. > So instead of storing a reference to the session, sto

RE: NotSerializableException on webapp restart

2003-06-05 Thread Shapira, Yoav
Howdy, >Yes, you are right. For tracking all logged in users I store a reference to > every users HttpSession in his user object which is itself in the session >context. > >HttpSession is org.apache.catalina.session.StandardSessionFacade in tomcat >and this class does not implement java.io.Seria

Re: NotSerializableException on webapp restart

2003-06-05 Thread Boris Folgmann
Shapira, Yoav schrieb: > Howdy, > You're probably putting non-Serializable objects as session > attributes... Yes, you are right. For tracking all logged in users I store a reference to every users HttpSession in his user object which is itself in the session context. HttpSession is org.apache.

RE: NotSerializableException on webapp restart

2003-06-04 Thread Shapira, Yoav
Howdy, You're probably putting non-Serializable objects as session attributes... Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Boris Folgmann [mailto:[EMAIL PROTECTED] >Sent: Wednesday, June 04, 2003 6:14 AM >To: Tomcat Users List >Subject: NotS

NotSerializableException on webapp restart

2003-06-04 Thread Boris Folgmann
Hi! When I restart tomcat 4.1 I get this exeption for my webapp in the logfile. The app works though. Am I doing something wrong concerning java.io.Serializable and the objects in session contexts?? 2003-06-04 12:01:41 StandardManager[/i] IOException while loading persisted sessions: java.io.Writ

RE: NotSerializableException

2002-08-20 Thread Luminous Heart
Yoav Shapira > Millennium ChemInformatics > > > >-Original Message- > >From: Luminous Heart > [mailto:[EMAIL PROTECTED]] > >Sent: Tuesday, August 20, 2002 11:11 AM > >To: Tomcat Users List > >Subject: RE: NotSerializableException > > > >I

RE: NotSerializableException

2002-08-20 Thread Shapira, Yoav
only certain (serializable) parts from it, e.g. the folder name or whatever. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Luminous Heart [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, August 20, 2002 11:11 AM >To: Tomcat Users List >Subject: RE: NotSerializa

RE: NotSerializableException

2002-08-20 Thread Luminous Heart
ra > Millennium ChemInformatics > > > >-Original Message- > >From: Luminous Heart > [mailto:[EMAIL PROTECTED]] > >Sent: Tuesday, August 20, 2002 10:42 AM > >To: Tomcat Users List > >Subject: NotSerializableException > > > >I am not asking tomcat to se

Re: NotSerializableException

2002-08-20 Thread Luminous Heart
Hi Andreas, I know quite enough about persistence, I am a senior java developer myself. But the issue is with tomcat handling persistence. Should I isolate my imap variables and declare them transient so tomcat will not write them to its storage? --- Andreas Probst <[EMAIL PROTECTED]> wrote: > Ob

Re: NotSerializableException

2002-08-20 Thread Tom Oinn
Create a container object, which is serializable and put a member reference within it to your IMAPSession, marking this as transient. public class MyContainer implements Serializable { public transient IMAPSession mySession; } Tom Luminous Heart wrote: > I only add the imap session to the Ht

RE: NotSerializableException

2002-08-20 Thread Shapira, Yoav
Hi, What code are you using to read to/from an IMAP server? Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Luminous Heart [mailto:[EMAIL PROTECTED]] >Sent: Tuesday, August 20, 2002 10:42 AM >To: Tomcat Users List >Subject: NotSerializableException >

Re: NotSerializableException

2002-08-20 Thread Luminous Heart
I only add the imap session to the HttpSession. But I do not write it to disk. What is the best way to stop this behavior? --- Peter Davison <[EMAIL PROTECTED]> wrote: > It looks like Tomcat is trying to serialize a > session. Are you storing an > IMAPFolder object in the session? > > It kacks

Re: NotSerializableException

2002-08-20 Thread Andreas Probst
Obviously it does serialization. It loads a session from persistent storage. Serialization is a means to make objects persistent. Having written that I must confess I don't know about sessions in Tomcat... > I am not asking tomcat to serialize my app, nor do I > have any serialization in this

Re: NotSerializableException

2002-08-20 Thread Peter Davison
It looks like Tomcat is trying to serialize a session. Are you storing an IMAPFolder object in the session? It kacks because com.sun.mail.imap.IMAPFolder is not serializable. P. On Tue, 20 Aug 2002 07:41:48 -0700 (PDT) Luminous Heart <[EMAIL PROTECTED]> wrote: > I am not asking tomcat to ser

NotSerializableException

2002-08-20 Thread Luminous Heart
I am not asking tomcat to serialize my app, nor do I have any serialization in this application. Why am I getting this new exception? 2002-08-19 21:06:27 StandardManager[/NoPassApp] Exception loading sessions from persistent storage java.io.WriteAbortedException: writing aborted; java.io.NotSeri

NotSerializableException

2002-03-22 Thread Talbi Aziz
Hi everyone, i use tomcat3.3, i got the following Exceotion when i was trying to Serialize an Object that is a subclass from Hashtable, this Object use the java.lang.reflect.Constructor. the Exception : ERROR [Error was occured while writing the Dispatcher into DataBase ]: java.io.NotSerializabl