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

chingoodi
Champ in-the-making
Champ in-the-making
I was facing the same problem, and fixed it by installing pdf2swf properly. If you notice errors regarding 'cant find pdf2swf' in /alfresco.log then this is most likely the problem.

Dont use apt-get install swftools, instead download it from the website, ./configure, make and make install. You will need zlib1 though.

Good luck.