AnsweredAssumed Answered

Activiti modeler - 5.11 - JsonParseException

Question asked by omerozdemir on Feb 18, 2014

Here are the steps how i get this exception:

Create model successfully.
Model data is inserted in the act_re_model table
this rest url is working -> http://localhost:8080/ActivitiCompelExplorer2/service/model/9204/json
i get this response-> {"name":"tests","revision":1,"description":"testgvj | 1392716730232","modelId":"9204"}
When i want to edit this model through activiti modeler, i get this exception below:

Feb 18, 2014 1:18:50 PM getEditorJson
SEVERE: Error creating model JSON
org.codehaus.jackson.JsonParseException: Unexpected character ('j' (code 106)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source:; line: 1, column: 2]

i've downloaded the activiti modeler 5.11 source code.
This is the line that throws exception: 
(ObjectNode) objectMapper.readTree(new String(repositoryService.getModelEditorSource(model.getId()), "utf-8"));

with this piece of code -> new String(repositoryService.getModelEditorSource(model.getId()), "utf-8")
i get some string value starting with j -> "jblablablablablablablabla……"

Could you please help me with this error above?
I couldn't find any solution for this problem :(

Thanks, regards