Pdf preview stop working after document edited using offline option.
Could not load pdf content
Hi Everyone,
Im face the same issue with Alfresco 6.1 GA, the same issue was metioned at https://hub.alfresco.com/t5/alfresco-content-services-forum/document-preview-isn-t-working-on-edited...
Logs: (The complete logs are showen on link above)
ERROR [extensions.webscripts.AbstractRuntime] [http-nio-8080-exec-7] Exception from executeScript: 10160020 Wrapped Exception (with status template): 10160218 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 10160217 10160216 A rendition of name: {http://www.alfresco.org/model/content/1.0}pdf should have been created for source node: workspace://SpacesStore/88eb6f27-6b6e-4656-8c3e-705450082e95 org.springframework.extensions.webscripts.WebScriptException: 10160020 Wrapped Exception (with status template): 10160218 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 10160217 10160216 A rendition of name: {http://www.alfresco.org/model/content/1.0}pdf should have been created for source node: workspace://SpacesStore/88eb6f27-6b6e-4656-8c3e-705450082e95 Caused by: org.alfresco.scripts.ScriptException: 10160218 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 10160217 10160216 A rendition of name: {http://www.alfresco.org/model/content/1.0}pdf should have been created for source node: workspace://SpacesStore/88eb6f27-6b6e-4656-8c3e-705450082e95
There is any solution for this? Note that this error was detected more than (2)two years ago and there is still no solution.
the current versions of Alfresco have this improvement? if yes, how can we migrate it ??
How can we track this issue ?? There is another forum to do that ???
Thanks ...
Hi Everyone,
I manage to solve this problem by using Alfresco Transform service AIO with Alfresco Content Services 7.1 GA , i follow the Link Props to @abhinavmishra14 For the excelent and detailed work.
I hope this is useful.
I hit same issue with alfresco 7.4 and transform engine 5.1.0. Only working solution for me was create beahvior, delete existing thumbnails and create new one. Here is my code:
@Override public void onContentUpdate(NodeRef nodeRef, boolean newContent) { NodeService nodeService = serviceRegistry.getNodeService(); RenditionService2 renditionService2 = serviceRegistry.getRenditionService2(); if(nodeService.exists(nodeRef)) { if(ContentModel.TYPE_THUMBNAIL.equals(nodeService.getType(nodeRef))==false) { Set<QName> types = new HashSet<QName>(); types.add(ContentModel.TYPE_THUMBNAIL); List<ChildAssociationRef> thumbnail_assocs = nodeService.getChildAssocs(nodeRef, types); for (ChildAssociationRef thumbnail_assoc : thumbnail_assocs) { NodeRef thumbnail = thumbnail_assoc.getChildRef(); nodeService.deleteNode(thumbnail); } renditionService2.render(nodeRef, "pdf"); } } }
If someone found better solution i will be glad. This is ugly
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.