Hello!

JW> My client is doing

JW> String s = myEntityBean.getLongStringField();

JW> When the string size is 65530 bytes, it's OK, but when it's 65536, the
JW> client throws a java.io.UTFDataFormatException in
JW> java.io.DataInputStream.readUTF . The EJBServer on the other hand
JW> doesn't have a problem, which is strange because I assume it has to do a
JW> writeUTF at the other end. 

JW> Is there a 64K limit for passing strings over this transport
JW> layer/encoding protocol? 

JW> If so, is that an RMI thing or a JOnAS thing? 
IMHO this is RMI restriction. It will be fixed in JDK 1.2.3 RC1

( from 1.2.3 readme:
> Serialization enhancements notable for RMI:
> Strings longer than 64K can now be serialized. 
> Serialization performance enhancements yeild up to 20% faster writes during 
>serialization and reads during deserialization. 
> Improved exception reporting now reports the actual class or interface that cannot 
>be found during deserialization, rather than the higher-level class that was being 
>deserialized (such as the RMI stub class). 
)


----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to