• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

java.io.NotSerializable Exception

 
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
In my Struts2 project I got the exception as

SEVERE IOException.
while loading persisted sessions,
java.io.WriteAbortedException,writing aborted.
java.io.NotSerializable Exception
org.apache.struts2.dispatcher.StrutsRequestWrapper.

Can anyone tell me the reason and solution?

Regards,
Ramesh Kangamuthu
 
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This error could occur if any object you place in Session scope does not implement the Serializable interface. An application server can serialize session objects to conserve resources. Check to see that any and all objects you place in Session scope implement the Serializable interface.
 
Ramesh kangamuthu
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Merill,

I stored String and ArrayList Object to the session. They implement Serializable interface by default. But My application shows continuously shows
NotSerializableException. How can I rectify the error?

Regards,

Ramesh Kangamuthu
 
Beauty is in the eye of the tiny ad.
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic