cancel
Showing results for 
Search instead for 
Did you mean: 

activity stats dashlet error

muthukimoses
Champ in-the-making
Champ in-the-making
i try to install the activity statistics dashlet http://forge.alfresco.com/projects/activitystats/ and get the following error:

i get this error:

The Web Script /share/service/alfea/components/dashlets/activity-stats 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: 08120005 Failed to execute script 'classpath*:alfresco/site-webscripts/com/alfea/components/dashlets/activity-stats/activity-stats.get.js': 08120004 TypeError: Cannot read property "connectedUsersCount" from null (jar:file:/C:/Alfresco/tomcat/shared/lib/activity-stats.jar!/alfresco/site-webscripts/com/alfea/components/dashlets/activity-stats/activity-stats.get.js#106)

Exception: org.mozilla.javascript.EcmaError - TypeError: Cannot read property "connectedUsersCount" from null (jar:file:/C:/Alfresco/tomcat/shared/lib/activity-stats.jar!/alfresco/site-webscripts/com/alfea/components/dashlets/activity-stats/activity-stats.get.js#106)

how do i solve it?
6 REPLIES 6

shahsnehal
Champ in-the-making
Champ in-the-making
Which version of alfresco? Community or Enterprise Edition?

muthukimoses
Champ in-the-making
Champ in-the-making
am using community edition 3.4d

muthukimoses
Champ in-the-making
Champ in-the-making
here is the full error log.

The Web Script /share/service/alfea/components/dashlets/activity-stats  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:   08200001 Failed to execute script 'classpath*:alfresco/site-webscripts/com/alfea/components/dashlets/activity-stats/activity-stats.get.js': 08200000 TypeError: Cannot read property "connectedUsersCount" from null (jar:file:/C:/Alfresco/tomcat/shared/lib/activity-stats.jar!/alfresco/site-webscripts/com/alfea/components/dashlets/activity-stats/activity-stats.get.js#106)
   
Exception:   org.mozilla.javascript.EcmaError - TypeError: Cannot read property "connectedUsersCount" from null (jar:file:/C:/Alfresco/tomcat/shared/lib/activity-stats.jar!/alfresco/site-webscripts/com/alfea/components/dashlets/activity-stats/activity-stats.get.js#106)
   
   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.getObjectProp(ScriptRuntime.java:1362)
   org.mozilla.javascript.gen.c16._c4(jar:file:/C:/Alfresco/tomcat/shared/lib/activity-stats.jar!/alfresco/site-webscripts/com/alfea/components/dashlets/activity-stats/activity-stats.get.js:106)
   org.mozilla.javascript.gen.c16.call(jar:file:/C:/Alfresco/tomcat/shared/lib/activity-stats.jar!/alfresco/site-webscripts/com/alfea/components/dashlets/activity-stats/activity-stats.get.js)
   org.mozilla.javascript.optimizer.OptRuntime.callName0(OptRuntime.java:108)
   org.mozilla.javascript.gen.c16._c0(jar:file:/C:/Alfresco/tomcat/shared/lib/activity-stats.jar!/alfresco/site-webscripts/com/alfea/components/dashlets/activity-stats/activity-stats.get.js:111)
   org.mozilla.javascript.gen.c16.call(jar:file:/C:/Alfresco/tomcat/shared/lib/activity-stats.jar!/alfresco/site-webscripts/com/alfea/components/dashlets/activity-stats/activity-stats.get.js)
   org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)
   org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)
   org.mozilla.javascript.gen.c16.call(jar:file:/C:/Alfresco/tomcat/shared/lib/activity-stats.jar!/alfresco/site-webscripts/com/alfea/components/dashlets/activity-stats/activity-stats.get.js)
   org.mozilla.javascript.gen.c16.exec(jar:file:/C:/Alfresco/tomcat/shared/lib/activity-stats.jar!/alfresco/site-webscripts/com/alfea/components/dashlets/activity-stats/activity-stats.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:981)
   org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:86)
   org.springframework.extensions.webscripts.PresentationContainer.executeScript(PresentationContainer.java:69)
   org.springframework.extensions.webscripts.LocalWebScriptRuntimeContainer.executeScript(LocalWebScriptRuntimeContainer.java:231)
   org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:333)
   org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:189)
   org.springframework.extensions.webscripts.WebScriptProcessor.executeBody(WebScriptProcessor.java:284)
   org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57)
   org.springframework.extensions.surf.render.RenderService.processComponent(RenderService.java:264)
   org.springframework.extensions.surf.render.bean.ComponentRenderer.body(ComponentRenderer.java:93)
   org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:75)
   org.springframework.extensions.surf.render.RenderService.renderComponent(RenderService.java:600)
   org.springframework.extensions.surf.render.RenderService.renderRegionComponents(RenderService.java:539)
   org.springframework.extensions.surf.render.RenderService.renderChromeInclude(RenderService.java:893)
   org.springframework.extensions.webscripts.ChromeIncludeFreeMarkerDirective.execute(ChromeIncludeFreeMarkerDirective.java:71)
   freemarker.core.Environment.visit(Environment.java:263)
   freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
   freemarker.core.Environment.visit(Environment.java:210)
   freemarker.core.MixedContent.accept(MixedContent.java:92)
   freemarker.core.Environment.visit(Environment.java:210)
   freemarker.core.Environment.process(Environment.java:190)
   org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:171)
   org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:345)
   org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57)
   org.springframework.extensions.surf.render.RenderService.processRenderable(RenderService.java:186)
   org.springframework.extensions.surf.render.bean.ChromeRenderer.body(ChromeRenderer.java:89)
   org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:75)
   org.springframework.extensions.surf.render.bean.ChromeRenderer.render(ChromeRenderer.java:80)
   org.springframework.extensions.surf.render.bean.RegionRenderer.body(RegionRenderer.java:92)
   org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:75)
   org.springframework.extensions.surf.render.RenderService.renderRegion(RenderService.java:492)
   org.springframework.extensions.webscripts.RegionFreemarkerTagDirective.execute(RegionFreemarkerTagDirective.java:75)
   freemarker.core.Environment.visit(Environment.java:263)
   freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
   freemarker.core.Environment.visit(Environment.java:210)
   freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
   freemarker.core.Environment.visit(Environment.java:417)
   freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
   freemarker.core.Environment.visit(Environment.java:210)
   freemarker.core.MixedContent.accept(MixedContent.java:92)
   freemarker.core.Environment.visit(Environment.java:210)
   freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
   freemarker.core.Environment.visit(Environment.java:417)
   freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
   freemarker.core.Environment.visit(Environment.java:210)
   freemarker.core.MixedContent.accept(MixedContent.java:92)
   freemarker.core.Environment.visit(Environment.java:210)
   freemarker.core.Macro$Context.runMacro(Macro.java:172)
   freemarker.core.Environment.visit(Environment.java:603)
   freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
   freemarker.core.Environment.visit(Environment.java:210)
   freemarker.core.IfBlock.accept(IfBlock.java:82)
   freemarker.core.Environment.visit(Environment.java:210)
   freemarker.core.Macro$Context.runMacro(Macro.java:172)
   freemarker.core.Environment.visit(Environment.java:603)
   freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
   freemarker.core.Environment.visit(Environment.java:210)
   freemarker.core.MixedContent.accept(MixedContent.java:92)
   freemarker.core.Environment.visit(Environment.java:210)
   freemarker.core.Environment.visit(Environment.java:395)
   freemarker.core.BodyInstruction.accept(BodyInstruction.java:93)
   freemarker.core.Environment.visit(Environment.java:210)
   freemarker.core.MixedContent.accept(MixedContent.java:92)
   freemarker.core.Environment.visit(Environment.java:210)
   freemarker.core.Macro$Context.runMacro(Macro.java:172)
   freemarker.core.Environment.visit(Environment.java:603)
   freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
   freemarker.core.Environment.visit(Environment.java:210)
   freemarker.core.MixedContent.accept(MixedContent.java:92)
   freemarker.core.Environment.visit(Environment.java:210)
   freemarker.core.Environment.process(Environment.java:190)
   org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:171)
   org.springframework.extensions.webscripts.WebTemplateProcessor.executeBody(WebTemplateProcessor.java:345)
   org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57)
   org.springframework.extensions.surf.render.RenderService.processTemplate(RenderService.java:378)
   org.springframework.extensions.surf.render.bean.TemplateInstanceRenderer.body(TemplateInstanceRenderer.java:123)
   org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:75)
   org.springframework.extensions.surf.render.bean.PageRenderer.body(PageRenderer.java:85)
   org.springframework.extensions.surf.render.AbstractRenderer.render(AbstractRenderer.java:75)
   org.springframework.extensions.surf.render.RenderService.renderPage(RenderService.java:408)
   org.springframework.extensions.surf.mvc.PageView.dispatchPage(PageView.java:388)
   org.springframework.extensions.surf.mvc.PageView.renderView(PageView.java:329)
   org.springframework.extensions.surf.mvc.AbstractWebFrameworkView.renderMergedOutputModel(AbstractWebFrameworkView.java:285)
   org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:250)
   org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1060)
   org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:798)
   org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716)
   org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647)
   org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   org.alfresco.web.site.servlet.MTAuthenticationFilter.doFilter(MTAuthenticationFilter.java:74)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   org.alfresco.web.site.servlet.SSOAuthenticationFilter.doFilter(SSOAuthenticationFilter.java:301)
   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
   org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:861)
   org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
   org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1584)
   java.lang.Thread.run(Thread.java:662)
   
Exception:   org.springframework.extensions.webscripts.WebScriptException - 08200000 TypeError: Cannot read property "connectedUsersCount" from null (jar:file:/C:/Alfresco/tomcat/shared/lib/activity-stats.jar!/alfresco/site-webscripts/com/alfea/components/dashlets/activity-stats/activity-stats.get.js#106)
   
   org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScriptImpl(JSScriptProcessor.java:328)
   
Exception:   org.springframework.extensions.webscripts.WebScriptException - 08200001 Failed to execute script 'classpath*:alfresco/site-webscripts/com/alfea/components/dashlets/activity-stats/activity-stats.get.js': 08200000 TypeError: Cannot read property "connectedUsersCount" from null (jar:file:/C:/Alfresco/tomcat/shared/lib/activity-stats.jar!/alfresco/site-webscripts/com/alfea/components/dashlets/activity-stats/activity-stats.get.js#106)
   
   org.springframework.extensions.webscripts.processor.JSScriptProcessor.executeScript(JSScriptProcessor.java:200)
   
Server:   Spring WebScripts - v1.0.0 (Release Candidate 2 763) schema 1,000
Time:   Sep 20, 2011 8:55:52 PM
   
Diagnostics:   Inspect Web Script (com/alfea/components/dashlets/activity-stats/activity-stats.get)

mikeh
Star Contributor
Star Contributor
Have you tried contacting the authors directly?

Mike

muthukimoses
Champ in-the-making
Champ in-the-making
yes i have contacted the authors but no reply. has anyone else tried this?

sdbont
Champ in-the-making
Champ in-the-making
We had exactly the same problem.
It turned out one user didn't have an email address assigned.
Filling in a email address fixed the issue.

Stijn