Hi,
I’m trying to update my integration from 1.7.1 to 1.8.1, but I found some issue that I don’t understand. As in 1.7 I changed HomeController.index method as below:
@RequestMapping(value = “/”, method = RequestMethod.GET)
public String index(Model model, HttpServletRequest request, HttpServletResponse response, @RequestParam(value = “objectId”,
required = false) String objectId, @RequestParam(
value = “userName”, required = false) String userName) throws Exception {
// Configure localization
final ILocalization localization = null;
// Setting header in jsp page
model.addAttribute(“groupdocsHeader”, annotationHandler().getHeader(applicationConfig.getApplicationPath(), request));
userName = userName == null ? “Anonymous” : userName;
objectId = com.groupdocs.viewer.utils.Utils.encodeData(objectId);
final String userGuid = annotationHandler().getUserGuid(userName);
model.addAttribute(“groupdocsScripts”, annotationHandler().getAnnotationScript(objectId, userName, userGuid, localization));
return “index”;
}
Then I changed annotationHandler() initialization to use my custom handler:
annotationHandler = new AnnotationHandler(serviceConfiguration, connector, new MyInputDataHandler(serviceConfiguration));
Unfortunately when I run my webapp I get the following exception:
SEVERE: Annotation throws exception: files is not supported!
com.groupdocs.annotation.exception.AnnotationException: files is not supported!
at com.groupdocs.annotation.api.shared.CommonApi.viewDocument(CommonApi.java:282)
at com.groupdocs.annotation.api.shared.WebApi.viewDocumentHandler(WebApi.java:239)
at com.groupdocs.annotation.handler.AnnotationHandler.viewDocumentHandler(AnnotationHandler.java:136)
Thanks in advance for any help.
Mariusz