dcsimg
serialization of Folder in EJB.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Clay_Graham
Posted On:   Friday, November 8, 2002 01:57 PM

I am attempting to create a JavaMail EJB to run on JBOSS. When I deploy the EJB an error is sent to the logs: com.sun.mail.imap.IMAPFolder at org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java: 293) at org.jboss.ejb.plugins.StatefulSessionInstanceCache.passivate(StatefulSessionInstanceCache.java:78) at org.jboss.ejb.plugins.AbstractInstanceCache$1.execute(AbstractInstanceCache.java:615) at org.jboss.util.WorkerQueue$QueueLoop.run(WorkerQueue.java:206) at java.lang.Thread.run(Thread.java:536) java.io.NotSerializableException: com.sun.mail.imap.IMAPFolder at java.io.ObjectOutputStream.writeObject0(ObjectOutp   More>>

I am attempting to create a JavaMail EJB to run on JBOSS. When I deploy the EJB an error is sent to the logs:



			
com.sun.mail.imap.IMAPFolder
at org.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java:
293)
at org.jboss.ejb.plugins.StatefulSessionInstanceCache.passivate(StatefulSessionInstanceCache.java:78)
at org.jboss.ejb.plugins.AbstractInstanceCache$1.execute(AbstractInstanceCache.java:615)
at org.jboss.util.WorkerQueue$QueueLoop.run(WorkerQueue.java:206)
at java.lang.Thread.run(Thread.java:536)
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.jboss.ejb.plugins.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java:



why didn't sun just serialize this? am I missing something? anyone have a fix for this?



clay    <<Less

Re: serialization of Folder in EJB.

Posted By:   John_Zukowski  
Posted On:   Sunday, November 10, 2002 02:16 PM

Folders require a mail session to be valid.
About | Sitemap | Contact