• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Serializing Iterators?

 
Nick Head
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just got this error message from my client code:
No Serializer found to serialize 'java.util.Iterator'
I noticed that Iterator is not one of the datatypes that has a built-in serializer. So does anyone have any good ideas of how to do this?
Hopefully it won't involve having to write a custom serializer...
Cheers
Nick
[ May 10, 2002: Message edited by: Nick Head ]
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13055
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is a good reason - Iterator is an interface. You need to redesign your application so it doesn't try to serialize an Iterator. Maybe send an array or a Vector?
Bill
 
Nick Head
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
duh...
thanks for that
I was trying to use a BeanSerializer, and as it is out of the question to modify the application, looks like I'll have to write a custom serializer after all.
[ May 12, 2002: Message edited by: Nick Head ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic