]
Galder Zamarreño updated HRJS-4:
--------------------------------
Status: Open (was: New)
java.io.UTFDataFormatException when the executed script exceeds 128
chars
-------------------------------------------------------------------------
Key: HRJS-4
URL:
https://issues.jboss.org/browse/HRJS-4
Project: Infinispan Javascript client
Issue Type: Bug
Reporter: Galder Zamarreño
Assignee: Galder Zamarreño
Fix For: 0.3.0
When converting a String into JBoss String (e.g. to pass add the script file itself), the
final step after encoding the JBoss String itself is to convert the buffer into String.
This was done because only String key/values were supported but doing such conversion
added some extra bytes to the payload, generating an incorrect String which resulted in a
{{java.io.UTFDataFormatException}} exception.