Admin-console/orgchart-admin

При попытке открыть Оргструктура вот такая простыня
00 Description: An error inside the HTTP server which prevented it from fulfilling the request.
 
Message: 01100013 Failed to execute script 'classpath*:alfresco/site-webscripts/com/alvexcore/components/console/alvex/orgchart-admin.get.js': 01100012 TypeError: Cannot read property "alvexoc:defaultRoleName" from undefined (jar:file:/opt/alfresco/tomcat/webapps/share/WEB-INF/lib/alvex-orgchart-ee-share-1.17.jar!/alfresco/site-webscripts/com/alvexcore/components/console/alvex/orgchart-admin.get.js#11)
   
Exception: org.mozilla.javascript.EcmaError - TypeError: Cannot read property "alvexoc:defaultRoleName" from undefined (jar:file:/opt/alfresco/tomcat/webapps/share/WEB-INF/lib/alvex-orgchart-ee-share-1.17.jar!/alfresco/site-webscripts/com/alvexcore/components/console/alvex/orgchart-admin.get.js#11)
   
  org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3350)
  org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3340)
  org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3356)
  org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3375)
  org.mozilla.javascript.ScriptRuntime.undefReadError(ScriptRuntime.java:3388)
  org.mozilla.javascript.ScriptRuntime.getObjectElem(ScriptRuntime.java:1324)
  org.mozilla.javascript.gen.c18._c0(jar:file:/opt/alfresco/tomcat/webapps/share/WEB-INF/lib/alvex-orgchart-ee-share-1.17.jar!/alfresco/site-webscripts/com/alvexcore/components/console/alvex/orgchart-admin.get.js:11)
  org.mozilla.javascript.gen.c18.call(jar:file:/opt/alfresco/tomcat/webapps/share/WEB-INF/lib/alvex-orgchart-ee-share-1.17.jar!/alfresco/site-webscripts/com/alvexcore/components/console/alvex/orgchart-admin.get.js)
  org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
  org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
  org.mozilla.javascript.gen.c18.call(jar:file:/opt/alfresco/tomcat/webapps/share/WEB-INF/lib/alvex-orgchart-ee-share-1.17.jar!/alfresco/site-webscripts/com/alvexcore/components/console/alvex/orgchart-admin.get.js)
  org.mozilla.javascript.gen.c18.exec(jar:file:/opt/alfresco/tomcat/webapps/share/WEB-INF/lib/alvex-orgchart-ee-share-1.17.jar!/alfresco/site-webscripts/com/alvexcore/components/console/alvex/orgchart-admin.get.js)
  org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScriptImpl(JSScriptProcessor.java:318)
  org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScript(JSScriptProcessor.java:192)
  org.springframework.extensions.webscripts.AbstractWebScript.executeScript(AbstractWebScript.java:1305)
  org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
  org.springframework.extensions.webscripts.PresentationContainer.executeScript(PresentationContainer.java:70)
  org.springframework.extensions.webscripts.LocalWebScriptRuntimeContainer.executeScript(LocalWebScriptRuntimeContainer.java:236)
  org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:378)
  org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
  org.springframework.extensions.webscripts.WebScriptProcessor.executeBody(WebScriptProcessor.java:310)
  org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57)
  org.springframework.extensions.surf.render.RenderService.process(RenderService.java:599)
  org.springframework.extensions.surf.render.RenderService.renderSubComponent(RenderService.java:505)
  org.springframework.extensions.surf.render.RenderService.renderChromeInclude(RenderService.java:1284)
  org.springframework.extensions.directives.ChromeIncludeFreeMarkerDirective.execute(ChromeIncludeFreeMarkerDirective.java:81)
  freemarker.core.Environment.visit(Environment.java:274)
  freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
  freemarker.core.Environment.visit(Environment.java:221)
  freemarker.core.MixedContent.accept(MixedContent.java:92)
  freemarker.core.Environment.visit(Environment.java:221)
  freemarker.core.IfBlock.accept(IfBlock.java:82)
  freemarker.core.Environment.visit(Environment.java:221)
  freemarker.core.MixedContent.accept(MixedContent.java:92)
  freemarker.core.Environment.visit(Environment.java:221)
  freemarker.core.Environment.process(Environment.java:199)
  org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:171)
  org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:438)
  org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57)
  org.springframework.extensions.surf.render.RenderService.processRenderable(RenderService.java:204)
  org.springframework.extensions.surf.render.bean.ChromeRenderer.body(ChromeRenderer.java:95)
  org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77)
  org.springframework.extensions.surf.render.bean.ChromeRenderer.render(ChromeRenderer.java:86)
  org.springframework.extensions.surf.render.RenderService.processComponent(RenderService.java:432)
  org.springframework.extensions.surf.render.bean.ComponentRenderer.body(ComponentRenderer.java:94)
  org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77)
  org.springframework.extensions.surf.render.RenderService.renderComponent(RenderService.java:961)
  org.springframework.extensions.surf.render.RenderService.renderRegionComponents(RenderService.java:900)
  org.springframework.extensions.surf.render.RenderService.renderChromeInclude(RenderService.java:1263)
  org.springframework.extensions.directives.ChromeIncludeFreeMarkerDirective.execute(ChromeIncludeFreeMarkerDirective.java:81)
  freemarker.core.Environment.visit(Environment.java:274)
  freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
  freemarker.core.Environment.visit(Environment.java:221)
  freemarker.core.MixedContent.accept(MixedContent.java:92)
  freemarker.core.Environment.visit(Environment.java:221)
  freemarker.core.Environment.process(Environment.java:199)
  org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:171)
  org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:438)
  org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57)
  org.springframework.extensions.surf.render.RenderService.processRenderable(RenderService.java:204)
  org.springframework.extensions.surf.render.bean.ChromeRenderer.body(ChromeRenderer.java:95)
  org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77)
  org.springframework.extensions.surf.render.bean.ChromeRenderer.render(ChromeRenderer.java:86)
  org.springframework.extensions.surf.render.bean.RegionRenderer.body(RegionRenderer.java:99)
  org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77)
  org.springframework.extensions.surf.render.RenderService.renderRegion(RenderService.java:851)
  org.springframework.extensions.directives.RegionDirectiveData.render(RegionDirectiveData.java:91)
  org.springframework.extensions.surf.extensibility.impl.ExtensibilityModelImpl.merge(ExtensibilityModelImpl.java:408)
  org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.merge(AbstractExtensibilityDirective.java:169)
  org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.execute(AbstractExtensibilityDirective.java:137)
  freemarker.core.Environment.visit(Environment.java:274)
  freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
  freemarker.core.Environment.visit(Environment.java:221)
  freemarker.core.MixedContent.accept(MixedContent.java:92)
  freemarker.core.Environment.visit(Environment.java:221)
  freemarker.core.Environment$3.render(Environment.java:246)
  org.springframework.extensions.surf.extensibility.impl.DefaultExtensibilityDirectiveData.render(DefaultExtensibilityDirectiveData.java:119)
  org.springframework.extensions.surf.extensibility.impl.ExtensibilityModelImpl.merge(ExtensibilityModelImpl.java:408)
  org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.merge(AbstractExtensibilityDirective.java:169)
  org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.execute(AbstractExtensibilityDirective.java:137)
  freemarker.core.Environment.visit(Environment.java:274)
  freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
  freemarker.core.Environment.visit(Environment.java:221)
  freemarker.core.MixedContent.accept(MixedContent.java:92)
  freemarker.core.Environment.visit(Environment.java:221)
  freemarker.core.Environment.visit(Environment.java:406)
  freemarker.core.BodyInstruction.accept(BodyInstruction.java:93)
  freemarker.core.Environment.visit(Environment.java:221)
  freemarker.core.MixedContent.accept(MixedContent.java:92)
  freemarker.core.Environment.visit(Environment.java:221)
  freemarker.core.Macro$Context.runMacro(Macro.java:172)
  freemarker.core.Environment.visit(Environment.java:614)
  freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
  freemarker.core.Environment.visit(Environment.java:221)
  freemarker.core.MixedContent.accept(MixedContent.java:92)
  freemarker.core.Environment.visit(Environment.java:221)
  freemarker.core.Environment.process(Environment.java:199)
  org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:171)
  org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:438)
  org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57)
  org.springframework.extensions.surf.render.RenderService.processTemplate(RenderService.java:721)
  org.springframework.extensions.surf.render.bean.TemplateInstanceRenderer.body(TemplateInstanceRenderer.java:140)
  org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77)
  org.springframework.extensions.surf.render.bean.PageRenderer.body(PageRenderer.java:85)
  org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:77)
  org.springframework.extensions.surf.render.RenderService.renderPage(RenderService.java:762)
  org.springframework.extensions.surf.mvc.PageView.dispatchPage(PageView.java:411)
  org.springframework.extensions.surf.mvc.PageView.renderView(PageView.java:306)
  org.springframework.extensions.surf.mvc.AbstractWebFrameworkView.renderMergedOutputModel(AbstractWebFrameworkView.java:316)
  org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
  org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1047)
  org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:817)
  org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
  org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
  org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:549)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:621)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)
  org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)
  org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)
  org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:389)
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  org.alfresco.web.site.servlet.MTAuthenticationFilter.doFilter(MTAuthenticationFilter.java:74)
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  org.alfresco.web.site.servlet.SecurityHeadersFilter.doFilter(SecurityHeadersFilter.java:168)
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  org.alfresco.web.site.servlet.CSRFFilter.doFilter(CSRFFilter.java:313)
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:378)
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
  org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
  org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
  org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
  org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
  org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
  org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1023)
  org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
  org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852)
  java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
  java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
  java.lang.Thread.run(Thread.java:724)
   
Exception: org.springframework.extensions.webscripts.WebScriptException - 01100012 TypeError: Cannot read property "alvexoc:defaultRoleName" from undefined (jar:file:/opt/alfresco/tomcat/webapps/share/WEB-INF/lib/alvex-orgchart-ee-share-1.17.jar!/alfresco/site-webscripts/com/alvexcore/components/console/alvex/orgchart-admin.get.js#11)
   
  org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScriptImpl(JSScriptProcessor.java:328)
   
Exception: org.springframework.extensions.webscripts.WebScriptException - 01100013 Failed to execute script 'classpath*:alfresco/site-webscripts/com/alvexcore/components/console/alvex/orgchart-admin.get.js': 01100012 TypeError: Cannot read property "alvexoc:defaultRoleName" from undefined (jar:file:/opt/alfresco/tomcat/webapps/share/WEB-INF/lib/alvex-orgchart-ee-share-1.17.jar!/alfresco/site-webscripts/com/alvexcore/components/console/alvex/orgchart-admin.get.js#11)
   
  org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScript(JSScriptProcessor.java:200)
   
Server: Spring WebScripts - v1.2.0 (Release 1331) schema 1 000
Time: 10.02.2014 12:47:34

Комментарии

avasyukov аватар
Ответил Вам в JIRA - ответ
 Не помогло - ответил там же
 Попробовал установить другую версию консоли - http://share-extras.github.io/addons/js-console/
1. Скачал два файла javascript-console-repo-0.6.0.amp и javascript-console-share-0.6.0.amp 
2. Скопировал их соответственно в /opt/alfresco/amps и opt/alfresco/amps_share
3. Запустил /opt/alfresco/bin/apply_amps.sh
после этого - в консоли попробовал запустить скрипт который Вы написали - не помогло. И при этом доступ к Альфреске вообще пропал
Aviriel аватар
 Если Alvex был установлен как jar-файлы, а не как amp, то после такой установки js-console, alvex надо переустановить. У вас затерлись папки tomcat/webapps/alfresco и tomcat/webapps/share.
 Заново скопировать jar-файлы Alvex достаточно ? Или надо теперь и Alvex через amp - файлы ставить?

 Проблема в том - что указанный скрипт
var confFolder = companyhome.childrenByXPath('/sys:system/sys:alvex/alvex:data/alvex:orgchart')[0];
var conf = confFolder.childByNamePath('orgchart-view.default');
if(conf == null)
{
  logger.log( "Node created" );
  conf = confFolder.createNode('orgchart-view.default','alvexoc:UIConfig','sys:children');
}
logger.log( conf.properties );
Ничего не решил