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={},offset=,xpixel=,ypixel=]')
2004-03-22 15:33:22 StandardContext[/chartms]SessionListener: attributeReplaced('12967DF686489F6E34AC3035F55BFE18', 'ChartForm', 'DynaActionForm[dynaClass=ChartForm,nthpoint=,ms_files={},offset=,xpixel=,ypixel=]')
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=<NULL>,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=<NULL>,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(ObjectInputStream.java:1845)
at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
at org.apache.catalina.session.StandardSession.readObject(StandardSession.java:1376)
at org.apache.catalina.session.StandardSession.readObjectData(StandardSession.java:920)
at org.apache.catalina.session.StandardManager.doLoad(StandardManager.java:463)
at org.apache.catalina.session.StandardManager.load(StandardManager.java:390)
at org.apache.catalina.session.StandardManager.start(StandardManager.java:704)
at org.apache.catalina.core.ContainerBase.setManager(ContainerBase.java:542)
at org.apache.catalina.startup.ContextConfig.managerConfig(ContextConfig.java: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]



Reply via email to