• Post Reply Bookmark Topic Watch Topic
  • New Topic

XMlEncoder writeObject throwing a StackOverflow  RSS feed

 
sreenath reddy
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all

I am using XMLEncoder to persist my java bean and that's present in a different classloader .. Hence i formed a URLClassloader loading that jar and set that as Current Classloader by using the thread


Thread.currentThread().setContextClassLoader(urlLoader);

But after setting this and saying encoder.writeObject(customClass) ... Its throwing a StackOverflow error

Can any one let me know what might have gone wrong ?? Its urgent pls
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!