Hello ULC Experts,
i've got a problem with the transfer of large Strings (>64kB) between server
and client. Because the UlcDataOutputStream relies on the
java.io.DataOutputStream it is also bound to its limitation in the
writeUTF()-method:
if (utflen > 65535)
throw new UTFDataFormatException(
"encoded string too long: " + utflen + " bytes");
This causes an Exception on large Strings.
I've tried to circumvent this problem by writing a custom StringCoder, but ULC
does not use it.
Ive created my version of the DefaultServerCoderRegistryProvider and
DefaultClientCoderRegistryProvider to add my coder to the registry. And i also
instructed ULC to use my CoderRegistryProviders. But still no effect.
I've checked whether the CoderRegistryProviders are used during application
startup and they are. But the CoderRegistry.getCoder(String className)-method
gets never called for String!
Are strings handled differently? How can i replace the faulty implementation
with my own?
Thanks in advance for any sugesstions.
Kind regards
Maik Scheibler
--
Sächsische Aufbaubank - Förderbank - (SAB)
Informationstechnologie
Pirnaische Str. 9
01069 Dresden
Tel.: +49 (351) 4910 - 1352
Fax.: +49 (351) 4910 - 1305
mailto:[EMAIL PROTECTED]
Sächsische Aufbaubank - Förderbank - Anstalt des öffentlichen Rechts,
Sitz Dresden,
Amtsgericht Dresden HRA 5353,
Ust-IdNr. DE179593934.
_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer