cancel
Showing results for 
Search instead for 
Did you mean: 

Share Sites Broken on Tomcat Restart

jasondalycan
Champ in-the-making
Champ in-the-making
I just downloaded build 19808 (Alfresco Community 3.3G – as recommended due to the user@domain.tld login bug listed within this forum (http://forums.alfresco.com/en/viewtopic.php?f=47&t=26040) ) and I now face the following scenario:

    Create a site named Test with user test
    Visit the site – no issue
    Restart Alfresco, login and click on the site link – an error is thrown indicating that the view site/test/dashboard is not accessible
Following is the stack trace for this error:


javax.servlet.ServletException: Could not resolve view with name 'site/test/dashboard' in servlet with name 'Spring Surf Dispatcher Servlet'
   org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1042)
   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)

-JASON
11 REPLIES 11

jasondalycan
Champ in-the-making
Champ in-the-making
Hi There,

Has anyone else noticed this?  This issue basically renders Alfresco Community 3.3 unusable.

I have the deployment configured for multi-tenancy.

-JASON

kevinr
Star Contributor
Star Contributor
Have you tried the version latest version? i will take a look with multi-tennant enabled.

Kev

jasondalycan
Champ in-the-making
Champ in-the-making
I used build 19808 (Alfresco Community 3.3G).  Should I download a more recent snapshot?  I beleive build 19808 is only a few days old.

-JASON

kevinr
Star Contributor
Star Contributor

joe_l3
Star Contributor
Star Contributor
Hi all,
I have a similar problem after a migration from 3.0Stable to 3.3.
Steps:
1. Login as Admin the first time on Share. I have no problem. I find all contents, sites, documents and so on… Everything works correctly.
2. Shutdown tomcat
3. Start again tomcat
4 Login as Admin on Share. On my dashboard, errors occur on four dashlet:

- My Calendar and My sites dashlets
ERROR [org.springframework.extensions.webscripts.AbstractRuntime] Exception from executeScript - redirecting to status template error: 04060040 Wrapped Exception (with status template): 04060040 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/slingshot/calendar/userevents.get.js': No ContentData value exists for ID 23
org.springframework.extensions.webscripts.WebScriptException: 04060040 Wrapped Exception (with status template): 04060040 Failed to execute script 'classpath*:alfresco/templates/webscripts/org/alfresco/slingshot/calendar/userevents.get.js': No ContentData value exists for ID 23
   at org.springframework.extensions.webscripts.AbstractWebScript.createStatusException(AbstractWebScript.java:731)
My workspaces and Document I'm Editing dashlets
An error has occured in the Share component: /share/service/components/dashlets/my-workspaces.
It responded with a status of 500 - Internal Error.
Error Code Information: 500 - An error inside the HTTP server which prevented it from fulfilling the request.
Error Message: 04060005 Failed to process template org/alfresco/components/dashlets/my-workspaces.get.html.ftl
………………
Exception: freemarker.core.InvalidReferenceException - Expression numSites is undefined on line 23, column 7 in org/alfresco/components/dashlets/my-workspaces.get.html.ftl.
freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
freemarker.core.ComparisonExpression.isTrue(ComparisonExpression.java:121)
……………..
java.lang.Thread.run(Thread.java:619)
Exception: org.springframework.extensions.webscripts.WebScriptException - 04060005 Failed to process template org/alfresco/components/dashlets/my-workspaces.get.html.ftl
org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:160)

5. Login as Admin on Alfresco Explorer. When I click on Sites, space is empty :!:  and an error occur :!:
ERROR [org.alfresco.web.ui.common.Utils] A system error happened during the operation: No ContentData value exists for ID 23
org.springframework.dao.DataIntegrityViolationException: No ContentData value exists for ID 23
   at org.alfresco.repo.domain.contentdata.AbstractContentDataDAOImpl.getContentData(AbstractContentDataDAOImpl.java:172)
   at org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl.makeSerializableValue(HibernateNodeDaoServiceImpl.java:5398)
   at org.alfresco.repo.node.db.hibernate.HibernateNodeDaoServiceImpl.collapsePropertiesWithSameQNameAndListIndex(HibernateNodeDaoServiceImpl.java:5320)
I have no idea….. Smiley Indifferent no suggestions?
Thanks in advance.

andrewlove
Champ in-the-making
Champ in-the-making
We have the same problem migrating from Community 3.0 Stable to Community 3.3.  We are only using the DM repository, not share.
Having done extensive testing by migrating stage by stage:
Upgrade from 3.0->3.2 is OK
Upgrade from 3.2->3.2R is OK
Upgrade from 3.2R->3.3 gives "No ContentData" errors when accessing the repository.
A full index rebuild in 3.3 also reports many "No ContentData" errors in the Reindexer. For example:
00:05:03,131  ERROR [index.AbstractReindexComponent.threads] Reindexer   320 failed with error: No ContentData value exists for ID 298342

I believe the problem lies in one of the patches that is applied during the 3.3 upgrade process, possibly patch.convertContentUrls

This is a big problem for us as we have a big project queued up that needs 3.3 functionality.

Andrew

kevinr
Star Contributor
Star Contributor
I do not think that is the same issue referenced earlier. But it certainly sounds like a valid issue for upgrade.

Kev

kevinr
Star Contributor
Star Contributor
Raised as a separate issue: https://issues.alfresco.com/jira/browse/ALF-2741

Can you provide more info on your setup please to the JIRA item as that may help diagnose.

derek
Star Contributor
Star Contributor
We need to know the history of the server, please.