cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 3 WCM Tutorial Problems - no renditions

scottf
Champ on-the-rise
Champ on-the-rise
Hi,
Platform: Windows XP, Derby DB, tomcat.

I've worked my way through the WCM Tutorial found here (http://superb-east.dl.sourceforge.net/sourceforge/alfresco/WCM-Tutorial.pdf) on the full version 3 and also on labs v3c, even tried the night build from Feb 14th but still get the following problems:

Page 31 - During Step 2 of Creating a new Press Release the "Include Company footer" is always a text box, not radio buttons like it should be. (Previewing the get_company_footer_choices_simple_type.jsp always shows a blank page.) If I ignore this and type in "Alfresco" in the text box and fill in all other information as described in the tutorial I get this message displayed on the next page and only alfresco_ecm_launch.xml is created, no html or plain text file renditions as specified in the press release web form:

  Please correct the errors below then click Finish.

    * Error generating rendition using press-release-plain-text.ftl: freemarker.template.TemplateModelException: org.alfresco.service.cmr.avm.AVMNotFoundException: /www/avm_webapps/ROOT/media/releases/content/Apache has no content.
    * Error generating rendition using press-release.xsl: javax.xml.transform.TransformerException: java.lang.NullPointerException

Sorry to make this a long post, but the stack trace from tomcat is:
18:17:13,296 ERROR [org.alfresco.web.ui.common.Utils] Error generating rendition using press-release-plain-text.ftl: freemarker.template.TemplateModelException: org.alfresco.service.cmr.avm.AVMNotFoundException: /www/avm_webapps/ROOT/media/releases/content/Apache has no content.
org.alfresco.web.forms.RenderingEngine$RenderingException: freemarker.template.TemplateModelException: org.alfresco.service.cmr.avm.AVMNotFoundException: /www/avm_webapps/ROOT/media/releases/content/Apache has no content.
   at org.alfresco.web.forms.FreeMarkerRenderingEngine.render(FreeMarkerRenderingEngine.java:124)
   at org.alfresco.web.forms.RenderingEngineTemplateImpl.render(RenderingEngineTemplateImpl.java:332)
   at org.alfresco.web.forms.RenderingEngineTemplateImpl.render(RenderingEngineTemplateImpl.java:305)
   at org.alfresco.web.bean.wcm.CreateWebContentWizard.saveContent(CreateWebContentWizard.java:595)
   at org.alfresco.web.bean.wcm.CreateWebContentWizard$2.execute(CreateWebContentWizard.java:285)
   at org.alfresco.web.bean.wcm.CreateWebContentWizard$2.execute(CreateWebContentWizard.java:282)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:320)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:227)
   at org.alfresco.web.bean.wcm.CreateWebContentWizard.next(CreateWebContentWizard.java:293)
   at org.alfresco.web.bean.wizard.WizardManager.next(WizardManager.java:541)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:132)
   at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:61)
   at javax.faces.component.UICommand.broadcast(UICommand.java:109)
   at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:97)
   at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:171)
   at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)
   at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
   at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:81)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
   at java.lang.Thread.run(Thread.java:619)
Caused by: freemarker.template.TemplateModelException: org.alfresco.service.cmr.avm.AVMNotFoundException: /www/avm_webapps/ROOT/media/releases/content/Apache has no content.
   at org.alfresco.web.forms.FreeMarkerRenderingEngine$3.exec(FreeMarkerRenderingEngine.java:276)
   at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:93)
   at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
   at freemarker.core.Assignment.accept(Assignment.java:90)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.MixedContent.accept(MixedContent.java:92)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
   at freemarker.core.Environment.visit(Environment.java:415)
   at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.MixedContent.accept(MixedContent.java:92)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.Environment.process(Environment.java:188)
   at freemarker.template.Template.process(Template.java:237)
   at org.alfresco.web.forms.FreeMarkerRenderingEngine.render(FreeMarkerRenderingEngine.java:119)
   … 37 more
Caused by: org.alfresco.service.cmr.avm.AVMNotFoundException: /www/avm_webapps/ROOT/media/releases/content/Apache has no content.
   at org.alfresco.repo.avm.AVMStoreImpl.getInputStream(AVMStoreImpl.java:601)
   at org.alfresco.repo.avm.AVMRepository.getInputStream(AVMRepository.java:1055)
   at org.alfresco.repo.avm.AVMServiceImpl.getFileInputStream(AVMServiceImpl.java:106)
   at sun.reflect.GeneratedMethodAccessor537.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
   at org.alfresco.repo.transaction.CheckTransactionAdvice.invoke(CheckTransactionAdvice.java:52)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
   at org.alfresco.repo.transaction.SingleEntryTransactionResourceInterceptor.invokeInternal(SingleEntryTransactionResourceInterceptor.java:169)
   at org.alfresco.repo.transaction.SingleEntryTransactionResourceInterceptor.invoke(SingleEntryTransactionResourceInterceptor.java:138)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   at $Proxy6.getFileInputStream(Unknown Source)
   at sun.reflect.GeneratedMethodAccessor537.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
   at org.alfresco.repo.search.AVMSnapShotTriggeredIndexingMethodInterceptor.invoke(AVMSnapShotTriggeredIndexingMethodInterceptor.java:153)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
   at org.alfresco.repo.transaction.CheckTransactionAdvice.invoke(CheckTransactionAdvice.java:52)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
   at org.alfresco.repo.transaction.RetryingTransactionAdvice$1.execute(RetryingTransactionAdvice.java:70)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:320)
   at org.alfresco.repo.transaction.RetryingTransactionAdvice.invoke(RetryingTransactionAdvice.java:73)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   at $Proxy6.getFileInputStream(Unknown Source)
   at org.alfresco.repo.avm.AVMRemoteLocal.getFileInputStream(AVMRemoteLocal.java:222)
   at org.alfresco.web.forms.FormDataFunctions.parseXMLDocument(FormDataFunctions.java:74)
   at org.alfresco.web.forms.RenderingEngineTemplateImpl$3.exec(RenderingEngineTemplateImpl.java:525)
   at org.alfresco.web.forms.FreeMarkerRenderingEngine$3.exec(FreeMarkerRenderingEngine.java:271)
   … 52 more
18:17:14,281 ERROR [org.alfresco.web.forms.XSLTRenderingEngine] java.lang.NullPointerException; SystemID: file:///C:/Alfresco/dummy.xsl
18:17:14,296 ERROR [org.alfresco.web.ui.common.Utils] Error generating rendition using press-release.xsl: javax.xml.transform.TransformerException: java.lang.NullPointerException
org.alfresco.web.forms.RenderingEngine$RenderingException: javax.xml.transform.TransformerException: java.lang.NullPointerException
   at org.alfresco.web.forms.XSLTRenderingEngine.render(XSLTRenderingEngine.java:510)
   at org.alfresco.web.forms.XSLTRenderingEngine.render(XSLTRenderingEngine.java:377)
   at org.alfresco.web.forms.RenderingEngineTemplateImpl.render(RenderingEngineTemplateImpl.java:332)
   at org.alfresco.web.forms.RenderingEngineTemplateImpl.render(RenderingEngineTemplateImpl.java:305)
   at org.alfresco.web.bean.wcm.CreateWebContentWizard.saveContent(CreateWebContentWizard.java:595)
   at org.alfresco.web.bean.wcm.CreateWebContentWizard$2.execute(CreateWebContentWizard.java:285)
   at org.alfresco.web.bean.wcm.CreateWebContentWizard$2.execute(CreateWebContentWizard.java:282)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:320)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:227)
   at org.alfresco.web.bean.wcm.CreateWebContentWizard.next(CreateWebContentWizard.java:293)
   at org.alfresco.web.bean.wizard.WizardManager.next(WizardManager.java:541)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:132)
   at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:61)
   at javax.faces.component.UICommand.broadcast(UICommand.java:109)
   at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:97)
   at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:171)
   at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)
   at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
   at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:81)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
   at java.lang.Thread.run(Thread.java:619)
Caused by: javax.xml.transform.TransformerException: java.lang.NullPointerException
   at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2416)
   at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
   at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
   at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
   at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
   at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
   at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
   at org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:1374)
   at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
   at org.apache.xalan.transformer.TransformerImpl.applyTemplateToNode(TransformerImpl.java:2281)
   at org.apache.xalan.transformer.TransformerImpl.transformNode(TransformerImpl.java:1367)
   at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:709)
   at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1284)
   at org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.java:1262)
   at org.alfresco.web.forms.XSLTRenderingEngine.render(XSLTRenderingEngine.java:505)
   … 38 more
Caused by: java.lang.NullPointerException
   at org.apache.xalan.templates.ElemVariable.getValue(ElemVariable.java:280)
   at org.apache.xalan.templates.ElemVariable.execute(ElemVariable.java:246)
   at org.apache.xalan.templates.ElemForEach.transformSelectedNodes(ElemForEach.java:423)
   at org.apache.xalan.templates.ElemForEach.execute(ElemForEach.java:263)
   at org.apache.xalan.transformer.TransformerImpl.executeChildTemplates(TransformerImpl.java:2411)
   … 52 more

So basically no renditions can be created, and needless to say the rest of the tutorial cannot be completed.

Is this simply because there are bugs in Alfresco 3 WCM? I see on the downloads site it mentions to use version 2 if interested in WCM evaluation, however this it not an option for me as my company is signing support contracts for Alfresco 3 only.

Does anyone have a suggestion or solution?

I want to start creating my own custom web forms, but if the out of the box samples aren't even working it does worry me.

Thanks.
3 REPLIES 3

gavinc
Champ in-the-making
Champ in-the-making
Hi ,

The tutorial you link to is very old (1.4 timeframe) and doesn't actually correlate with the product any more. You should really use a newer version, the tutorial from 2.1 (http://downloads.sourceforge.net/alfresco/WCM2_1-Product-Evaluation-Guide.pdf?modtime=1189681995&big...) should be fine.

However, after trying the tutorial myself, I too see the issues you mention. I was able to continue by manually entering the name of the company footer previously created i.e. Alfresco.xml so you could try that to continue with the tutorial. I will continue to investigate the cause and post back here when I have some answers.

Despite these errors in the tutorial, this is an isolated use case and shouldn't prevent you from experimenting with other custom web forms.

Many thanks for reporting this.

scottf
Champ on-the-rise
Champ on-the-rise
Thanks for the reply Gavin, much appreciated.

Typing "Alfresco.xml" in that text box does indeed work slightly better. The HTML rendition gets created but the plain text version does not. Seems there's some free marker rendering exceptions. See the log below.
Thanks for the link to the more up to date tutorial, I'll work through that now, it looks quite similar, especially with regard to the press release creation (i.e. use the .ftl file) so I expect the same outcome. I'll post a reply here later to confirm.

Please let me know if you make any progress in finding the cause of the problem. Thanks.

10:24:34,986 ERROR [org.alfresco.web.ui.common.Utils] Error generating rendition using press-release-plain-text.ftl: freemarker.core.NonStringException: Error on line 21, column 33 in freemarker_template
org.alfresco.web.forms.RenderingEngine$RenderingException: freemarker.core.NonStringException: Error on line 21, column 33 in freemarker_template
Expecting a string, date or number here, Expression cf_document.name is instead a freemarker.ext.dom.NodeListModel
   at org.alfresco.web.forms.FreeMarkerRenderingEngine.render(FreeMarkerRenderingEngine.java:124)
   at org.alfresco.web.forms.RenderingEngineTemplateImpl.render(RenderingEngineTemplateImpl.java:332)
   at org.alfresco.web.forms.RenderingEngineTemplateImpl.render(RenderingEngineTemplateImpl.java:305)
   at org.alfresco.web.bean.wcm.CreateWebContentWizard.saveContent(CreateWebContentWizard.java:595)
   at org.alfresco.web.bean.wcm.CreateWebContentWizard$2.execute(CreateWebContentWizard.java:285)
   at org.alfresco.web.bean.wcm.CreateWebContentWizard$2.execute(CreateWebContentWizard.java:282)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:320)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:227)
   at org.alfresco.web.bean.wcm.CreateWebContentWizard.next(CreateWebContentWizard.java:293)
   at org.alfresco.web.bean.wizard.WizardManager.next(WizardManager.java:541)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:132)
   at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:61)
   at javax.faces.component.UICommand.broadcast(UICommand.java:109)
   at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:97)
   at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:171)
   at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)
   at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
   at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:81)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
   at java.lang.Thread.run(Thread.java:619)
Caused by: freemarker.core.NonStringException: Error on line 21, column 33 in freemarker_template
Expecting a string, date or number here, Expression cf_document.name is instead a freemarker.ext.dom.NodeListModel
   at freemarker.core.Expression.getStringValue(Expression.java:126)
   at freemarker.core.Expression.getStringValue(Expression.java:93)
   at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.MixedContent.accept(MixedContent.java:92)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.Environment.renderElementToString(Environment.java:1563)
   at freemarker.core.StringLiteral.getStringValue(StringLiteral.java:101)
   at freemarker.core.StringLiteral._getAsTemplateModel(StringLiteral.java:86)
   at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
   at freemarker.core.Environment.visit(Environment.java:555)
   at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.MixedContent.accept(MixedContent.java:92)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
   at freemarker.core.Environment.visit(Environment.java:415)
   at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.MixedContent.accept(MixedContent.java:92)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.Environment.process(Environment.java:188)
   at freemarker.template.Template.process(Template.java:237)
   at org.alfresco.web.forms.FreeMarkerRenderingEngine.render(FreeMarkerRenderingEngine.java:119)
   … 37 more
10:24:35,001 ERROR [org.alfresco.web.ui.common.Utils] Expecting a string, date or number here, Expression cf_document.name is instead a freemarker.ext.dom.NodeListModel
org.alfresco.web.forms.RenderingEngine$RenderingException: freemarker.core.NonStringException: Error on line 21, column 33 in freemarker_template
Expecting a string, date or number here, Expression cf_document.name is instead a freemarker.ext.dom.NodeListModel
   at org.alfresco.web.forms.FreeMarkerRenderingEngine.render(FreeMarkerRenderingEngine.java:124)
   at org.alfresco.web.forms.RenderingEngineTemplateImpl.render(RenderingEngineTemplateImpl.java:332)
   at org.alfresco.web.forms.RenderingEngineTemplateImpl.render(RenderingEngineTemplateImpl.java:305)
   at org.alfresco.web.bean.wcm.CreateWebContentWizard.saveContent(CreateWebContentWizard.java:595)
   at org.alfresco.web.bean.wcm.CreateWebContentWizard$2.execute(CreateWebContentWizard.java:285)
   at org.alfresco.web.bean.wcm.CreateWebContentWizard$2.execute(CreateWebContentWizard.java:282)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:320)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:227)
   at org.alfresco.web.bean.wcm.CreateWebContentWizard.next(CreateWebContentWizard.java:293)
   at org.alfresco.web.bean.wizard.WizardManager.next(WizardManager.java:541)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:132)
   at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:61)
   at javax.faces.component.UICommand.broadcast(UICommand.java:109)
   at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:97)
   at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:171)
   at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)
   at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
   at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:81)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
   at java.lang.Thread.run(Thread.java:619)
Caused by: freemarker.core.NonStringException: Error on line 21, column 33 in freemarker_template
Expecting a string, date or number here, Expression cf_document.name is instead a freemarker.ext.dom.NodeListModel
   at freemarker.core.Expression.getStringValue(Expression.java:126)
   at freemarker.core.Expression.getStringValue(Expression.java:93)
   at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.MixedContent.accept(MixedContent.java:92)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.Environment.renderElementToString(Environment.java:1563)
   at freemarker.core.StringLiteral.getStringValue(StringLiteral.java:101)
   at freemarker.core.StringLiteral._getAsTemplateModel(StringLiteral.java:86)
   at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
   at freemarker.core.Environment.visit(Environment.java:555)
   at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.MixedContent.accept(MixedContent.java:92)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:179)
   at freemarker.core.Environment.visit(Environment.java:415)
   at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.MixedContent.accept(MixedContent.java:92)
   at freemarker.core.Environment.visit(Environment.java:208)
   at freemarker.core.Environment.process(Environment.java:188)
   at freemarker.template.Template.process(Template.java:237)
   at org.alfresco.web.forms.FreeMarkerRenderingEngine.render(FreeMarkerRenderingEngine.java:119)
   … 37 more

scottf
Champ on-the-rise
Champ on-the-rise
Hi Gavin,
Just to give you an update so you don't waste any time.
I've stepped through that tutorial you pointed me to and it works well. The "include company footer" is now displayed correctly as a radio button, and all renditions are created correctly.

There's only 1 error in the log and it didn't seem to make a difference, but I'll post it here just for reference:
11:08:05,632 WARN  [org.alfresco.web.bean.wcm.CreateFormWizard] non fatal errors encountered parsing schema press-release.xsd
error parsing schema:
at line 51 column 114: src-resolve: Cannot resolve the name 'pr:company_footer_choices' to a(n) 'type definition' component.

Only problem now is deployment, as that seems slightly different in Alfresco 3 compared to that tutorial.

Thanks again.