Jelly Service Failed with 'Invalid byte 1 of 1-byte UTF-8 sequence' Error

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

When trying to run a Jelly script using service, JIRA throws this error:

Caused by: org.apache.xerces.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.
        at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown Source)
        at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
.......
Caused by: org.apache.xerces.impl.io.MalformedByteSequenceException: Invalid byte 1 of 1-byte UTF-8 sequence.
        at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
        at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)

Cause

The Jelly script file is saved using wrong encoding e.g ANSI or CP1250. JIRA is unable to read the file correctly.

Resolution

Save the Jelly script using UTF-8 encoding. The option to select encoding is often available in text editors.

Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.