cancel
Showing results for 
Search instead for 
Did you mean: 

Thumbnails not generated after editing.

rrios
Champ on-the-rise
Champ on-the-rise

Hi,
  I am using Alfresco Community Edition 201911 GA , and when I edit a plain text file using "Edit in Alfresco Share" the thumbnails are not refreshed. I does update one or two times, but after that document does not update anymore.

  If I create a new document, it happens the same, the thumbnails get updated a couple of times but not more.

 When this happens I can see in the log the following error:

2020-04-24 07:47:36,551 ERROR [org.springframework.extensions.webscripts.AbstractRuntime] [ajp-nio-127.0.0.1-8009-exec-11] Exception from executeScript: 03240001 Wrapped Exception (with status template): 03240020 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 03240019 03240018 A rendition of name: {http://www.alfresco.org/model/content/1.0}pdf should have been created for source node: workspace://SpacesStore/f5f4ff84-4749-4b77-8435-fb7cf924d5a3
org.springframework.extensions.webscripts.WebScriptException: 03240001 Wrapped Exception (with status template): 03240020 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 03240019 03240018 A rendition of name: {http://www.alfresco.org/model/content/1.0}pdf should have been created for source node: workspace://SpacesStore/f5f4ff84-4749-4b77-8435-fb7cf924d5a3
at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:1139)
at org.alfresco.repo.web.scripts.content.StreamContent.execute(StreamContent.java:202)
at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:519)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:450)
at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:595)
at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:664)
at org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:435)
at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:315)
at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:399)
at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:210)
at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)
at org.alfresco.repo.web.scripts.AlfrescoWebScriptServlet.service(AlfrescoWebScriptServlet.java:43)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:68)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.alfresco.web.app.servlet.ClearSecurityContextFilter.doFilter(ClearSecurityContextFilter.java:53)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:543)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.ajp.AjpProcessor.service(AjpProcessor.java:525)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:818)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1627)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.alfresco.scripts.ScriptException: 03240020 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js': 03240019 03240018 A rendition of name: {http://www.alfresco.org/model/content/1.0}pdf should have been created for source node: workspace://SpacesStore/f5f4ff84-4749-4b77-8435-fb7cf924d5a3
at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:211)
at org.alfresco.repo.processor.ScriptServiceImpl.execute(ScriptServiceImpl.java:219)
at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:181)
at org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:109)
at org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1376)
at org.alfresco.repo.web.scripts.content.StreamContent.execute(StreamContent.java:146)
... 39 more

Here is a video on showing the issue:

https://drive.google.com/open?id=1jIKjvFDQVyKDmoqaSP4FdklzSafQGTU2

 

Thanks forehand

 

14 REPLIES 14

izharmail
Champ in-the-making
Champ in-the-making

Pdf preview stop working after document edited using offline option.

Could not load pdf content

cristinamr
World-Class Innovator
World-Class Innovator

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

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.

Dagoo
Champ on-the-rise
Champ on-the-rise

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