tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luminous Heart <luminoushe...@yahoo.com>
Subject Re: NotSerializableException
Date Tue, 20 Aug 2002 14:49:33 GMT
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 <peterdavison@rogers.com> wrote:
> 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 <luminousheart@yahoo.com> wrote:
> 
> > 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.NotSerializableException:
> > com.sun.mail.imap.IMAPFolder
> >         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:1
> > 268)
> >         at
> >
>
org.apache.catalina.session.StandardSession.readObjectData(StandardSession.ja
> > va:810)
> >         at
> >
>
org.apache.catalina.session.StandardManager.load(StandardManager.java:411)
> >         at
> >
>
org.apache.catalina.session.StandardManager.start(StandardManager.java:617)
> >         at
> >
>
org.apache.catalina.core.StandardContext.reload(StandardContext.java:2497)
> >         at
> >
>
org.apache.catalina.loader.WebappContextNotifier.run(WebappLoader.java:1332)
> >         at java.lang.Thread.run(Thread.java:536)
> > Caused by: java.io.NotSerializableException:
> > com.sun.mail.imap.IMAPFolder
> >         at
> >
>
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1054)
> >         at
> >
>
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1330)
> >         at
> >
>
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1302)
> >         at
> >
>
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
> >         at
> >
>
java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
> >         at
> >
>
java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
> >         at
> >
>
org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:
> > 1338)
> >         at
> >
>
org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.j
> > ava:827)
> >         at
> >
>
org.apache.catalina.session.StandardManager.unload(StandardManager.java:507)
> >         at
> >
>
org.apache.catalina.session.StandardManager.stop(StandardManager.java:654)
> >         at
> >
>
org.apache.catalina.core.StandardContext.reload(StandardContext.java:2409)
> >         ... 2 more
> > 
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > HotJobs - Search Thousands of New Jobs
> > http://www.hotjobs.com
> > 
> > --
> > To unsubscribe, e-mail:  
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> <mailto:tomcat-user-help@jakarta.apache.org>
> > 
> 
> 
> --
> Peter Davison
> peterdavison@rogers.com
> 
> When I hear a man applauded by the mob I always feel
> a pang of pity
> for him.  All he has to do to be hissed is to live
> long enough.
> 		-- H.L. Mencken, "Minority Report"
> 
> --
> To unsubscribe, e-mail:  
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:tomcat-user-help@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message