AnsweredAssumed Answered

Alfresco 3 WCM Tutorial Problems - no renditions

Question asked by scottf on Feb 17, 2009
Latest reply on Feb 18, 2009 by scottf
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.

Outcomes