File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes BEA/Weblogic and the fly likes Failed to replicate non-serializable object 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 » Products » BEA/Weblogic
Bookmark "Failed to replicate non-serializable object" Watch "Failed to replicate non-serializable object" New topic
Author

Failed to replicate non-serializable object

seema bhargava
Greenhorn

Joined: Jun 12, 2003
Posts: 1
Hi all,
Here is the background.
Our application was working fine before. Now we are trying to migrate the application in Weblogic 6.1 clustered environment.
We are getting the following error :
All session objects should be serializable to replicate. Check the objects in your session. Failed to replicate non-serializable object.
We serialised all the classes realted to the functionality for which the error is coming same error is coming. Can somebody help urgently.
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Check again. At some point your application is attempting to place a non-serializable object in the HttpSession.
For an object to be truely serialiable (ie for it to serialize without error) then it must be marked Serializable and not contain any non-static or non-transient references to objects that are not serializable. Did that make sense???
BTW, the problem might not be in one of your classes, maybe somewhere a standard Java class which is not serializable (such as a java.sql.Connection) is being added to the HttpSession. You might want to register an HttpSessionAttributeListener to output the type of every object added to an HttpSession and whether or not it implements Serializable. This might help in identifying the cause of your problems.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Failed to replicate non-serializable object
 
Similar Threads
java.io.NotSerializable Exception
Session replication error in WL8.1
Clustered Server - Session Handling
ResourceBundle Problem
How to pass a non serializable object between jsp pages