This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • 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

Not Serializable Exception on server startup

 
Ranch Hand
Posts: 238
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I get an exception in my jboss console regarding one of my classes that it is not serializable when I start my jboss

[ManagerBase] IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.r911.core.model.SurveyAnswer
java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: com.r911.core.model.SurveyAnswer

But when I restart my jboss I dont get this exception and then if I shutdown and start I get it again and that how it alternates. Can some tell me what is wrong.
Thanks
Imad
 
Ranch Hand
Posts: 775
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this a webapp? Sounds like the kind of error you'd get if you bound something to an HttpSession that wasn't serializable. If the server tried to restore the session (which for the integrated Tomcat I believe it does) then you might see messages like this.
    Bookmark Topic Watch Topic
  • New Topic