AnsweredAssumed Answered

No encuentra funcion toLowerCase javaScript

Question asked by fstnboy on Feb 16, 2010
Latest reply on Feb 16, 2010 by fstnboy
Buenas,

Tengo un webscript que deberia funcionar correctamente, lo tenemos en la version 3.1.1 y funciona bien, pero al instalarla en la 3.2 nos da un error de que la funcion "toLowerCase" no la encuentra… El error completo:

10:10:57,349 User:JFORSTER ERROR [web.scripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 01160028 Wrapped Exception (with status template): 01160027 Failed to execute script '/org/zaizi/alfresco/hithighlighter/createHTML.post.atom.js (in classpath store file:/home/alfresco/app/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts)': 01160026 TypeError: Cannot find function toLowerCase. (file:/home/alfresco/app/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/zaizi/alfresco/hithighlighter/createHTML.post.atom.js#42)
org.alfresco.web.scripts.WebScriptException: 01160028 Wrapped Exception (with status template): 01160027 Failed to execute script '/org/zaizi/alfresco/hithighlighter/createHTML.post.atom.js (in classpath store file:/home/alfresco/app/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts)': 01160026 TypeError: Cannot find function toLowerCase. (file:/home/alfresco/app/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/zaizi/alfresco/hithighlighter/createHTML.post.atom.js#42)
        at org.alfresco.web.scripts.AbstractWebScript.createStatusException(AbstractWebScript.java:613)
        at org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:165)
        at org.alfresco.repo.web.scripts.RepositoryContainer$2.execute(RepositoryContainer.java:372)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:327)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:422)
        at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:439)
        at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:303)
        at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:306)
        at org.alfresco.web.scripts.AbstractRuntime.executeScript(AbstractRuntime.java:183)
        at org.alfresco.web.scripts.servlet.WebScriptServlet.service(WebScriptServlet.java:122)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.alfresco.repo.webdav.auth.BaseKerberosAuthenticationFilter.doFilter(BaseKerberosAuthenticationFilter.java:422)
        at sun.reflect.GeneratedMethodAccessor391.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.alfresco.repo.management.subsystems.ChainingSubsystemProxyFactory$1.invoke(ChainingSubsystemProxyFactory.java:109)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy164.doFilter(Unknown Source)
        at org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:88)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Unknown Source)
Caused by: org.alfresco.scripts.ScriptException: 01160027 Failed to execute script '/org/zaizi/alfresco/hithighlighter/createHTML.post.atom.js (in classpath store file:/home/alfresco/app/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts)': 01160026 TypeError: Cannot find function toLowerCase. (file:/home/alfresco/app/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/zaizi/alfresco/hithighlighter/createHTML.post.atom.js#42)
        at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:178)
        at org.alfresco.repo.processor.ScriptServiceImpl.executeScript(ScriptServiceImpl.java:274)
        at org.alfresco.repo.web.scripts.RepositoryScriptProcessor.executeScript(RepositoryScriptProcessor.java:108)
        at org.alfresco.web.scripts.AbstractWebScript.executeScript(AbstractWebScript.java:819)
        at org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:90)
        … 32 more
Caused by: org.alfresco.error.AlfrescoRuntimeException: 01160026 TypeError: Cannot find function toLowerCase. (file:/home/alfresco/app/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/zaizi/alfresco/hithighlighter/createHTML.post.atom.js#42)
        at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:472)
        at org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:174)
        … 36 more
Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot find function toLowerCase. (file:/home/alfresco/app/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/zaizi/alfresco/hithighlighter/createHTML.post.atom.js#42)
        at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
        at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
        at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356)
        at org.mozilla.javascript.ScriptRuntime.typeError1(ScriptRuntime.java:3368)
        at org.mozilla.javascript.ScriptRuntime.notFunctionError(ScriptRuntime.java:3428)
        at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2052)
        at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:117)
        at org.mozilla.javascript.gen.c8._c0(file:/home/alfresco/app/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/zaizi/alfresco/hithighlighter/createHTML.post.atom.js:42)
        at org.mozilla.javascript.gen.c8.call(file:/home/alfresco/app/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/zaizi/alfresco/hithighlighter/createHTML.post.atom.js)
        at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
        at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
        at org.mozilla.javascript.gen.c8.call(file:/home/alfresco/app/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/zaizi/alfresco/hithighlighter/createHTML.post.atom.js)
        at org.mozilla.javascript.gen.c8.exec(file:/home/alfresco/app/alfresco/tomcat/webapps/alfresco/WEB-INF/classes/alfresco/templates/webscripts/org/zaizi/alfresco/hithighlighter/createHTML.post.atom.js)
        at org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:456)
        … 37 more

me falta alguna libreria o algo? La instalacion es la siguiente: Alfresco 3.2 sobre Open Suse 11 con tomcat 6.0.18 con JVM 6.13

Outcomes