I think Yoav may have meant SESSIONS.ser.  I'm not aware
of a name change for that file.

Note that there is an easy way to inadvertently put a
"logger" into the session.  If a object being put in the
session tries to declare a static logger variable, but
leaves out the "static", then an "instance" logger is
declared instead and that object will "carry" it into
the session.  I don't how likely one of your classes
might be doing this, or due to a bug, some dependency
class is doing it.  I know from experience that a
missing "static" can be very hard to see sometimes.

HTH.

Cheers,
Larry

> -----Original Message-----
> From: Mark Shifman [mailto:[EMAIL PROTECTED] 
> Sent: Monday, March 22, 2004 4:03 PM
> To: Tomcat Users List
> Subject: Re: IOException while loading persisted sessions: 
> java.io.WriteAbortedException: writing aborted; 
> java.io.NotSerializableException: 
> org.apache.commons.logging.impl.Log4JLogger
> 
> 
> Shapira, Yoav wrote:
> 
> >Hi,
> >OK, so we don't see the Logger being added as a session attribute.
> >Could it be a leftover from a previous version of your webapp? 
> >
> >If you stop tomcat, remove the session.cer file from under
> >$CATALINA_HOME/work, start tomcat, use your webapp (to 
> create sessions),
> >then do your WAR copy and restart, do you still get the error?
> >  
> >
> 
> I don't see any session.cer file anywhere. $CATALINA_HOME/work, or 
> anywhere along the path
> work/Catalina/localhost/chartms
> 
> >Yoav Shapira
> >Millennium Research Informatics
> >
> >
> >  
> >
> >>-----Original Message-----
> >>From: Mark Shifman [mailto:[EMAIL PROTECTED]
> >>Sent: Monday, March 22, 2004 3:44 PM
> >>To: Tomcat Users List
> >>Subject: Re: IOException while loading persisted sessions:
> >>java.io.WriteAbortedException: writing aborted;
> >>java.io.NotSerializableException:
> >>org.apache.commons.logging.impl.Log4JLogger
> >>
> >>Shapira, Yoav wrote:
> >>
> >>    
> >>
> >>>Hi,
> >>>
> >>>
> >>>
> >>>      
> >>>
> >>>>This is a very simple application in struts.  My only session
> >>>>
> >>>>
> >>>>        
> >>>>
> >>>attributes
> >>>
> >>>
> >>>      
> >>>
> >>>>are a String , an Integer ,  an ArrayList  and a String[].  the
> >>>>        
> >>>>
> >struts
> >  
> >
> >>>>form beans, are
> >>>>DyanValidatorForm which are serializable.
> >>>>
> >>>>
> >>>>        
> >>>>
> >>>OK.  Write a simple HttpSessionAttributeListener that just 
> logs in the
> >>>attributeAdded method the type of the attribute that's been added.
> >>>      
> >>>
> >See
> >  
> >
> >>>if that proves the logger is being added to your session.  
> If it does,
> >>>we'll have to figure out what's doing the adding.  If it doesn't,
> >>>      
> >>>
> >forget
> >  
> >
> >>>this whole approach ;)
> >>>
> >>>
> >>>      
> >>>
> >>the output of the listener follows -- the last context
> >>destroyed/initialized follows a copy of the war to webapps.  I have
> >>    
> >>
> >also
> >  
> >
> >>copied the first few lines
> >>of the error dump:
> >>$ grep -e "\[/chartms\]"
> >>'/home/jakarta-tomcat-5.0.19/logs/localhost_log.2004-03-22.txt'
> >>2004-03-22 15:27:43 StandardContext[/chartms]SessionListener:
> >>contextInitialized()
> >>2004-03-22 15:28:13 StandardContext[/chartms]SessionListener:
> >>contextDestroyed()
> >>2004-03-22 15:29:05 StandardContext[/chartms]SessionListener:
> >>contextInitialized()
> >>2004-03-22 15:29:10 StandardContext[/chartms]SessionListener:
> >>contextDestroyed()
> >>2004-03-22 15:29:26 StandardContext[/chartms]SessionListener:
> >>contextInitialized()
> >>2004-03-22 15:29:33 StandardContext[/chartms]SessionListener:
> >>attributeAdded('12967DF686489F6E34AC3035F55BFE18', 
> 'tempfiles', '[]')
> >>2004-03-22 15:29:33 StandardContext[/chartms]SessionListener:
> >>attributeAdded('12967DF686489F6E34AC3035F55BFE18', 'chartnum', '0')
> >>2004-03-22 15:29:33 StandardContext[/chartms]SessionListener:
> >>attributeAdded('12967DF686489F6E34AC3035F55BFE18', 'UploadForm',
> >>'[EMAIL PROTECTED]')
> >>2004-03-22 15:33:18 StandardContext[/chartms]SessionListener:
> >>attributeAdded('12967DF686489F6E34AC3035F55BFE18',
> >>'org.apache.struts.action.LOCALE', 'en_US')
> >>2004-03-22 15:33:18 StandardContext[/chartms]SessionListener:
> >>attributeReplaced('12967DF686489F6E34AC3035F55BFE18', 'UploadForm',
> >>'[EMAIL PROTECTED]')
> >>2004-03-22 15:33:18 StandardContext[/chartms]SessionListener:
> >>attributeReplaced('12967DF686489F6E34AC3035F55BFE18', 'tempfiles',
> >>'[E-L-013H7-DWARD-OVCA132-F1-R1.TXT]')
> >>2004-03-22 15:33:18 StandardContext[/chartms]SessionListener:
> >>attributeAdded('12967DF686489F6E34AC3035F55BFE18', 'ChartForm',
> >>'DynaActionForm[dynaClass=ChartForm,nthpoint=,ms_files={},of
fset=,xpixe
> >>    
> >>
> >l=,y
> >  
> >
> >>pixel=]')
> >>2004-03-22 15:33:22 StandardContext[/chartms]SessionListener:
> >>attributeReplaced('12967DF686489F6E34AC3035F55BFE18', 'ChartForm',
> >>'DynaActionForm[dynaClass=ChartForm,nthpoint=,ms_files={},of
fset=,xpixe
> >>    
> >>
> >l=,y
> >  
> >
> >>pixel=]')
> >>2004-03-22 15:33:23 StandardContext[/chartms]SessionListener:
> >>attributeReplaced('12967DF686489F6E34AC3035F55BFE18', 
> 'chartnum', '0')
> >>2004-03-22 15:33:23 StandardContext[/chartms]SessionListener:
> >>attributeAdded('12967DF686489F6E34AC3035F55BFE18', 'rechart_files',
> >>'[Ljava.lang.String;@6147d9')
> >>2004-03-22 15:33:24 StandardContext[/chartms]SessionListener:
> >>attributeAdded('12967DF686489F6E34AC3035F55BFE18', 'RechartForm',
> >>'DynaActionForm[dynaClass=RechartForm,xlow=,nthpoint=,xhigh=
> ,yrange=<NU
> >>    
> >>
> >LL>,
> >  
> >
> >>ylow=,yhigh=,offset=,xpixel=,xrange=<NULL>,ypixel=]')
> >>2004-03-22 15:35:10 StandardContext[/chartms]SessionListener:
> >>attributeReplaced('12967DF686489F6E34AC3035F55BFE18', 'RechartForm',
> >>'DynaActionForm[dynaClass=RechartForm,xlow=,nthpoint=,xhigh=
> ,yrange=<NU
> >>    
> >>
> >LL>,
> >  
> >
> >>ylow=,yhigh=,offset=,xpixel=,xrange=<NULL>,ypixel=]')
> >>2004-03-22 15:35:11 StandardContext[/chartms]SessionListener:
> >>attributeReplaced('12967DF686489F6E34AC3035F55BFE18', 
> 'chartnum', '1')
> >>2004-03-22 15:35:47 StandardContext[/chartms]SessionListener:
> >>contextDestroyed()
> >>2004-03-22 15:35:48 StandardContext[/chartms]SessionListener:
> >>contextInitialized()
> >>
> >>
> >>ERROR 2004-03-22 15:35:48,737 doLoad(StandardManager.java:481)
> >>IOException while loading persisted sessions:
> >>java.io.WriteAbortedException: writing aborted;
> >>java.io.NotSerializableException:
> >>org.apache.commons.logging.impl.Log4JLogger
> >>java.io.WriteAbortedException: writing aborted;
> >>java.io.NotSerializableException:
> >>org.apache.commons.logging.impl.Log4JLogger
> >>   at
> >>    
> >>
> >java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1278)
> >  
> >
> >>   at
> >>java.io.ObjectInputStream.defaultReadFields(ObjectInputStrea
> m.java:1845
> >>    
> >>
> >)
> >  
> >
> >>   at
> >>java.io.ObjectInputStream.readSerialData(ObjectInputStream.j
> ava:1769)
> >>   at
> >>java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStre
> am.java:164
> >>    
> >>
> >6)
> >  
> >
> >>   at
> >>    
> >>
> >java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
> >  
> >
> >>   at 
> java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
> >>   at
> >>org.apache.catalina.session.StandardSession.readObject(Stand
> ardSession.
> >>    
> >>
> >java
> >  
> >
> >>:1376)
> >>   at
> >>org.apache.catalina.session.StandardSession.readObjectData(S
> tandardSess
> >>    
> >>
> >ion.
> >  
> >
> >>java:920)
> >>   at
> >>org.apache.catalina.session.StandardManager.doLoad(StandardM
> anager.java
> >>    
> >>
> >:463
> >  
> >
> >>)
> >>   at
> >>org.apache.catalina.session.StandardManager.load(StandardMan
> ager.java:3
> >>    
> >>
> >90)
> >  
> >
> >>   at
> >>org.apache.catalina.session.StandardManager.start(StandardMa
> nager.java:
> >>    
> >>
> >704)
> >  
> >
> >>   at
> >>org.apache.catalina.core.ContainerBase.setManager(ContainerB
> ase.java:54
> >>    
> >>
> >2)
> >  
> >
> >>   at
> >>org.apache.catalina.startup.ContextConfig.managerConfig(Cont
> extConfig.j
> >>    
> >>
> >ava:
> >  
> >
> >>348)
> >>
> >>
> >>    
> >>
> >>>Yoav Shapira
> >>>
> >>>
> >>>
> >>>This e-mail, including any attachments, is a confidential business
> >>>      
> >>>
> >>communication, and may contain information that is confidential,
> >>proprietary and/or privileged.  This e-mail is intended only for the
> >>individual(s) to whom it is addressed, and may not be saved, copied,
> >>printed, disclosed or used by anyone else.  If you are not the(an)
> >>    
> >>
> >intended
> >  
> >
> >>recipient, please immediately delete this e-mail from your computer
> >>    
> >>
> >system
> >  
> >
> >>and notify the sender.  Thank you.
> >>    
> >>
> >>>-----------------------------------------------------------
> ----------
> >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>For additional commands, e-mail: 
> [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >>>      
> >>>
> >>--
> >>Mark Shifman MD. Ph.D.
> >>Yale Center for Medical Informatics
> >>Phone (203)737-5219
> >>[EMAIL PROTECTED]
> >>
> >>
> >>------------------------------------------------------------
> ---------
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>    
> >>
> >
> >
> >  
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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

Reply via email to