File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes NotSerializableException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "NotSerializableException" Watch "NotSerializableException" New topic
Author

NotSerializableException

Mary Cole
Ranch Hand

Joined: Dec 02, 2000
Posts: 362



I get this error whenever I upload a file...pls advice how to overcome this
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
Looking at your stack trace it appears that your servlet engine (Catalina = Tomcat, correct?) is attempting to duplicate the session between multiple instances using serialization. In the process it finds a CommonsMultipartRequestHandler$CommonsFormFile object that cannot be serialized.

Are you saving your form that contains the FormFile on the session? What if you configured this action to use request scope?

- Brent
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NotSerializableException
 
Similar Threads
? File I/O (and-or) for each loop
Serializable
Clustering an application by jboss produced this:
serialization for class Object references
NotSerializableException while Jboss clustering