• Post Reply Bookmark Topic Watch Topic
  • New Topic

NotSerializableException problem...  RSS feed

 
Tal Tal
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello
I'm having problems moving my project from jdk 1.3 to jdk 1.4.
when i try to run my project using jdk1.4 it throws a NotSerializableException...the weird thing about it is that when i run the project using jdk1.3 it dosent throw the NotSerializableException...
i tried to rebuild it over and over again, but it didnt work,
anyone knows what can cause it?
here is the stack trace where it throws the exception:

as you can see the problem is in the loginServer Stub, thats the code

and thats the class before the loginserver stub:

thanks
[ Jess added a few line breaks to the [code] blocks so the page won't get stretched too wide ]
[ April 06, 2004: Message edited by: Jessica Sant ]
 
Chris Stehno
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your project seems to be using serialization. Generally serialized object from one JDK version do not work with a different version. If your app is loading serialized objects that were stored in files or something you may want to re-serialize them under the new JDK. If that is not the case, you may want to start checking through the documentation to determine whether something that was once serializable is no longer.
Hope this helps.
 
Tal Tal
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what does it mean re-serialize?
i know a Serializable object is an object which implements Serializable,
do you mean i should recompile those objects?
thanks for your help
 
Ronak Patel
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It should work.If possible then just put ur code where you make ur serialize object.We will try.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!