As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
newFile.createThumbnail(thumbnailName, true);
15:07:57,041 User:alfresco.gsd DEBUG [repo.jscript.ScriptLogger] creating thumbnail doclib 15:07:57,079 User:alfresco.gsd DEBUG [repo.jscript.ScriptLogger] error is JavaException: org.alfresco.service.cmr.repository.ContentIOException: 00292957 Content conversion failed: reader: ContentAccessor[ contentUrl=store://2014/1/29/15/7/5f6af871-f5a4-44aa-b730-8063694dddf4.bin, mimetype=application/pdf, size=93245, encoding=UTF-8, locale=it] writer: ContentAccessor[ contentUrl=store://2014/1/29/15/7/be5d14a5-c0a8-4f65-85c9-d6b271110f4e.bin, mimetype=image/png, size=0, encoding=UTF-8, locale=it] options: ImageTransformationOptions[ commandOptions=, resizeOptions=org.alfresco.repo.content.transform.magick.ImageResizeOptions@28ffe174]
convert
<bean class="org.alfresco.repo.thumbnail.ThumbnailDefinition"> <property name="name" value="doclib" /> <property name="mimetype" value="image/png"/> <property name="transformationOptions"> <bean class="org.alfresco.repo.content.transform.magick.ImageTransformationOptions"> <property name="resizeOptions"> <bean class="org.alfresco.repo.content.transform.magick.ImageResizeOptions"> <property name="width" value="100"/> <property name="height" value="100"/> <property name="maintainAspectRatio" value="true"/> <property name="resizeToThumbnail" value="true" /> </bean> </property> </bean> </property> <property name="placeHolderResourcePath" value="alfresco/thumbnail/thumbnail_placeholder_doclib.png" /> <property name="runAs" value="System"/> </bean>
log4j.logger.org.alfresco.repo.content.transform=DEBUG log4j.logger.org.alfresco.util.exec.RuntimeExec=DEBUG log4j.logger.org.alfresco.repo.content.transform.ContentTransformerRegistry=DEBUG
Caused by: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11GraphicsEnvironment
JAVA_OPTS="$JAVA_OPTS -Djava.awt.headless=false"
export DISPLAY=localhost:10.0