01-23-2009 10:20 PM
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)
01-24-2009 08:30 AM
01-24-2009 11:48 AM
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. 01-24-2009 02:15 PM
log4j.logger.org.alfresco.repo.content.transform=debug
log4j.logger.org.alfresco.repo.thumbnail=debug
log4j.logger.org.alfresco.util.exec=debug
01-24-2009 03:47 PM
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)
01-26-2009 08:06 AM
02-11-2009 05:30 PM
02-11-2009 07:17 PM
03-11-2009 04:45 PM
05-08-2009 02:20 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.