AnsweredAssumed Answered

opsoro

Question asked by eduandres01 on Oct 21, 2008
Latest reply on Feb 4, 2009 by jsanz@eon.es
Hi I try of get preview with opsero buy i get the error
'Expression crop is undefined on line 31, column 29 in opsoro/cropContent.get.xml.ftl.'
The problematic instruction:
———————————–
==>assignament: c=crop(node.properties.content, 1000) [on line 31, column 17 in opsoro/cropContent.get.xml.ftl]

freemarker.core.InvalidReferenceException: Expression crop is undefined on line 31, column 29 in opsoro/cropContent.get.xml.ftl.
freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:134)
freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:114)
freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
freemarker.core.Assignment.accept(Assignment.java:90)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.IfBlock.accept(IfBlock.java:82)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:208)
freemarker.core.Environment.process(Environment.java:188)
freemarker.template.Template.process(Template.java:237)
org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:201)
org.alfresco.web.scripts.AbstractWebScript.renderTemplate(AbstractWebScript.java:377)
org.alfresco.web.scripts.DeclarativeWebScript.renderFormatTemplate(DeclarativeWebScript.java:280)
org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:173)
org.alfresco.repo.web.scripts.RepositoryContainer$1.execute(RepositoryContainer.java:309)
org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:294)
org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:209)
org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:320)
org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:264)
org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:240)
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.alfresco.web.app.servlet.MTWebScriptAuthenticationFilter.doFilter(MTWebScriptAuthenticationFilter.java:102)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
org.alfresco.module.vti.VtiContextFilter.doFilter(VtiContextFilter.java:94)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
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(Thread.java:619)
org.alfresco.service.cmr.repository.TemplateException: Error during processing of the template 'Expression crop is undefined on line 31, column 29 in opsoro/cropContent.get.xml.ftl.'. Please contact your system administrator.
org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:205)
—————————–

Install instructions: Downlaod zip and extract the three contained file somewhere:

* opsoro_AMP.amp: AMP File which patches missing cropContent-Method in ftl-files. Install this using Alfresco Module Manager
* opsoro_WebScripts.zip: contains the opsoro webScript bundle. Install them: http://wiki.alfresco.com/wiki/Web_Scrip … Web_Script
* opsoro_WebApp.zip: contains opsoro client. simply extract it to tomcats webapps directory.

help
Thanks!!

Outcomes