cancel
Showing results for 
Search instead for 
Did you mean: 

Error generating rendition ...: Store not found.

mark_smithson
Champ in-the-making
Champ in-the-making
Using Labs 3C, I have created a simple web form to manage html as below.

<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
   xmlns:alf="http://www.alfresco.org"
   xmlns:html="http://dm-schema.net/alfresco/html"
   targetNamespace="http://dm-schema.net/alfresco/html"
   elementFormDefault="qualified">
   <xs:element name="html">
      <xs:complexType>
         <xs:sequence>
               <xs:element name="content" type="xs:string" minOccurs="0" nillable="true"/>   
         </xs:sequence>
      </xs:complexType>
   </xs:element>
</xs:schema>

and an associated xsl rendition


<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xhtml="http://www.w3.org/1999/xhtml"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   xmlns:html="http://dm-schema.net/alfresco/html"
   exclude-result-prefixes="xhtml html">
   <xsl:output method="text" encoding="UTF-8" omit-xml-declaration="yes"/>
   <xsl:template match="/">
      <xsl:apply-templates select="html:html/html:content"/>
   </xsl:template>
   <xsl:template match="html:html/html:content">
      <xsl:value-of select="."/>
   </xsl:template>
</xsl:stylesheet>

When you create new content using this webform, the form renders correctly, but Alfresco cannot generate the rendition. The error "Error generating rendition using html.xsl: Store not found." is displayed in the UI and the following in the logs.

23:35:44,803 User:admin ERROR [ui.common.Utils] Error generating rendition using html.xsl: Store not found.
org.alfresco.service.cmr.avm.AVMNotFoundException: Store not found.
   at org.alfresco.repo.avm.AVMRepository.queryStorePropertyKey(AVMRepository.java:2343)
   at org.alfresco.repo.avm.AVMServiceImpl.queryStorePropertyKey(AVMServiceImpl.java:1154)
   at sun.reflect.GeneratedMethodAccessor711.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.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 $Proxy3.queryStorePropertyKey(Unknown Source)
   at sun.reflect.GeneratedMethodAccessor711.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:294)
   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 $Proxy3.queryStorePropertyKey(Unknown Source)
   at org.alfresco.wcm.util.WCMUtil.lookupStoreDNS(WCMUtil.java:472)
   at org.alfresco.wcm.util.WCMUtil.buildStoreUrl(WCMUtil.java:429)
   at org.alfresco.web.bean.wcm.AVMUtil.buildStoreUrl(AVMUtil.java:278)
   at org.alfresco.web.forms.RenderingEngineTemplateImpl.buildModel(RenderingEngineTemplateImpl.java:380)
   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:294)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:209)
   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:269)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at org.alfresco.web.app.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:81)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
   at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
   at java.lang.Thread.run(Thread.java:619)

I have tested the xsl with the generated xml from the webform and it renders correctly without errors.

Is this a bug - is there a workaround?
7 REPLIES 7

mark_smithson
Champ in-the-making
Champ in-the-making
I have repeated this in a brand new web project which I named "simple".

Does anyone else get the same result, or is it just me?

ktsoi
Champ in-the-making
Champ in-the-making
I'm having the same problem on a fresh install of lab 3c using the example press release examples.  Is this is bug in the release or a mis config?  Thanks.

timurso
Champ in-the-making
Champ in-the-making
same problem! does somebody have a workaround or bugfix?

kalpakuri
Champ in-the-making
Champ in-the-making
Hi All,

Even I am experiencing the same problem with ALfresco labs 3c.
Can any one urgently help in this issue.

regards
Siddhartha K

mpecero
Champ in-the-making
Champ in-the-making
Hello!

Whe are having the same problem with the Alfresco labs 3c and with Alfresco labs 3d.

Regards,
Maxi.

mtaal
Champ in-the-making
Champ in-the-making
I have encountered the same issue on 3c.

I noticed this post from a few days back:
http://forums.alfresco.com/en/viewtopic.php?f=30&t=7467

Can this be a solution to the problem we are all encountering in this thread?

gr. Martin

zmicer
Champ in-the-making
Champ in-the-making
Hi,All.

Martin was right, the proposed link http://forums.alfresco.com/en/viewtopic.php?f=30&t=7467 contains a fix. I have checked it, and it works fine.

Be noticed this fix is about rendering issue but not on dynamic preview without started virtual server. For the case of dynamic preview - check my last message here http://forums.alfresco.com/en/viewtopic.php?f=30&t=8947&p=52519#p52519