IllegalStateException in JIRA while submitting the content of textarea

Thank you for visiting.

While submitting the content of textarea to a servlet, I get the following result.

And this will not happen if I control the length of the textarea content.

But I don’t want to set a maxlength limit to the textarea, so how to avoid the exception ?

Thank you.

StackOverflow has an answer to that.