Create administration tools documentation example failing on xstream conversion

Hello,

When I try to use the " create adminsitration tool" example given in 6.3 documentation my code fails on this error:

at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshallField(AbstractReflectionConverter.java:355) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doUnmarshal(AbstractReflectionConverter.java:306) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.unmarshal(AbstractReflectionConverter.java:234) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66) at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50) at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1052) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1024) at com.thoughtworks.xstream.XStream$2.readFromStream(XStream.java:1716) at com.thoughtworks.xstream.core.util.CustomObjectInputStream.readObjectOverride(CustomObjectInputStream.java:104) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:364) at org.bonitasoft.engine.api.HTTPServerAPI.fromXML(HTTPServerAPI.java:257) at org.bonitasoft.engine.api.HTTPServerAPI.checkInvokeMethodReturn(HTTPServerAPI.java:152) at org.bonitasoft.engine.api.HTTPServerAPI.invokeMethod(HTTPServerAPI.java:136) at org.bonitasoft.engine.api.impl.ClientInterceptor.invoke(ClientInterceptor.java:88) at com.sun.proxy.$Proxy5.searchActivities(Unknown Source) at fr.univlille2.bpm.ListFailedTasksCmd.printFailedTasks(ListFailedTasksCmd.java:66) at fr.univlille2.bpm.ListFailedTasksCmd.call(ListFailedTasksCmd.java:53) at fr.univlille2.bpm.App.main(App.java:18) Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException: org.bonitasoft.engine.bpm.flownode.impl.internal.UserTaskInstanceImpl

The statement that seems to raise this error is the following

SearchResult failedTasks = taskAPI.searchActivities(failedSearchOptions);

I'm trying to use the HTTP API on localhost, my code is compiling without any error, and of course, there's a running BonitaBPM tenant on the localhost, does any one have any idea about what I'm missing here ?

Thanks!

I don’t know that much about XSTREAM, but it seems this issue should be fixed at the HTTP API level, 'cause editing in my code the search request from the example with other searchOptions works just fine (running against a Bonita 6.3.2 SP server)

Thanks for the example though