Getting "constant string too long" error in the scirpt with Java Vuser protocol

  • KM03051162
  • 20-Dec-2017
  • 20-Dec-2017

This document has not been formally reviewed for accuracy and is provided "as is" for your convenience.


Getting "constant string too long" error in compiling a java vuser script.


Compiling a java vuser script returns  "constant string too long" error .


This is a limitation of the Sun Java compiler.
The work-around is to break the string up into smaller variables. Then concatenate them to send the message:
myPutMessage.writeString(string 1 + string 2 + string 3);