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

**URL:** <https://community.ofelia.com/t/connector-return-value-exception-com-thoughtworks-xstream-mapper-cannotresolveclassexception/6082>\
**Category:** Q&A\
**Created:** [21 March 2015 14:23 UTC](https://community.ofelia.com/t/connector-return-value-exception-com-thoughtworks-xstream-mapper-cannotresolveclassexception/6082 "2015-03-21T14:23:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bonitaquark](https://avatars.discourse-cdn.com/v4/letter/b/b487fb/32.png) [@bonitaquark](https://community.ofelia.com/u/bonitaquark)\
**Post date:** [21 March 2015 14:23 UTC](https://community.ofelia.com/t/connector-return-value-exception-com-thoughtworks-xstream-mapper-cannotresolveclassexception/6082/1 "2015-03-21T14:23:20Z")

</div>

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:

`
java.lang.reflect.InvocationTargetException
com.thoughtworks.xstream.converters.ConversionException: de.bvf.norm430.entity.Norm430Transfer : de.bvf.norm430.entity.Norm430Transfer
---- Debugging information ----
message : de.bvf.norm430.entity.Norm430Transfer
cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message : de.bvf.norm430.entity.Norm430Transfer
class : java.util.HashMap
required-type : java.util.HashMap
converter-type : com.thoughtworks.xstream.converters.collections.MapConverter
path : /map/entry/de.bvf.norm430.entity.Norm430Transfer
line number : 5
version : null
-------------------------------
com.thoughtworks.xstream.mapper.CannotResolveClassException: de.bvf.norm430.entity.Norm430Transfer
`

Someone else got this problem (see [here](http://community.ofelia.com/answers/start-process-custom-object-parameter)), 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:  
`
<install_dir>\workspace\tomcat\lib
<install_dir>\workspace\tomcat\bonita\lib
<install_dir>\workspace\tomcat\webapps\bonita\WEB-INF\lib
<install_dir>\workspace\default\lib
`

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

Regards  
Martin

---

<div class="post-metadata">

**Author:** ![Pierre-yves\_Monnet](https://avatars.discourse-cdn.com/v4/letter/p/8edcca/32.png) [@Pierre-yves\_Monnet](https://community.ofelia.com/u/Pierre-yves_Monnet)\
**Post date:** [30 March 2015 16:36 UTC](https://community.ofelia.com/t/connector-return-value-exception-com-thoughtworks-xstream-mapper-cannotresolveclassexception/6082/2 "2015-03-30T16:36:23Z")

</div>

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-mapper-cannotresolveclassexception](http://stackoverflow.com/questions/21283052/com-thoughtworks-xstream-mapper-cannotresolveclassexception)

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