My client is doing

String s = myEntityBean.getLongStringField();

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

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

If so, is that an RMI thing or a JOnAS thing? 

And would I solve this by using binary data, i.e. if I changed my
database field from TEXT to BLOB or BINARY or whatever (and my bean's
member variable to ByteArray or something)? 

Would there then be UNICODE issues/problems to avoid?

My stack dump follows. Thanks

Jonathan

java.rmi.UnmarshalException: error unmarshalling return; nested
exception is: 
        java.io.UTFDataFormatException
java.io.UTFDataFormatException
        at java.io.DataInputStream.readUTF(Compiled Code)
        at java.io.DataInputStream.readUTF(Compiled Code)
        at java.io.ObjectInputStream.readUTF(Compiled Code)
        at java.io.ObjectInputStream.readObject(Compiled Code)
        at java.io.ObjectInputStream.readObject(Compiled Code)
        at
vwe.testbench.beans.JOnASTest100000BeanTest_Stub.getData(Compiled Code)
        at vwe.testbench.client.RMIServer.getData(Compiled Code)
        at vwe.testbench.client.TestCaseThread.doDataAccess(Compiled
Code)
        at vwe.testbench.client.TestCaseThread.run(Compiled Code)

-- 
Jonathan Whitehead
Sema Group sae
[EMAIL PROTECTED]
-----------------------------------------------------------------------------------------
Este mensaje es confidencial y ata�e exclusivamente a las personas a las que va 
dirigido.
Cualquier opinion en el contenida, es exclusiva de su autor y no representa
necesariamente la opinion de Sema Group.
Si usted no es el destinatario de este mensaje, considerese advertido que lo ha 
recibido
por error y que cualquier uso, difusion o copia estan terminantemente prohibidos.
Si ha recibido este mensaje por error, por favor comuniquelo a Sema Group sae al
numero +34 91 4408800.

This email is confidential and intended solely for the use of the individual to whom 
it is addressed.
Any views or opinions presented are solely those of the author and do not necessarily 
represent
those of Sema Group. 
If you are not the intended recipient, be advised that you have received this email in 
error
and that any use, dissemination, forwarding, printing, or copying of this email is 
strictly prohibited.
If you have received this email in error please notify it to Sema Group sae by 
telephone on number
+34 91 4408800.
-----------------------------------------------------------------------------------------

----
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