Uploaded image for project: 'Alfresco One Platform'
  1. Alfresco One Platform
  2. ACE-1585 R36 Cloud Regression Test
  3. ACE-1596

BM-0015: FreeMarker template error: org.springframework.dao.DataIntegrityViolationException: No property value exists for ID 2578

    Details

    • Type: Feature Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Affects Version/s: Cloud 36
    • Fix Version/s: None
    • Component/s: Benchmarking
    • Labels:
      None
    • Environment:
      DP myAlfrescoHead build 452 rel36rc1 (at the moment master)
    • Test In:
      DP
    • Sprint:
      Platform Team Sprint 5 (Rel)

      Description

      Next error was detected in the log during to bm-0015 test:

      2014-05-02 17:26:59,539 ERROR [freemarker.runtime] Error executing FreeMarker template
      FreeMarker template error:
      Method "public java.lang.String org.alfresco.module.org_alfresco_module_cloud.person.template.CloudPeople.getHomeTenant(java.lang.String)" threw an exception when invoked on org.alfresco.module.org_alfresco_module_cloud.person.template.CloudPeople object "org.alfresco.module.org_alfresco_module_cloud.person.template.CloudPeople@524b0e26". See cause exception.
      
      The failing instruction (FTL stack trace):
      ----------
      ==> #local homeTenant = people.getHomeTen...  [in template "org/alfresco/repository/person/person.lib.ftl" in macro "personJSONinner" at line 3, column 1]
          @personJSONinner person=person  [in template "org/alfresco/repository/person/person.lib.ftl" in macro "personGroupsJSON" at line 64, column 1]
          @personLib.personGroupsJSON person=pe...  [in template "org/alfresco/repository/person/person.get.json.ftl" at line 3, column 9]
          #if groups??  [in template "org/alfresco/repository/person/person.get.json.ftl" at line 2, column 1]
      ----------
      
      Java stack trace (for programmers):
      ----------
      freemarker.template.TemplateModelException: [... Exception message was already printed; see it above ...]
      	at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:135)
      	at freemarker.core.MethodCall._eval(MethodCall.java:98)
      	at freemarker.core.Expression.eval(Expression.java:111)
      	at freemarker.core.DefaultToExpression._eval(DefaultToExpression.java:116)
      	at freemarker.core.Expression.eval(Expression.java:111)
      	at freemarker.core.Assignment.accept(Assignment.java:106)
      	at freemarker.core.Environment.visit(Environment.java:265)
      	at freemarker.core.MixedContent.accept(MixedContent.java:93)
      	at freemarker.core.Environment.visit(Environment.java:265)
      	at freemarker.core.Macro$Context.runMacro(Macro.java:209)
      	at freemarker.core.Environment.visit(Environment.java:694)
      	at freemarker.core.UnifiedCall.accept(UnifiedCall.java:116)
      	at freemarker.core.Environment.visit(Environment.java:265)
      	at freemarker.core.MixedContent.accept(MixedContent.java:93)
      	at freemarker.core.Environment.visit(Environment.java:265)
      	at freemarker.core.EscapeBlock.accept(EscapeBlock.java:85)
      	at freemarker.core.Environment.visit(Environment.java:265)
      	at freemarker.core.Macro$Context.runMacro(Macro.java:209)
      	at freemarker.core.Environment.visit(Environment.java:694)
      	at freemarker.core.UnifiedCall.accept(UnifiedCall.java:116)
      	at freemarker.core.Environment.visit(Environment.java:265)
      	at freemarker.core.IfBlock.accept(IfBlock.java:84)
      	at freemarker.core.Environment.visit(Environment.java:265)
      	at freemarker.core.MixedContent.accept(MixedContent.java:93)
      	at freemarker.core.Environment.visit(Environment.java:265)
      	at freemarker.core.Environment.process(Environment.java:243)
      	at org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:218)
      	at org.springframework.extensions.webscripts.AbstractWebScript.renderTemplate(AbstractWebScript.java:958)
      	at org.springframework.extensions.webscripts.DeclarativeWebScript.renderFormatTemplate(DeclarativeWebScript.java:267)
      	at org.springframework.extensions.webscripts.DeclarativeWebScript.execute(DeclarativeWebScript.java:147)
      	at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:426)
      	at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:450)
      	at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:495)
      	at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:553)
      	at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:343)
      	at org.alfresco.module.org_alfresco_module_cloud.webscripts.TenantSwitchingRepositoryContainer.access$201(TenantSwitchingRepositoryContainer.java:52)
      	at org.alfresco.module.org_alfresco_module_cloud.webscripts.TenantSwitchingRepositoryContainer$2.doWork(TenantSwitchingRepositoryContainer.java:190)
      	at org.alfresco.repo.tenant.TenantUtil.runAsWork(TenantUtil.java:119)
      	at org.alfresco.repo.tenant.TenantUtil.runAsTenant(TenantUtil.java:88)
      	at org.alfresco.module.org_alfresco_module_cloud.webscripts.TenantSwitchingRepositoryContainer.executeScript(TenantSwitchingRepositoryContainer.java:186)
      	at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:378)
      	at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
      	at org.alfresco.repo.web.scripts.TenantWebScriptServlet.service(TenantWebScriptServlet.java:74)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.alfresco.module.org_alfresco_module_cloud.webscripts.TenantLeakLogger.doFilter(TenantLeakLogger.java:56)
      	at org.alfresco.repo.web.filter.beans.BeanProxyFilter.doFilter(BeanProxyFilter.java:82)
      	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
      	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
      	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:203)
      	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
      	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
      	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
      	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
      	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
      	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
      	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
      	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
      	at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:2378)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: org.springframework.dao.DataIntegrityViolationException: No property value exists for ID 1417
      	at org.alfresco.repo.domain.propval.AbstractPropertyValueDAOImpl.getPropertyById(AbstractPropertyValueDAOImpl.java:830)
      	at org.alfresco.repo.domain.propval.AbstractPropertyValueDAOImpl.getPropertyUniqueContext(AbstractPropertyValueDAOImpl.java:1255)
      	at org.alfresco.repo.attributes.AttributeServiceImpl.getAttribute(AttributeServiceImpl.java:103)
      	at org.alfresco.module.org_alfresco_module_cloud.usage.TenantContentUsageImpl.getUsage(TenantContentUsageImpl.java:373)
      	at org.alfresco.module.org_alfresco_module_cloud.tenant.CloudTenantAdminServiceImpl$4.doWork(CloudTenantAdminServiceImpl.java:107)
      	at org.alfresco.module.org_alfresco_module_cloud.tenant.CloudTenantAdminServiceImpl$4.doWork(CloudTenantAdminServiceImpl.java:103)
      	at org.alfresco.repo.tenant.TenantUtil.runAsWork(TenantUtil.java:119)
      	at org.alfresco.repo.tenant.TenantUtil.runAsTenant(TenantUtil.java:88)
      	at org.alfresco.repo.tenant.TenantUtil$1.doWork(TenantUtil.java:62)
      	at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548)
      	at org.alfresco.repo.tenant.TenantUtil.runAsUserTenant(TenantUtil.java:58)
      	at org.alfresco.repo.tenant.TenantUtil.runAsSystemTenant(TenantUtil.java:112)
      	at org.alfresco.module.org_alfresco_module_cloud.tenant.CloudTenantAdminServiceImpl.getUsage(CloudTenantAdminServiceImpl.java:102)
      	at org.alfresco.module.org_alfresco_module_cloud.accounts.AccountServiceImpl.getAccount(AccountServiceImpl.java:124)
      	at org.alfresco.module.org_alfresco_module_cloud.accounts.AccountServiceImpl.getAccount(AccountServiceImpl.java:144)
      	at sun.reflect.GeneratedMethodAccessor1057.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      	at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:34)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:164)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
      	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
      	at com.sun.proxy.$Proxy105.getAccount(Unknown Source)
      	at org.alfresco.module.org_alfresco_module_cloud.tenant.jscript.UserTenant.getHomeTenant(UserTenant.java:67)
      	at org.alfresco.module.org_alfresco_module_cloud.person.template.CloudPeople.getHomeTenant(CloudPeople.java:64)
      	at sun.reflect.GeneratedMethodAccessor1351.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:606)
      	at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:912)
      	at freemarker.ext.beans.SimpleMethodModel.exec(SimpleMethodModel.java:107)
      	... 68 more
      

      please see attached log (alfresco.log from node1)

      Full results and logs were uploaded to TS:

      https://ts.alfresco.com/share/page/site/bm/documentlibrary#filter=path|%2FProjects%2FBM-0015%2F2-Results%2FShort%2520Runs%2FCLOUD2_B452_Run1|&page=1

        Attachments

          Structure

            Activity

              People

              • Assignee:
                closedissues Closed Issues
                Reporter:
                dyukhnovets Dmitry Yukhnovets [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Structure Helper Panel