cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco share (Comunity, 4.0d) Error in my-docs-editing

tzemljak
Champ in-the-making
Champ in-the-making
Hi, one od our Alfresco end users is getting error bellow when loging in to her dashboard. What can be done to remove the error ?

An error has occured in the Share component: /share/service/components/dashlets/my-docs-editing.
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: 07160008 Failed to process template org/alfresco/components/dashlets/my-docs-editing.get.html.ftl
Server: Alfresco Spring WebScripts - v1.0.0 (Release 958) schema 1.000
Time: 16.08.2012. 11:43:27
Click here to view full technical information on the error.
Exception: freemarker.core.InvalidReferenceException - Expression content.blogPosts is undefined on line 99, column 9 in org/alfresco/components/dashlets/my-docs-editing.get.html.ftl.
freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:125)
freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:135)
freemarker.core.Dot._getAsTemplateModel(Dot.java:78)
freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
freemarker.core.BuiltIn$sizeBI._getAsTemplateModel(BuiltIn.java:691)
freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
freemarker.core.ComparisonExpression.isTrue(ComparisonExpression.java:111)
freemarker.core.IfBlock.accept(IfBlock.java:80)
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.AbstractWebScript.renderTemplate(AbstractWebScript.java:779)
org.springframework.extensions.webscripts.DeclarativeWebScript.renderFormatTemplate(DeclarativeWebScript.java:267)
org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:147)
org.springframework.extensions.webscripts.PresentationContainer.executeScript(PresentationContainer.java:70)
org.springframework.extensions.webscripts.LocalWebScriptRuntimeContainer.executeScript(LocalWebScriptRuntimeContainer.java:239)
org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:372)
org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
org.springframework.extensions.webscripts.WebScriptProcessor.executeBody(WebScriptProcessor.java:311)
org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57)
org.springframework.extensions.surf.render.RenderService.process(RenderService.java:600)
org.springframework.extensions.surf.render.RenderService.renderSubComponent(RenderService.java:506)
org.springframework.extensions.surf.render.RenderService.renderChromeInclude(RenderService.java:1296)
org.springframework.extensions.webscripts.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:455)
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:433)
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:962)
org.springframework.extensions.surf.render.RenderService.renderRegionComponents(RenderService.java:901)
org.springframework.extensions.surf.render.RenderService.renderChromeInclude(RenderService.java:1275)
org.springframework.extensions.webscripts.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:455)
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:852)
org.springframework.extensions.surf.extensibility.impl.RegionDirectiveData.render(RegionDirectiveData.java:90)
org.springframework.extensions.surf.extensibility.impl.ExtensibilityModelImpl.merge(ExtensibilityModelImpl.java:319)
org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.merge(AbstractExtensibilityDirective.java:177)
org.springframework.extensions.surf.extensibility.impl.AbstractExtensibilityDirective.execute(AbstractExtensibilityDirective.java:145)
freemarker.core.Environment.visit(Environment.java:274)
freemarker.core.UnifiedCall.accept(UnifiedCall.java:126)
freemarker.core.Environment.visit(Environment.java:221)
freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
freemarker.core.Environment.visit(Environment.java:428)
freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
freemarker.core.Environment.visit(Environment.java:221)
freemarker.core.MixedContent.accept(MixedContent.java:92)
freemarker.core.Environment.visit(Environment.java:221)
freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
freemarker.core.Environment.visit(Environment.java:428)
freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
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.IfBlock.accept(IfBlock.java:82)
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.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:455)
org.springframework.extensions.surf.render.AbstractProcessor.execute(AbstractProcessor.java:57)
org.springframework.extensions.surf.render.RenderService.processTemplate(RenderService.java:722)
org.springframework.extensions.surf.render.bean.TemplateInstanceRenderer.body(TemplateInstanceRenderer.java:123)
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:763)
org.springframework.extensions.surf.mvc.PageView.dispatchPage(PageView.java:419)
org.springframework.extensions.surf.mvc.PageView.renderView(PageView.java:314)
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: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:307)
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.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
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 - 07160008 Failed to process template org/alfresco/components/dashlets/my-docs-editing.get.html.ftl
org.springframework.extensions.webscripts.processor.FTLTemplateProcessor.process(FTLTemplateProcessor.java:175)
18 REPLIES 18

acarpine
Champ in-the-making
Champ in-the-making
The issue related to the cert has been announced at https://forums.alfresco.com/en/viewtopic.php?f=2&t=45940

chrisliv
Champ in-the-making
Champ in-the-making
I'm trying to update my (Mac) local install before fixing my (Linux) production sever.

[EDIT - my local install still has the same issue (perhaps it's because I don't have administrator access? I went ahead and updated my Linux production server, new 'Generating new SSL certificate' was produced = all good)]

I followed the 'Generating new SSL certificates' exactly and Terminal generated a 'new certificate' and said to ensure dir.keystore… etc

However (same problem), in Catalnia/out log…I'm still receiving;
sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:117)

I'm not a strong server tech but it seems no JAVA folder is produced, and hence no certificate, is that right?
In the 'generate_keystores.sh file it states; CERTIFICATE_HOME=$HOME …. I can't find where 'HOME' is set?

any help appreciated

————TERMINAL ————
sh generate_keystores.sh
Using CATALINA_BASE:   /Applications/alfresco-4.0.dFRESH/tomcat
Using CATALINA_HOME:   /Applications/alfresco-4.0.dFRESH/tomcat
Using CATALINA_TMPDIR: /Applications/alfresco-4.0.dFRESH/tomcat/temp
Using JRE_HOME:        /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Using CLASSPATH:       /Applications/alfresco-4.0.dFRESH/tomcat/bin/bootstrap.jar
Killing: 9806
/Applications/alfresco-4.0.dFRESH/tomcat/scripts/ctl.sh : tomcat stopped
/Applications/alfresco-4.0.dFRESH/openoffice.app/scripts/ctl.sh : openoffice stopped
/Applications/alfresco-4.0.dFRESH/postgresql/scripts/ctl.sh : postgresql stopped
generate_keystores.sh: line 36: /Applications/alfresco-4.0.dFRESH/java/bin/keytool: No such file or directory
generate_keystores.sh: line 37: /Applications/alfresco-4.0.dFRESH/java/bin/keytool: No such file or directory
generate_keystores.sh: line 38: /Applications/alfresco-4.0.dFRESH/java/bin/keytool: No such file or directory
generate_keystores.sh: line 39: /Applications/alfresco-4.0.dFRESH/java/bin/keytool: No such file or directory
generate_keystores.sh: line 42: /Applications/alfresco-4.0.dFRESH/java/bin/keytool: No such file or directory
generate_keystores.sh: line 44: /Applications/alfresco-4.0.dFRESH/java/bin/keytool: No such file or directory
generate_keystores.sh: line 46: /Applications/alfresco-4.0.dFRESH/java/bin/keytool: No such file or directory
generate_keystores.sh: line 48: /Applications/alfresco-4.0.dFRESH/java/bin/keytool: No such file or directory
cp: /Users/shadowfax/ssl.keystore: No such file or directory
cp: /Users/shadowfax/ssl.truststore: No such file or directory
cp: /Users/shadowfax/browser.p12: No such file or directory
cp: /Users/shadowfax/ssl.repo.client.keystore: No such file or directory
cp: /Users/shadowfax/ssl.repo.client.truststore: No such file or directory
cp: /Users/shadowfax/ssl.repo.client.keystore: No such file or directory
cp: /Users/shadowfax/ssl.repo.client.truststore: No such file or directory
Certificate update complete
Please ensure that you set dir.keystore=/Applications/alfresco-4.0.dFRESH/alf_data/keystore in alfresco-global.properties

——————–
[edit]
For Newbie's like me; although in the above Terminal log it states 'Certificate update completed' = it's not. A successfully produced certificate should have a terminal log like this;
sh generate_keystores.sh
Using CATALINA_BASE:   /opt/alfresco-4.0.d/tomcat
Using CATALINA_HOME:   /opt/alfresco-4.0.d/tomcat
Using CATALINA_TMPDIR: /opt/alfresco-4.0.d/tomcat/temp
Using JRE_HOME:        /opt/alfresco-4.0.d/java
Using CLASSPATH:       /opt/alfresco-4.0.d/tomcat/bin/bootstrap.jar
Killing: 32604
/opt/alfresco-4.0.d/tomcat/scripts/ctl.sh : tomcat stopped
/opt/alfresco-4.0.d/postgresql/scripts/ctl.sh : postgresql stopped
Certificate stored in file </root/ssl.repo.crt>
Certificate stored in file </root/ssl.repo.client.crt>
Certificate was added to keystore
Certificate was added to keystore
Certificate was added to keystore
Certificate update complete
Please ensure that you set dir.keystore=/opt/alfresco-4.0.d/alf_data/keystore in alfresco-global.properties

bye

acarpine
Champ in-the-making
Champ in-the-making
Hi chrisliv,
what version are you tring to update?

Have you changed the ALFRESCO_HOME var in the generate_keystores.sh script?
Could you find the java directory in Alfresco installation dir (smt like /opt/alfresco/java/)?
Could you find the java directory in Alfresco installation dir (smt like /opt/alfresco/java/bin/keytool)?

No keytool no SSL cert update…

let us know
andrea

chrisliv
Champ in-the-making
Champ in-the-making
Comm 4.0.d MAC

There is no 'java' folder in my alfresco installation directory. I just installed 4.0.e as well and there is no 'java' folder. They are not hidden either.

thanks
chris

acarpine
Champ in-the-making
Champ in-the-making
I don't have my mac now so I can't check my Alfresco installation directory but in Windows and Linux installation the Java dir is setup during the installation process. Anyway you can just change the JAVA_HOME directory in the generate_keystore.sh script so that points to a valid java dir (where there is a keytool).

keep us upd
andrea

chrisliv
Champ in-the-making
Champ in-the-making
I have actually turned my tail and run, there is some info here on the Java home on Mac;
https://developer.apple.com/library/mac/#qa/qa2001/qa1170.html

however, it's quicker for me to rebuild in 4.0.e at this stage so =  no solution I'm afraid

cheers

ttownsend
Champ on-the-rise
Champ on-the-rise
Hi all - I came here to look up this problem exactly.  Since my 4.0.c install (Ubuntu 12.04LTS Desktop) only started throwing the same error recently, it seems to make sense that this is the SOLR SSL cert having expired (as mentioned in this thread: https://forums.alfresco.com/en/viewtopic.php?f=2&t=45940). 

If you're using an Alfresco CE 4.x version, it seems the fix is here for creating a new SOLR SSL cert for secure communications with Alfresco:  http://wiki.alfresco.com/wiki/Alfresco_And_SOLR#Generating_new_SSL_certificates

Since I run my Alfresco in a VM, I'm going to take a snapshot now and then try to make time to apply this fix this week and report back here with my findings.

While I'm at it, and out of curiosity, is 4.0.d/e a game changer for features?  Or is 4.0.c a good install for vanilla usage?  Again, just curious on this last point.
Cheers for now,
Trevor

acarpine
Champ in-the-making
Champ in-the-making
While I'm at it, and out of curiosity, is 4.0.d/e a game changer for features?  Or is 4.0.c a good install for vanilla usage?  Again, just curious on this last point.
Cheers for now,
Trevor
You can see the list of the issues fixed since 4.0c.
If you can choose go with 4.0.d some of the fixed issues are pretty important.

ttownsend
Champ on-the-rise
Champ on-the-rise
Oaky, back to the OP's original "error in my-docs-editing", it seems that it is the issue identified in https://forums.alfresco.com/en/viewtopic.php?f=9&t=45940

I fixed this using the prescribed method in http://wiki.alfresco.com/wiki/Alfresco_And_SOLR#Generating_new_SSL_certificates

All works fine, no errors either in Share UI or catalina.out

Thanks Alfresco peeps!

Now, just to upgrade from 4.0.c to 4.0.d painlessly (hopefully!).