cancel
Showing results for 
Search instead for 
Did you mean: 

JSON Parsing Error when using german letters ä, ö, ü in process definition

b_schnarr
Champ in-the-making
Champ in-the-making
When I try to model a process using activity kickstart (table-driven editor), I get a JSON Parsing error every time I use the german letters ä, ö, ü. The error occurs when I try to deploy the process or when I try to edit the process. Even though there is a german translation for the activity explorer, it is not possible to use the mentioned letters in process names or in process descriptions.

Does anyone has an idea?
14 REPLIES 14

frederikherema1
Star Contributor
Star Contributor
What exact error do you get?

b_schnarr
Champ in-the-making
Champ in-the-making
Steps for reproducing:
1.) Model a simple process with the table driven editor (Kickstart)
2.) Use the letters ö, ä, ü in name or description fields
3.) Save the process
4.) Under Model action, try to delete or deploy the new process

When you klick on deploy, an error message will occur in the activity explorer: Warnung! Error while parsing JSON (look at the picture below)

https://www.dropbox.com/s/5pqsmfc2bx00nvk/error.png

frederikherema1
Star Contributor
Star Contributor
This is the exception stack I'm getting:


[1015875951@qtp-380747959-6] ERROR org.activiti.editor.ui.EditorProcessDefinitionDetailPanel  - failed to export model to BPMN XML
org.activiti.workflow.simple.exception.SimpleWorkflowException: Error while parsing JSON
at org.activiti.workflow.simple.converter.json.SimpleWorkflowJsonConverter.wrapExceptionRead(SimpleWorkflowJsonConverter.java:111)
at org.activiti.workflow.simple.converter.json.SimpleWorkflowJsonConverter.readWorkflowDefinition(SimpleWorkflowJsonConverter.java:73)
at org.activiti.editor.ui.EditorProcessDefinitionDetailPanel$2.getStream(EditorProcessDefinitionDetailPanel.ja


Caused by: org.codehaus.jackson.JsonParseException: Invalid UTF-8 start byte 0x91
at [Source: [B@1b87966c; line: 1, column: 69]
at org.codehaus.jackson.JsonParser._constructError(JsonParser.java:1433)
at org.codehaus.jackson.impl.JsonParserMinimalBase._reportError(JsonParserMinimalBase.java:521)
at org.codehaus.jackson.impl.Utf8StreamParser._reportInvalidInitial(Utf8StreamParser.java:2824)
at org.codehaus.jackson.impl.Utf8StreamParser._reportInvalidChar(Utf8StreamParser.java:2818)
at org.codehaus.jackson.impl.Utf8StreamParser._finishString2(Utf8StreamParser.java:


Seems like an issue with the encoding of the created JSON by the table-editor. I'll take a look at this…

b_schnarr
Champ in-the-making
Champ in-the-making
Is it foreseeable that this issue will also be fixed with 5.15?

b_schnarr
Champ in-the-making
Champ in-the-making
Is there any progress on this issue? Should I report it in Jira?

trademak
Star Contributor
Star Contributor
No progress yet, yes please report it in JIRA.

b_schnarr
Champ in-the-making
Champ in-the-making

mertagtas
Champ in-the-making
Champ in-the-making
Hi,

Is this issue solved ? I got same problem for turkish letters such as ğ,ü,ş,ı and so on.

Thank you

vasile_dirla
Star Contributor
Star Contributor
What version are you using ?
I just tested the turkish characters with the latest version and it seems is working ok.
<code>
<process id="process1" name="2ff" isExecutable="true">
<startEvent id="processğüş" name="processğüş"/>
<endEvent id="sid-69D0AE78-DC50-4256-9053-5D4DA10A240C"/>
<sequenceFlow id="sid-1187749E-C481-4F7A-8516-7C694E6F120B" sourceRef="processğüş" targetRef="sid-69D0AE78-DC50-4256-9053-5D4DA10A240C"/>
</process>
</code>