Thumbnails not generated after editing.

cancel
Showing results for 
Search instead for 
Did you mean: 
izharmail
Member II

Re: Thumbnails not generated after editing.

Pdf preview stop working after document edited using offline option.

Could not load pdf content

cristinamr
Advanced

Re: Thumbnails not generated after editing.

It's quite complicated to know what is hapening without any error log. Could you please attach your logfile as soon as you realize it's happening?

--
VenziaIT: helping companies since 2005! Our ECM products: AQuA & Seidoc
dnhatsave
Active Member II

Re: Thumbnails not generated after editing.

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 ...

dnhatsave
Active Member II

Re: Thumbnails not generated after editing.

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.

Dagoo
Active Member

Re: Thumbnails not generated after editing.

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 Smiley Sad