Error - The content node was not specified so the content cannot be streamed to the client

cancel
Showing results for 
Search instead for 
Did you mean: 
upforsin
Senior Member

Error - The content node was not specified so the content cannot be streamed to the client

Hello

In the logs I have huge amount of such errors:

DEBUG Unable to create thumbnail 'doclib' for image/vnd.dwg as no transformer is currently available.
ERROR [extensions.webscripts.AbstractRuntime] [http-nio-8080-exec-21] Exception from executeScript: 05220146 The content node was not specified so the content cannot be streamed to the client: classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js
org.springframework.extensions.webscripts.WebScriptException: 05220146 The content node was not specified so the content cannot be streamed to the client: classpath*:alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js
at org.alfresco.repo.web.scripts.content.StreamContent.execute(StreamContent.java:176)
...

It seems like method isThumbnailDefinitionAvailable() returns false so createThumbnail() returns null so StreamContent.java throws an error.

But why doclib thubmnail renderer is unavailable? How can I prevent that and stop this error poping up?

I noticed this error pops up only sometimes (huge server overload?) and in huge amounts (around 150 times in 1sec)

I'm using Alfresco Community 7.2 with ATS connected to ActiveMQ.

Generally, transforms are working fine.

howkymike
Alfresco Developer
2 Replies
mitpatoliya
Moderator
Moderator

Re: Error - The content node was not specified so the content cannot be streamed to the client

You can disable thumbnail generation in alfresco 7.x versions.

system.thumbnail.generate=false

 Just add the above property in alfresco-global.properties and then restart the server.

upforsin
Senior Member

Re: Error - The content node was not specified so the content cannot be streamed to the client

Thank you @mitpatoliya but that is an extreme solution. I would like to still have thumbnails especially because in 99% cases they are working.

howkymike
Alfresco Developer