Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-125553

FreeMarker template error throws when starting bundle

    Details

      Description

      Steps to reproduce:

      1. Starting 7.3.x bundle
      2. Add a new virtual instance

      Actual Result: The following errors throws, but it doesn't affect functionalities.

      01:59:26,628 ERROR [com.liferay.portal.template.freemarker.internal.FreeMarkerManager-2][runtime:59] Error executing FreeMarker template
      FreeMarker template error:
      Denied access to model object as it does not belong to current company 40472
      
      ----
      FTL stack trace ("~" means nesting-related):
      	- Failed at: #if user??  [in template "com.liferay.portal.template.freemarker_6.0.21_CLASS_LOADER_CONTEXT_FTL_liferay.ftl" at line 17, column 1]
      ----
      
      Java stack trace (for programmers):
      ----
      freemarker.template.TemplateModelException: [... Exception message was already printed; see it above ...]
      	at com.liferay.portal.template.freemarker.internal.RestrictedLiferayObjectWrapper.wrap(RestrictedLiferayObjectWrapper.java:232)
      	at com.liferay.portal.template.freemarker.internal.FreeMarkerTemplate$CachableDefaultMapAdapter.get(FreeMarkerTemplate.java:227)
      	at freemarker.core.Environment.getGlobalVariable(Environment.java:2102)
      	at freemarker.core.Environment.getVariable(Environment.java:2091)
      	at freemarker.core.Identifier._eval(Identifier.java:39)
      	at freemarker.core.Expression.eval(Expression.java:101)
      	at freemarker.core.ExistsExpression._eval(ExistsExpression.java:49)
      	at freemarker.core.Expression.eval(Expression.java:101)
      	at freemarker.core.Expression.evalToBoolean(Expression.java:179)
      	at freemarker.core.Expression.evalToBoolean(Expression.java:165)
      	at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:48)
      	at freemarker.core.Environment.visit(Environment.java:331)
      	at freemarker.core.Environment.visit(Environment.java:337)
      	at freemarker.core.Environment.include(Environment.java:2694)
      	at freemarker.core.Environment.initializeImportLibNamespace(Environment.java:2845)
      	at freemarker.core.Environment.importLib(Environment.java:2832)
      	at freemarker.core.Environment.importLib(Environment.java:2761)
      	at freemarker.template.Configuration.doAutoImports(Configuration.java:3511)
      	at freemarker.template.Configuration.doAutoImportsAndIncludes(Configuration.java:3496)
      	at freemarker.core.Configurable.doAutoImportsAndIncludes(Configurable.java:3149)
      	at freemarker.core.Configurable.doAutoImportsAndIncludes(Configurable.java:3149)
      	at freemarker.core.Environment.process(Environment.java:309)
      	at freemarker.template.Template.process(Template.java:383)
      	at com.liferay.portal.template.freemarker.internal.FreeMarkerTemplate.lambda$processTemplate$0(FreeMarkerTemplate.java:157)
      	at com.liferay.portal.template.freemarker.internal.FreeMarkerManager.lambda$render$1(FreeMarkerManager.java:598)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      01:59:26,635 ERROR [http-nio-8080-exec-10][FragmentRendererControllerImpl:120] Unable to render content of fragment entry 0:com.liferay.fragment.exception.FragmentEntryContentException: FreeMarker syntax is invalid.
      
      Denied access to model object as it does not belong to current company 40472
      
      ----
      FTL stack trace ("~" means nesting-related):
      	- Failed at: #if user??  [in template "com.liferay.portal.template.freemarker_6.0.21_CLASS_LOADER_CONTEXT_FTL_liferay.ftl" at line 17, column 1]
      ----
      01:59:26,640 ERROR [com.liferay.portal.template.freemarker.internal.FreeMarkerManager-2][runtime:59] Error executing FreeMarker template
      FreeMarker template error:
      Denied access to model object as it does not belong to current company 40472
      
      ----
      FTL stack trace ("~" means nesting-related):
      	- Failed at: #if user??  [in template "com.liferay.portal.template.freemarker_6.0.21_CLASS_LOADER_CONTEXT_FTL_liferay.ftl" at line 17, column 1]
      ----
      
      Java stack trace (for programmers):
      ----
      freemarker.template.TemplateModelException: [... Exception message was already printed; see it above ...]
      	at com.liferay.portal.template.freemarker.internal.RestrictedLiferayObjectWrapper.wrap(RestrictedLiferayObjectWrapper.java:232)
      	at com.liferay.portal.template.freemarker.internal.FreeMarkerTemplate$CachableDefaultMapAdapter.get(FreeMarkerTemplate.java:227)
      	at freemarker.core.Environment.getGlobalVariable(Environment.java:2102)
      	at freemarker.core.Environment.getVariable(Environment.java:2091)
      	at freemarker.core.Identifier._eval(Identifier.java:39)
      	at freemarker.core.Expression.eval(Expression.java:101)
      	at freemarker.core.ExistsExpression._eval(ExistsExpression.java:49)
      	at freemarker.core.Expression.eval(Expression.java:101)
      	at freemarker.core.Expression.evalToBoolean(Expression.java:179)
      	at freemarker.core.Expression.evalToBoolean(Expression.java:165)
      	at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:48)
      	at freemarker.core.Environment.visit(Environment.java:331)
      	at freemarker.core.Environment.visit(Environment.java:337)
      	at freemarker.core.Environment.include(Environment.java:2694)
      	at freemarker.core.Environment.initializeImportLibNamespace(Environment.java:2845)
      	at freemarker.core.Environment.importLib(Environment.java:2832)
      	at freemarker.core.Environment.importLib(Environment.java:2761)
      	at freemarker.template.Configuration.doAutoImports(Configuration.java:3511)
      	at freemarker.template.Configuration.doAutoImportsAndIncludes(Configuration.java:3496)
      	at freemarker.core.Configurable.doAutoImportsAndIncludes(Configurable.java:3149)
      	at freemarker.core.Configurable.doAutoImportsAndIncludes(Configurable.java:3149)
      	at freemarker.core.Environment.process(Environment.java:309)
      	at freemarker.template.Template.process(Template.java:383)
      	at com.liferay.portal.template.freemarker.internal.FreeMarkerTemplate.lambda$processTemplate$0(FreeMarkerTemplate.java:157)
      	at com.liferay.portal.template.freemarker.internal.FreeMarkerManager.lambda$render$1(FreeMarkerManager.java:598)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      01:59:26,648 ERROR [http-nio-8080-exec-10][FragmentRendererControllerImpl:120] Unable to render content of fragment entry 0:com.liferay.fragment.exception.FragmentEntryContentException: FreeMarker syntax is invalid.
      
      Denied access to model object as it does not belong to current company 40472
      
      ----
      FTL stack trace ("~" means nesting-related):
      	- Failed at: #if user??  [in template "com.liferay.portal.template.freemarker_6.0.21_CLASS_LOADER_CONTEXT_FTL_liferay.ftl" at line 17, column 1]
      ----
      

      Affect 7 testcase

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              melody.wu Melody Wu
              Reporter:
              linda.sui Linda Sui
              Participants of an Issue:
              Recent user:
              Sophia Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                37 weeks, 4 days ago

                  Packages

                  Version Package
                  7.3.6 CE GA7
                  7.3.X