Error trying to access to Data Object definition in a project that have included a dependency to Gson library (solved)

36 Views Asked by At

I'm using the jBPM Server distribution, exactly the jBPM 7.74.1.Final server (single zip) distribution and I have install it in my local machine. I have a project with different Data Objects to manage calls to differents externals API Rest. I have define all the needed Data Objects and as this interface used Json to send parameters and receive reponse, I decided to use an very common Json parsing library (Gson). I had to include this dependency in the project settings: Dependencies for the parsing library Gson

and I have modified the java code to parsing JSON in the created Data Objects. I can compile and execute the process and everything works fine. The problem is that I don't be able to view the created Data Objects. When I try to access to a Data Object (into the Assets sheet) I get the next error:

java.lang.IllegalAccessError:tried to access class com.google.gson.internal.bind.TypeAdapters$22 from class com.google.gson.internal.bind.TypeAdapters$22$1

Error trying to view an Data Object with GSON dependency included

Then, I can't view, modify, create or delete Data Objects.

What I am mainly confused is that when I delete the dependence to the library I can access to the diferent Data Objects created, modifying, deleting or creating. Obsviusly, if I compile the diagram I have errors related with the differents code lines when the library is invoked and used.

Is there any workaround I can give it a try?

0

There are 0 best solutions below