I had the same problem with Strings in serialization. I think the limit is
around 60000 characters in a string that is to be serialized.
Ravi
Erez Bashan wrote:
> > is there any restriction on how many characters a String can hold?
>
> AFAIK, yes and no ...
>
> No, there is no restriction when working on simple hello world programs.
> Yes, there is a restriction. When you serialize some data, only the first
> <could someone fill this in> characters of the string are being serialized !
> I was amazed to find that out. So, be careful when saving objects to file,
> using RMI, storing them in sessions, and much more ...
>
> As a guide, I try to keep my strings simple and short, and use StringBuffers
> for anything else.
>
> Erez
>
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
--
______________________________________________________________
Ravi Sankar Pabbati,
Wipro GE Medical Systems,
A-1, Golden Enclave, Airport Road, Bangalore,
India - 560 017.
Tel : (91)-(80)-5263121 ext 344 ; Fax : (91)-(80)-5263520
Visit us on the Internet : http://www.gemedicalsystems.com
http://www.wiproge.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html