cancel
Showing results for 
Search instead for 
Did you mean: 

user-calendar has responded with a status of 500

pcmonk
Champ in-the-making
Champ in-the-making
Alfresco share, version 3D, I don't know how this happened.  It was working and then it quit!

Web Script Status 500 - Internal Error

The Web Script /share/service/components/dashlets/user-calendar 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: Error during remote call. status: 500, response: { "status" : { "code" : 500, "name" : "Internal Error", "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\/slingshot\/calendar\/userevents.get.js (in classpath store file:C:\/Alfresco\/tomcat\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts)': No root sites folder exists", "exception" : "org.alfresco.web.scripts.WebScriptException - Wrapped Exception (with status template): Failed to execute script '\/org\/alfresco\/slingshot\/calendar\/userevents.get.js (in classpath store file:C:\/Alfresco\/tomcat\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts)': No root sites folder exists", "callstack" : [ "" ,"org.alfresco.error.AlfrescoRuntimeException: No root sites folder exists" ,"org.alfresco.repo.site.SiteServiceImpl.getSiteRoot(SiteServiceImpl.java:411)" ,"org.alfresco.repo.site.SiteServiceImpl.listSites(SiteServiceImpl.java:435)" ,"org.alfresco.repo.site.SiteServiceImpl.listSites(SiteServiceImpl.java:453)" ,"org.alfresco.repo.site.script.ScriptSiteService.listUserSites(ScriptSiteService.java:116)" ,"sun.reflect.GeneratedMethodAccessor714.invoke(Unknown Source)" ,"sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)" ,"java.lang.reflect.Method.invoke(Method.java:597)" ,"org.mozilla.javascript.MemberBox.invoke(MemberBox.java:155)" ,"org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:243)" ,"org.mozilla.javascript.optimizer.OptRuntime.call1(OptRuntime.java:66)" ,"org.mozilla.javascript.gen.c37._c1(AlfrescoScript:28)" ,"org.mozilla.javascript.gen.c37.call(AlfrescoScript)" ,"org.mozilla.javascript.optimizer.OptRuntime.callName(OptRuntime.java:97)" ,"org.mozilla.javascript.gen.c37._c0(AlfrescoScript:17)" ,"org.mozilla.javascript.gen.c37.call(AlfrescoScript)" ,"org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:393)" ,"org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:2834)" ,"org.mozilla.javascript.gen.c37.call(AlfrescoScript)" ,"org.mozilla.javascript.gen.c37.exec(AlfrescoScript)" ,"org.mozilla.javascript.Context.evaluateString(Context.java:1196)" ,"org.alfresco.repo.jscript.RhinoScriptProcessor.executeScriptImpl(RhinoScriptProcessor.java:389)" ,"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:791)" ,"org.alfresco.web.scripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:90)" ,"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:260)" ,"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:717)" ,"org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)" ,"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:128)" ,"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:286)" ,"org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)" ,"org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)" ,"org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)" ,"java.lang.Thread.run(Thread.java:619)" ,"org.alfresco.scripts.ScriptException: Failed to execute script '\/org\/alfresco\/slingshot\/calendar\/userevents.get.js (in classpath store file:C:\/Alfresco\/tomcat\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts)': No root sites folder exists" ,"org.alfresco.repo.jscript.RhinoScriptProcessor.execute(RhinoScriptProcessor.java:126)" ,"org.alfresco.web.scripts.WebScriptException: Wrapped Exception (with status template): Failed to execute script '\/org\/alfresco\/slingshot\/calendar\/userevents.get.js (in classpath store file:C:\/Alfresco\/tomcat\/webapps\/alfresco\/WEB-INF\/classes\/alfresco\/templates\/webscripts)': No root sites folder exists" ,"org.alfresco.web.scripts.AbstractWebScript.createStatusException(AbstractWebScript.java:595)" ], "server" : "Alfresco Labs v3.0.0 (d-dev 1460) schema 1,001", "time" : "Jan 23, 2009 5:45:41 PM" } 
Server: Alfresco Labs v3.0.0 (d-dev 1460) schema 1,001
Time: Jan 23, 2009 5:45:41 PM
  
Diagnostics: Inspect Web Script (org/alfresco/components/dashlets/user-calendar.get)



Web Script: org/alfresco/components/dashlets/user-calendar.get
Generated from /share/service/script/org/alfresco/components/dashlets/user-calendar.get on Jan 23, 2009 5:41:47 PM

Script Properties
Id: org/alfresco/components/dashlets/user-calendar.get
Short Name: My Calendar
Description: Lists the site events for the current user.
Authentication: none
Transaction: none
Method: GET
URL Template: /components/dashlets/user-calendar
Format Style: any
Default Format: html
Negotiated Formats: [undefined]
Implementation: class org.alfresco.web.scripts.DeclarativeWebScript
Extensions: [undefined]


Store: classpath:alfresco/site-webscripts


File: org/alfresco/components/dashlets/user-calendar.get.desc.xml 
<webscript>
   <shortname>My Calendar</shortname>
   <description>Lists the site events for the current user.</description>
   <family>user-dashlet</family>
   <url>/components/dashlets/user-calendar</url>
</webscript>
File: org/alfresco/components/dashlets/user-calendar.get.html.ftl 
<div class="dashlet">
   <div class="title">${msg("label.header")}</div>
   <div class="body scrollableList">
<#if eventList??>
   <#if eventList?size &gt; 0>
      <#list eventList as event>
      <div class="detail-list-item <#if event_index = 0>first-item<#elseif !event_has_next>last-item</#if>">
         <div class="icon"><img src="${url.context}/components/calendar/images/calendar-16.png" alt="event" /></div>
         <div class="details2">
            <h4><a href="${url.context}/${event.url}">${event.title?html}</a></h4>
            <div>${event.when} (${event.start} - ${event.end})</div>
         <#assign siteLink><a href='${url.context}/page/site/${event.site}/dashboard'>${event.siteTitle?html}</a></#assign>
            <div>${msg("label.in-site", siteLink)}</div>
         </div>
      </div>
      </#list>
   <#else>
      <div class="detail-list-item first-item last-item">
         <span>${msg("label.noEvents")}</span>
      </div>
   </#if>
<#else>
      <div class="detail-list-item first-item last-item">
         <span>${msg("label.error")}</span>
      </div>
</#if>
   </div>
</div>
File: org/alfresco/components/dashlets/user-calendar.get.js 
<import resource="classpath:alfresco/site-webscripts/org/alfresco/callutils.js">

var now = new Date();
var fromDate = now.getFullYear() + "/" + (now.getMonth() + 1) + "/" + now.getDate();
var uri = "/calendar/events/user?from=" + encodeURIComponent(fromDate);

var data = doGetCall(uri);
if (data !== null)
{
   model.eventList = data.events;
}
File: org/alfresco/components/dashlets/user-calendar.get.properties 
label.header=My Calendar
label.noEvents=No upcoming events
label.error=Could not load calendar data
label.in-site=in {0}


Store: classpath:alfresco/webscripts

[No implementation files]
4 REPLIES 4

mikeh
Star Contributor
Star Contributor
"org.alfresco.error.AlfrescoRuntimeException: No root sites folder exists"
Could you launch the Explorer client (at /alfresco instead of /share) as admin. Is there a "Sites" space under Company Home? Have you done anything like try to move or rename that space?

Mike

pcmonk
Champ in-the-making
Champ in-the-making
I think you are talking about the web client.  And yes, have have been poking around with that.  At first I added some spaces to the Sites space and then realized that I should not have so I removed them and created them in Share.  I was OK at this point.  I think the problem started when I saw I could rename the Sites space to "Share Sites" in CIFS.  I think that is what fouled it up.  I have since put things back the way they were but it did not solve the problem.

That's what I get for pokeing around.  LOL….

What can I do?

Thanks!

bnice
Champ in-the-making
Champ in-the-making
I have the same problem after I moved the sites folder to another spaces.
Any hints on how to correct that problem?

Thanks a lot!

bnice
Champ in-the-making
Champ in-the-making
Hi,

I had the same problem due to moving the sites-space to another folder.
I fixed the problem with another installation of Alfresco from which I exported the "sites" folder as ACP and imported it in the other system after deleting the defective sites-folder there.
For the export it is important to use all options:
Export From:    
Current Space
       Include Children
       Include this Space
       Run export in background

Maybe there are other ways, but that way I finally fixed the problem.