Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaBean Serialization problem in JRun 4

L Goundalkar
Ranch Hand
Posts: 395
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using JRun 4 and want to make my application distribuatable. So I have implemented in all my java beans. But some times it gives following error in my servlet where i typecast my bean which is in session. like

The Exception details are :

I have checked following things:
1. instanceof operator on the session variable. It gives false.
2. objRef.getClass() on my session reference. It returns correct package and class name my reference in session.
3. I instroduced following code so that the serialisation ID remains same for the object.

Even after doing all these tricks i cant make my bean get rid of this exception which occur suddenly. !!!
Is it a problem in JRun ??? or it is in J2EE ???
Thanks for the time.
L G Goundalkar.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic