SEVERE: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.sun.mail.pop3.POP3Message

I am not getting why this exception has occurred.It throws the exception when i starts tomcat server.
I have used recieve() method in LoginAction which is used to recieved mails using POP3 protocol.
I am using JAVAMAIL 1.4

You are adding reference of an object of a class which is not Serializable. Tomcat is trying to serialize the session, which
fails as soon as any non-serializable attribute is found.

You are adding reference of an object of a class which is not Serializable. Tomcat is trying to serialize the session, which
fails as soon as any non-serializable attribute is found.

What I do now?? Any change in web.xml? or server.xml?
I used pop3store class for attachment.

You have to implement java.io.Serializable interface for those classes whose objects are to be added/used with session object.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.