cancel
Showing results for 
Search instead for 
Did you mean: 

Newly Upload Photo

edk
Champ in-the-making
Champ in-the-making
After uploading a new photo, the photo no longer appears. Instead a blank. Like this:

[img]http://atl.org/~ed/alfresco_photo_missing.png[/img]

If I look at the image (from this URL https://{DNS NAME}/share/proxy/alfresco/api/node/workspace/SpacesStore/fa352df4-60f1-4a6d-8b0d-8efe169e52f1/content/thumbnails/avatar?c=force )

Results in this page:

Web Script Status 500 - Internal Error

The Web Script /alfresco/s/api/node/workspace/SpacesStore/fa352df4-60f1-4a6d-8b0d-8efe169e52f1/content/thumbnails/avatar has responded with a status of 500 - Internal Error.

500 Description:   An error inside the HTTP server which prevented it from fulfilling the request.

Message:   Wrapped Exception (with status template): Failed to execute script '/org/alfresco/repository/thumbnail/thumbnail.get.js (in classpath store file:/mnt/sda5/Alfresco-3-labs/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts)': Thumbnail could not be created as required transformation is not supported from image/png to image/png
   
Exception:   org.alfresco.service.cmr.thumbnail.ThumbnailException - Thumbnail could not be created as required transformation is not supported from image/png to image/png
   
   org.alfresco.repo.thumbnail.ThumbnailServiceImpl.createThumbnail(ThumbnailServiceImpl.java:232)
   org.alfresco.repo.thumbnail.ThumbnailServiceImpl.createThumbnail(ThumbnailServiceImpl.java:133)
   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   java.lang.reflect.Method.invoke(Unknown Source)
   org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
   org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
   org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:40)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
   org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:49)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
   org.alfresco.repo.audit.AuditComponentImpl.audit(AuditComponentImpl.java:275)
   org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:69)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
   org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
   org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
   org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   $Proxy85.createThumbnail(Unknown Source)
   org.alfresco.repo.jscript.ScriptNode.createThumbnail(ScriptNode.java:2047)
   sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   java.lang.reflect.Method.invoke(Unknown Source)
   org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)
   org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243)
   org.mozilla.javascript.optimizer.OptRuntime.call2(OptRuntime.java:76)
   org.mozilla.javascript.gen.c10._c1(AlfrescoScript:55)
   org.mozilla.javascript.gen.c10.call(AlfrescoScript)
   org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108)
   org.mozilla.javascript.gen.c10._c0(AlfrescoScript:95)
   org.mozilla.javascript.gen.c10.call(AlfrescoScript)
   org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
   org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
   org.mozilla.javascript.gen.c10.call(AlfrescoScript)
   org.mozilla.javascript.gen.c10.exec(AlfrescoScript)
   org.mozilla.javascript.Context.evaluateString(Context.java:1196)
   org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:390)
   org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:122)
   org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:263)
   org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:108)
   org.alfresco.web.scripts.AbstractWebScript.executeScript(AbstractWebScript.java:800)
   org.alfresco.repo.web.scripts.content.StreamContent.execute(StreamContent.java:153)
   org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:319)
   org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:320)
   org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:227)
   org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:368)
   org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:390)
   org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:273)
   org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:261)
   org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:139)
   org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:116)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
   org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
   org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
   org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
   org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
   org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
   org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
   org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
   org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
   org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
   java.lang.Thread.run(Unknown Source)
   
Exception:   org.alfresco.scripts.ScriptException - Failed to execute script '/org/alfresco/repository/thumbnail/thumbnail.get.js (in classpath store file:/mnt/sda5/Alfresco-3-labs/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts)': Thumbnail could not be created as required transformation is not supported from image/png to image/png
   
   org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:126)
   
Exception:   org.alfresco.web.scripts.WebScriptException - Wrapped Exception (with status template): Failed to execute script '/org/alfresco/repository/thumbnail/thumbnail.get.js (in classpath store file:/mnt/sda5/Alfresco-3-labs/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts)': Thumbnail could not be created as required transformation is not supported from image/png to image/png
   
   org.alfresco.web.scripts.AbstractWebScript.createStatusException(AbstractWebScript.java:595)
   
Server:   Alfresco Labs v3.0.0 (Stable 1526) schema 1,002
Time:   Jan 23, 2009 10:02:38 PM
   
Diagnostics:   Inspect Web Script (org/alfresco/repository/thumbnail/thumbnail.get)

Now, the base of the Alfresco installation is at /mnt/sda5/Alfresco-3-labs. Nothing is in the /opt directory. Was there some more configuration that I missed?

p.s. The file thumbnail.get.js does exist, but it is in this directory: /mnt/sda5/Alfresco-3-labs/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/repository/thumbnail/thumbnail.get.js
10 REPLIES 10

mikeh
Star Contributor
Star Contributor
You need to install ImageMagick and have "convert" somewhere on the path. There will have been a warning about it missing during start-up.

Thanks,
Mike

edk
Champ in-the-making
Champ in-the-making
You need to install ImageMagick and have "convert" somewhere on the path. There will have been a warning about it missing during start-up.
Well, I noticed that. I once got errors like this:

18:39:06,048 ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to perform ImageMagick transformation: 
Execution result:
   os:         Linux
   command:    [./ImageMagick/bin/convert, …
I had a copy of ImageMagick installed with the operating system, but it wasn't being recognized by Alfresco. So, I installed a new version of ImageMagick (6.4.8-8) and make a symbolic link from the alfresco directory to the installation directory of the ImageMagick. Now, I don't get the error message shown above. Now, there are no error messages about failure to find, or failure to convert the image.

Is there a log4j setting that will shed light on this?

Thanks for helping me out on this - your help is appreciated.

mikeh
Star Contributor
Star Contributor
These will show you everything connected to Share's thumbnailing and transformations:
log4j.logger.org.alfresco.repo.content.transform=debug
log4j.logger.org.alfresco.repo.thumbnail=debug
log4j.logger.org.alfresco.util.exec=debug

Thanks,
Mike

edk
Champ in-the-making
Champ in-the-making
Now I'm getting some output. Here is the output when I upload a new photo (a png file):
15:43:38,040 DEBUG [org.alfresco.repo.content.transform.ContentTransformerRegistry] Searched for transformer: 
   source mimetype: image/png
   target mimetype: text/plain
   transformers: []
15:43:38,089 DEBUG [org.alfresco.repo.content.transform.ContentTransformerRegistry] Searched for transformer:
   source mimetype: image/png
   target mimetype: text/plain
   transformers: []
15:43:38,310 DEBUG [org.alfresco.repo.thumbnail.ThumbnailServiceImpl] Getting thumbnail by name (nodeRef=workspace://SpacesStore/10819018-ea2e-4825-b68f-d1bdb8916ff3; contentProperty={http://www.alfresco.org/model/content/1.0}content; thumbnailName=avatar)
15:43:38,319 DEBUG [org.alfresco.repo.thumbnail.ThumbnailServiceImpl] Creating thumbnail (node=workspace://SpacesStore/10819018-ea2e-4825-b68f-d1bdb8916ff3; contentProperty={http://www.alfresco.org/model/content/1.0}content; mimetype=image/png
15:43:38,319 DEBUG [org.alfresco.repo.thumbnail.ThumbnailServiceImpl] Getting thumbnail by name (nodeRef=workspace://SpacesStore/10819018-ea2e-4825-b68f-d1bdb8916ff3; contentProperty={http://www.alfresco.org/model/content/1.0}content; thumbnailName=avatar)
15:43:38,402 DEBUG [org.alfresco.repo.content.transform.ContentTransformerRegistry] Searched for transformer:
   source mimetype: image/png
   target mimetype: image/png
   transformers: []
15:43:38,402 DEBUG [org.alfresco.repo.thumbnail.ThumbnailServiceImpl] Creating thumbnail: There is no transformer to generate the thumbnail required (node=workspace://SpacesStore/10819018-ea2e-4825-b68f-d1bdb8916ff3; contentProperty={http://www.alfresco.org/model/content/1.0}content; mimetype=image/png)

edk
Champ in-the-making
Champ in-the-making
Also, I noticed just now that the personal photo uploaded in share will display when in the alfresco explorer's profile editor. But it still does not show up in Share.

clburnett
Champ in-the-making
Champ in-the-making
I am having the exact same issue (with alfresco 3Stable).

edk
Champ in-the-making
Champ in-the-making
I have been distracted with problems with Alfresco and Share under JBoss… Once done, I'll return to this issue,

maxtsai
Champ in-the-making
Champ in-the-making
I managed to get it working (I think)  on my OS X by adding errCodes to 2 in checkCommand property in the transformer.ImageMagick bean setting.
You can find more detail at:
http://iblog.maxtsai.com/2009/03/alfresco-share-problem-and-workaround.html

tyuhas
Champ in-the-making
Champ in-the-making
I'm also running into the same issue of getting a blank when uploading a profile photo in share.  In Site Colleagues, it says "Avatar" but the image shows up in the profile on faces.

We're using 3 Labs.