Connector return value exception: com.thoughtworks.xstream.mapper.CannotResolveClassException

1
0
-1

Hi @all

Env: Win7-32Bit/Bonita BPM Community Edition 6.5.0/Java 8

I created a connector which calls a service class that uses JPA to query the DB and returns a POJO. When I test the connector, querying the DB (with usage of persistence.xml) works ok, but when connector is closed (or whatever is its state within the BPM) and the result ist returned I get the following exception:

  1. java.lang.reflect.InvocationTargetException
  2. com.thoughtworks.xstream.converters.ConversionException: de.bvf.norm430.entity.Norm430Transfer : de.bvf.norm430.entity.Norm430Transfer
  3. ---- Debugging information ----
  4. message : de.bvf.norm430.entity.Norm430Transfer
  5. cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
  6. cause-message : de.bvf.norm430.entity.Norm430Transfer
  7. class : java.util.HashMap
  8. required-type : java.util.HashMap
  9. converter-type : com.thoughtworks.xstream.converters.collections.MapConverter
  10. path : /map/entry/de.bvf.norm430.entity.Norm430Transfer
  11. line number : 5
  12. version : null
  13. -------------------------------
  14. com.thoughtworks.xstream.mapper.CannotResolveClassException: de.bvf.norm430.entity.Norm430Transfer

Someone else got this problem (see here), but his solution does not work for me.

I included the jar as dependency in the connector and make usage of the classes in that jar in the connector implementation. I put the jar in every lib folder I found, but I alwazs get the exception as result. Folders that I copied the jar to:

  1. <install_dir>\workspace\tomcat\lib
  2. <install_dir>\workspace\tomcat\bonita\lib
  3. <install_dir>\workspace\tomcat\webapps\bonita\WEB-INF\lib
  4. <install_dir>\workspace\default\lib

Can anyone give me some advise what to do, that xstream find the class from the jar ?

Regards Martin

1 answer

1
0
-1

Hello, Did you search on the net the reason for this error ? I found this for example : http://stackoverflow.com/questions/21283052/com-thoughtworks-xstream-map...

because your issue is not a "classnotfound" exception but a different error.

Notifications