cancel
Showing results for 
Search instead for 
Did you mean: 

Postgresql Bytea Error?

zimsky
Champ in-the-making
Champ in-the-making
hi
I try to use activiti explore with postgresql,but the editor was not worked with error:
com.fasterxml.jackson.core.JsonParseException: Unexpected character ('j' (code 106)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')
at [Source: java.io.StringReader@1c0a9d95; line: 1, column: 2]

Then  i found this code thrown the exception:
ObjectNode editorJsonNode = (ObjectNode) objectMapper.readTree(
                new String(rs.getModelEditorSource(model.getId()), "utf-8"));

how can i fix this error?

Someone can help me ??
3 REPLIES 3

zimsky
Champ in-the-making
Champ in-the-making
haha

jbarrez
Star Contributor
Star Contributor
Anything funny?

Anyway, which version of postgres? We've got unit tests for all db's (including postgres), so I'm wondering if it's a version / configuration issue.

juvsgamer
Champ in-the-making
Champ in-the-making
The problem is when mybatis tries to get byte array from postgresql for XML process definition, for some reason we have conflicts with our jdbc jar dependencies.

If you are using maven, check you dependency hierarchy, in our case we have those conflicts because Hibernate Spacial jar includes a previous version of postgresql JAR, we have bot 9.3 and 8.4, don't know why myBatis (Activiti) takes 8.4 version. But when we exclude 8.4 version, everything works great!