Page 1 of 1

service.getFile returns error: "Could not deserialize result from HTTP invoker remote service"

Posted: Fri Apr 07, 2017 12:27 pm
by mbfagency
I am getting the error below when trying to retrieve a file. Nothing changed in my code, which was working before.

org.springframework.remoting.RemoteAccessException: Could not deserialize result from HTTP invoker remote service [http://bhservice31/data-services-2.5/sr/ApiDataService]; nested exception is com.bullhorn.common.attach.Attachment; local class incompatible: stream classdesc serialVersionUID = -5938253638059609792, local class serialVersionUID = -3417793579824363280

Code: Select all

ApiService service = new ApiService();
apiGetFileResult fileResult = service.getFile(CreateNewBullhornApiSession(), entityName, entityID, fileID);
if (fileResult != null)
     using (FileStream stream = new FileStream(filePathAndName, FileMode.Create))
          using (BinaryWriter writer = new BinaryWriter(stream))
     return newFileName;