Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LPS-90405 Remove parser and loader from Soy #1236

Closed
wants to merge 4 commits into from

Conversation

dantewang
Copy link

@tinatian As confirmed with Soy team, these can be removed since Soy goes with bundle scanning upon activation approach.

cc @jbalsas @izaera @brunobasto

@liferay-continuous-integration
Copy link
Collaborator

To conserve resources, the PR Tester does not automatically run for every pull.

If your code changes were already tested in another pull, reference that pull in this pull so the test results can be analyzed.

If your pull was never tested, comment "ci:test" to run the PR Tester for this pull.

@dantewang
Copy link
Author

ci:test

@liferay-continuous-integration
Copy link
Collaborator

❌ ci:test - 56 out of 184 jobs passed in 2 hours 39 minutes 30 seconds 274 ms

Click here for more details.

Base Branch:

Branch Name: master
Branch GIT ID: f1285dd054305e119d628963b9a16afd3f761bf0

Copied in Private Modules Branch:

Branch Name: master-private
Branch GIT ID: a9592e2d7fea42208023d053f0e6fedf4f6a2380

56 out of 184 jobs PASSED

128 Failed Jobs:

56 Successful Jobs:
For more details click here.

Failures unique to this pull:

  1. test-portal-acceptance-pullrequest-batch(master)/functional-smoke-tomcat90-mariadb102-jdk8/0
    Job Results:

    0 Tests Passed.
    1 Test Failed.

    1. AXIS_VARIABLE=0,label_exp=!master #280765
      delete-liferay-home:
         [delete] Deleting directory /opt/dev/projects/github/liferay-portal/bundles/work
         [delete] Deleting directory /tmp/sprite
           [exec] ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/opt/mariadb/data/mariadb.sock' (2)
           [echo] The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:340: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test-batch.xml:366: The following error occurred while executing this line:
           [echo] /opt/dev/projects/github/liferay-portal/build-test.xml:9615: exec returned: 1
            [get] Getting: http://test-1-11/job/test-portal-acceptance-pullrequest-batch(master)/AXIS_VARIABLE=0,label_exp=!master/280765//consoleText
            [get] To: /opt/dev/projects/github/liferay-portal/20190212111547649.txt
         [delete] Deleting: /opt/dev/projects/github/liferay-portal/20190212111547649.txt
         [delete] Deleting: /opt/dev/projects/github/liferay-portal/null94208000.properties
  2. test-portal-acceptance-pullrequest-batch(master)/lpkg-override-jdk8
    Job Results:

    3 Tests Passed.
    2 Tests Failed.

    1. AXIS_VARIABLE=0,label_exp=!master #246805
      1. PortalLogAssertorTest.testScanXMLLog
        junit.framework.AssertionFailedError: 
        bundle org.apache.felix.scr:2.1.14 (55)Circular reference detected trying to get service {com.liferay.dynamic.data.mapping.expression.DDMExpressionFactory}={service.id=1147, service.bundleid=773, service.scope=bundle, component.name=com.liferay.dynamic.data.mapping.expression.internal.DDMExpressionFactoryImpl, component.id=2577}
         stack of references: ServiceReference: {com.liferay.dynamic.data.mapping.form.builder.internal.converter.DDMFormRuleConverter}={service.id=1149, service.bundleid=542, service.scope=bundle, component.name=com.liferay.dynamic.data.mapping.form.builder.internal.converter.DDMFormRuleConverter, component.id=1426}
        ServiceReference: {com.liferay.dynamic.data.mapping.expression.DDMExpressionFactory}={service.id=1147, service.bundleid=773, service.scope=bundle, component.name=com.liferay.dynamic.data.mapping.expression.internal.DDMExpressionFactoryImpl, component.id=2577}
        ServiceReference: {com.liferay.dynamic.data.mapping.expression.DDMExpressionFunctionTracker}={service.id=1146, service.bundleid=773, service.scope=bundle, ComponentFactory.target=(component.factory=com.liferay.dynamic.data.mapping.expression.DDMExpressionFunctionFactory), component.name=com.liferay.dynamic.data.mapping.expression.internal.DDMExpressionFunctionTrackerImpl, component.id=2578}
        ServiceReference: {com.liferay.dynamic.data.mapping.expression.DDMExpressionFunction$Function2}={service.id=1167, service.bundleid=470, service.scope=bundle, comp...
      2. PortalLogAssertorTest.testScanOSGiLog
        junit.framework.AssertionFailedError: 
        Portal log assert failure, OSGi log found: /opt/dev/projects/github/liferay-portal/bundles/osgi/state/1549970098933.log:
        !SESSION 2019-02-12 11:15:21.070 -----------------------------------------------
        eclipse.buildId=unknown
        java.version=1.8.0_121
        java.vendor=Oracle Corporation
        BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
        

        !ENTRY org.apache.felix.scr 4 0 2019-02-12 11:15:21.070
        !MESSAGE bundle org.apache.felix.scr:2.1.14 (55)Circular reference detected trying to get service {com.liferay.dynamic.data.mapping.expression.DDMExpressionFactory}={service.id=1147, service.bundleid=773, service.scope=bundle, component.name=com.liferay.dynamic.data.mapping.expression.internal.DDMExpressionFactoryImpl, component.id=2577}
        stack of references: ServiceReference: {com.liferay.dynamic.data.mapping.form.builder.internal.converter.DDMFormRuleConverter}={service.id=1149, service.bundleid=542, service.scope=bundle, component.name=com.liferay.dynamic.data.mapping.form.builder.internal.converter.DDMFormRuleConverter, component.id=1426}
        ServiceReference: {com.liferay.dynamic.data.mapping.expression.DDMExpressionFactory}={service.id=1147, service.bundleid=773, service.scope=bundle, component.name=com.liferay.dynamic.data.mapping.expression.internal.DDMExpressionFactoryImpl, component.id=2577}
        ServiceReference: {com.liferay.dynamic.data.mapping.expression.DDMExpressionFunctionTracker}={service.id=1146, service.bundleid=773, service.scope=b...

  3. test-portal-acceptance-pullrequest-batch(master)/modules-integration-db2111-jdk8
    Job Results:

    0 Tests Passed.
    2 Tests Failed.

    1. AXIS_VARIABLE=17,label_exp=!master #275347
      1. MBMessageIndexerSummaryTest.testSummarySearchFullTitle
        java.lang.AssertionError: [{content_zh_CN=[MB Thread Message Body], entryClassPK=[67254], localized_title_sv_SE=[mb thread message subject], groupId=[20127], publishDate=[20190212111820], discussion=[false], classNameId=[0], createDate_sortable=[1549970300156], localized_title_nl_NL=[mb thread message subject], threadId=[67255], title_ja_JP=[MB Thread Message Subject], classPK=[0], content_sv_SE=[MB Thread Message Body], localized_title_zh_CN=[mb thread message subject], scopeGroupId=[20127], content_fr_FR=[MB Thread Message Body], modified=[20190212111820], title_fi_FI=[MB Thread Message Subject], localized_title_ar_SA_sortable=[mb thread message subject], modified_sortable=[1549970300160], localized_title_pt_BR=[mb thread message subject], localized_title_ca_ES_sortable=[mb thread message subject], content_en_US=[MB Thread Message Body], localized_title_zh_CN_sortable=[mb thread message subject], localized_title_ca_ES=[mb thread message subject], localized_title_hu_HU_sortable=[mb thread message subject], visible=[true], localized_title_nl_NL_sortable=[mb thread message subject], content_de_DE=[MB Thread Message Body], content_es_ES=[MB Thread Message Body], priority=[0.0], content_ar_SA=[MB Thread Message Body], companyId=[20100], rootEntryClassPK=[67254], content_nl_NL=[MB Thread Message Body], title_sv_SE=[MB Thread Message Subject], localized_title_fr_FR=[mb thread message subject], title_en_US=[MB Thread Message Subject], title_de_DE=[MB Thread Message Subject], sta...
    2. AXIS_VARIABLE=19,label_exp=!master #275347
      1. MyUserAccountCollectionResourceTest.testGetPageItems
        java.lang.AssertionError: Thread Thread[http-nio-8080-exec-10,5,main] caught concurrent failure: java.lang.AssertionError: {level=ERROR, loggerName=com.liferay.portal.service.impl.GroupLocalServiceImpl, message=Unable to delete data for portlet null in group 43771
        java.lang.AssertionError: {level=ERROR, loggerName=com.liferay.portal.service.impl.GroupLocalServiceImpl, message=Unable to delete data for portlet null in group 43771
        at com.liferay.portal.test.rule.LogAssertionAppender.append(LogAssertionAppender.java:61)
        at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
        at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
        at org.apache.log4j.Category.callAppenders(Category.java:206)
        at org.apache.log4j.Category.forcedLog(Category.java:391)
        at org.apache.log4j.Category.log(Category.java:856)
        at com.liferay.portal.log.Log4jLogImpl.error(Log4jLogImpl.java:54)
        at com.liferay.portal.kernel.log.LogWrapper.error(LogWrapper.java:69)
        at com.liferay.portal.service.impl.GroupLocalServiceImpl.deletePortletData(GroupLocalServiceImpl.java:4213)
        at com.liferay.portal.service.impl.GroupLocalServiceImpl.deleteGroup(GroupLocalServiceImpl.java:995)
        at sun.reflect.GeneratedMethodAccessor684.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.liferay.portal.spring.aop.AopMethodInvocation.proce...
      2. OrganizationIndexerIndexedFieldsTest.testIndexedFields
        java.lang.AssertionError: {level=ERROR, loggerName=com.liferay.portal.service.impl.GroupLocalServiceImpl, message=Unable to delete data for portlet null in group 43020
        at com.liferay.portal.test.rule.LogAssertionAppender.append(LogAssertionAppender.java:61)
        at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
        at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
        at org.apache.log4j.Category.callAppenders(Category.java:206)
        at org.apache.log4j.Category.forcedLog(Category.java:391)
        at org.apache.log4j.Category.log(Category.java:856)
        at com.liferay.portal.log.Log4jLogImpl.error(Log4jLogImpl.java:54)
        at com.liferay.portal.kernel.log.LogWrapper.error(LogWrapper.java:69)
        at com.liferay.portal.service.impl.GroupLocalServiceImpl.deletePortletData(GroupLocalServiceImpl.java:4213)
        at com.liferay.portal.service.impl.GroupLocalServiceImpl.deleteGroup(GroupLocalServiceImpl.java:995)
        at sun.reflect.GeneratedMethodAccessor684.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.liferay.portal.spring.aop.AopMethodInvocation.proceed(AopMethodInvocation.java:44)
        at com.liferay.portal.spring.transaction.TransactionInterceptor.lambda$invoke$0(TransactionInterceptor.java:61)
        at com.liferay.portal.spring.transaction.DefaultTransactionExecutor._execute(DefaultTransactionExecutor.java:128)
        at c...
      3. OrganizationIndexerIndexedFieldsTest.testIndexedFieldsWithExpando
        java.lang.AssertionError: {level=ERROR, loggerName=com.liferay.portal.service.impl.GroupLocalServiceImpl, message=Unable to delete data for portlet null in group 43038
        at com.liferay.portal.test.rule.LogAssertionAppender.append(LogAssertionAppender.java:61)
        at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
        at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
        at org.apache.log4j.Category.callAppenders(Category.java:206)
        at org.apache.log4j.Category.forcedLog(Category.java:391)
        at org.apache.log4j.Category.log(Category.java:856)
        at com.liferay.portal.log.Log4jLogImpl.error(Log4jLogImpl.java:54)
        at com.liferay.portal.kernel.log.LogWrapper.error(LogWrapper.java:69)
        at com.liferay.portal.service.impl.GroupLocalServiceImpl.deletePortletData(GroupLocalServiceImpl.java:4213)
        at com.liferay.portal.service.impl.GroupLocalServiceImpl.deleteGroup(GroupLocalServiceImpl.java:995)
        at sun.reflect.GeneratedMethodAccessor684.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.liferay.portal.spring.aop.AopMethodInvocation.proceed(AopMethodInvocation.java:44)
        at com.liferay.portal.spring.transaction.TransactionInterceptor.lambda$invoke$0(TransactionInterceptor.java:61)
        at com.liferay.portal.spring.transaction.DefaultTransactionExecutor._execute(DefaultTransactionExecutor.java:128)
        at c...
      4. ...
    3. AXIS_VARIABLE=25,label_exp=!master #275347
          [junit] 	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      [junit] at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
      [junit] at org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:999)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1443)
      [junit] at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1432)
      [junit] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      [junit] at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      [junit] at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
      [junit] at org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:999)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.core.StandardService.stopInternal(StandardService.java:471)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.core.StandardServer.stopInternal(StandardServer.java:791)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.startup.Catalina.stop(Catalina.java:755)
      [junit] at org.apache.catalina.startup.Catalina.start(Catalina.java:717)
      [junit] at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
      [junit] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
      [junit]
      [junit]
      [junit] at com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanOSGiLog(PortalLogAssertorTest.java:81)
      [junit]
      [junit]
      [junit] Test com.liferay.portal.log.assertor.PortalLogAssertorTest FAILED
      [exec] DB20000I The DB2STOP command completed successfully.
      [echo]
      [get] Getting: http://test-1-4/job/test-portal-acceptance-pullrequest-batch(master)/AXIS_VARIABLE=25,label_exp=!master/275347//consoleText
      [get] To: /opt/dev/projects/github/liferay-portal/20190212113651322.txt
      [delete] Deleting: /opt/dev/projects/github/liferay-portal/20190212113651322.txt
      [delete] Deleting: /opt/dev/projects/github/liferay-portal/null2107005418.properties
    4. AXIS_VARIABLE=29,label_exp=!master #275347
          [junit] 	at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      [junit] at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
      [junit] at org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:999)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1443)
      [junit] at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1432)
      [junit] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      [junit] at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      [junit] at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
      [junit] at org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:999)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.core.StandardService.stopInternal(StandardService.java:471)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.core.StandardServer.stopInternal(StandardServer.java:791)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.startup.Catalina.stop(Catalina.java:755)
      [junit] at org.apache.catalina.startup.Catalina.start(Catalina.java:717)
      [junit] at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
      [junit] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
      [junit]
      [junit]
      [junit] at com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanOSGiLog(PortalLogAssertorTest.java:81)
      [junit]
      [junit]
      [junit] Test com.liferay.portal.log.assertor.PortalLogAssertorTest FAILED
      [exec] DB20000I The DB2STOP command completed successfully.
      [echo]
      [get] Getting: http://test-1-4/job/test-portal-acceptance-pullrequest-batch(master)/AXIS_VARIABLE=29,label_exp=!master/275347//consoleText
      [get] To: /opt/dev/projects/github/liferay-portal/20190212114419540.txt
      [delete] Deleting: /opt/dev/projects/github/liferay-portal/20190212114419540.txt
      [delete] Deleting: /opt/dev/projects/github/liferay-portal/null1917882341.properties
    5. ...
    Click here for more failures.
  4. test-portal-acceptance-pullrequest-batch(master)/modules-integration-hypersonic20-jdk8
    Job Results:

    0 Tests Passed.
    3 Tests Failed.

    1. AXIS_VARIABLE=0,label_exp=!master #246806
          [junit] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      [junit] at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      [junit] at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
      [junit] at org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:999)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1443)
      [junit] at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1432)
      [junit] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      [junit] at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      [junit] at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
      [junit] at org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:999)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.core.StandardService.stopInternal(StandardService.java:471)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.core.StandardServer.stopInternal(StandardServer.java:791)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.startup.Catalina.stop(Catalina.java:755)
      [junit] at org.apache.catalina.startup.Catalina.start(Catalina.java:717)
      [junit] at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
      [junit] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
      [junit]
      [junit]
      [junit] at com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanOSGiLog(PortalLogAssertorTest.java:81)
      [junit]
      [junit]
      [junit] Test com.liferay.portal.log.assertor.PortalLogAssertorTest FAILED
      [exec] fake hypersonic service stop
      [echo]
      [get] Getting: http://test-1-13/job/test-portal-acceptance-pullrequest-batch(master)/AXIS_VARIABLE=0,label_exp=!master/246806//consoleText
      [get] To: /opt/dev/projects/github/liferay-portal/20190212114514607.txt
      [delete] Deleting: /opt/dev/projects/github/liferay-portal/20190212114514607.txt
      [delete] Deleting: /opt/dev/projects/github/liferay-portal/null1768503668.properties
    2. AXIS_VARIABLE=19,label_exp=!master #246806
          [junit] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      [junit] at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      [junit] at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
      [junit] at org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:999)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1443)
      [junit] at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1432)
      [junit] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      [junit] at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      [junit] at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
      [junit] at org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:999)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.core.StandardService.stopInternal(StandardService.java:471)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.core.StandardServer.stopInternal(StandardServer.java:791)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.startup.Catalina.stop(Catalina.java:755)
      [junit] at org.apache.catalina.startup.Catalina.start(Catalina.java:717)
      [junit] at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
      [junit] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
      [junit]
      [junit]
      [junit] at com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanOSGiLog(PortalLogAssertorTest.java:81)
      [junit]
      [junit]
      [junit] Test com.liferay.portal.log.assertor.PortalLogAssertorTest FAILED
      [exec] fake hypersonic service stop
      [echo]
      [get] Getting: http://test-1-13/job/test-portal-acceptance-pullrequest-batch(master)/AXIS_VARIABLE=19,label_exp=!master/246806//consoleText
      [get] To: /opt/dev/projects/github/liferay-portal/20190212112931815.txt
      [delete] Deleting: /opt/dev/projects/github/liferay-portal/20190212112931815.txt
      [delete] Deleting: /opt/dev/projects/github/liferay-portal/null1613396244.properties
    3. AXIS_VARIABLE=25,label_exp=!master #246806
      1. AcceptLanguageContextProviderTest.testCreateContextWithDefaultUser
        java.lang.AssertionError: Thread Thread[RMI TCP Connection(4)-127.0.0.1,5,RMI Runtime] caught concurrent failure: java.lang.AssertionError: {level=ERROR, loggerName=com.liferay.portal.service.impl.GroupLocalServiceImpl, message=Unable to delete data for portlet null in group 39062
        java.lang.AssertionError: {level=ERROR, loggerName=com.liferay.portal.service.impl.GroupLocalServiceImpl, message=Unable to delete data for portlet null in group 39062
        at com.liferay.portal.test.rule.LogAssertionAppender.append(LogAssertionAppender.java:61)
        at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
        at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
        at org.apache.log4j.Category.callAppenders(Category.java:206)
        at org.apache.log4j.Category.forcedLog(Category.java:391)
        at org.apache.log4j.Category.log(Category.java:856)
        at com.liferay.portal.log.Log4jLogImpl.error(Log4jLogImpl.java:54)
        at com.liferay.portal.kernel.log.LogWrapper.error(LogWrapper.java:69)
        at com.liferay.portal.service.impl.GroupLocalServiceImpl.deletePortletData(GroupLocalServiceImpl.java:4213)
        at com.liferay.portal.service.impl.GroupLocalServiceImpl.deleteGroup(GroupLocalServiceImpl.java:995)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.r...
      2. CompanyContextProviderTest.testCreateContext
        com.liferay.portal.kernel.exception.SystemException: java.lang.AssertionError: {level=ERROR, loggerName=com.liferay.portal.service.impl.GroupLocalServiceImpl, message=Unable to delete data for portlet null in group 39825
        at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.doPerformActions(DefaultActionableDynamicQuery.java:350)
        at com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery.performActions(DefaultActionableDynamicQuery.java:86)
        at com.liferay.portal.service.impl.CompanyLocalServiceImpl$DeleteGroupActionableDynamicQuery.performActions(CompanyLocalServiceImpl.java:1728)
        at com.liferay.portal.service.impl.CompanyLocalServiceImpl.doDeleteCompany(CompanyLocalServiceImpl.java:1351)
        at com.liferay.portal.service.impl.CompanyLocalServiceImpl.deleteCompany(CompanyLocalServiceImpl.java:516)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.liferay.portal.kernel.bean.ClassLoaderBeanHandler.invoke(ClassLoaderBeanHandler.java:66)
        at com.sun.proxy.$Proxy813.deleteCompany(Unknown Source)
        at com.liferay.portal.kernel.service.CompanyLocalServiceWrapper.deleteCompany(CompanyLocalServiceWrapper.java:146)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.i...
      3. WorkflowTaskManagerImplTest.testApproveDLFileEntryInDLFolderWhenHomeDLFolderHasWorkflow
        java.lang.AssertionError: {level=ERROR, loggerName=com.liferay.portal.service.impl.GroupLocalServiceImpl, message=Unable to delete data for portlet null in group 40586
        at com.liferay.portal.test.rule.LogAssertionAppender.append(LogAssertionAppender.java:61)
        at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
        at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
        at org.apache.log4j.Category.callAppenders(Category.java:206)
        at org.apache.log4j.Category.forcedLog(Category.java:391)
        at org.apache.log4j.Category.log(Category.java:856)
        at com.liferay.portal.log.Log4jLogImpl.error(Log4jLogImpl.java:54)
        at com.liferay.portal.kernel.log.LogWrapper.error(LogWrapper.java:69)
        at com.liferay.portal.service.impl.GroupLocalServiceImpl.deletePortletData(GroupLocalServiceImpl.java:4213)
        at com.liferay.portal.service.impl.GroupLocalServiceImpl.deleteGroup(GroupLocalServiceImpl.java:995)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.liferay.portal.spring.aop.AopMethodInvocation.proceed(AopMethodInvocation.java:44)
        at com.liferay.portal.spring.transaction.TransactionInterceptor.lambda$invoke$0(TransactionInterceptor.java:61)
        at com.liferay.portal.spring.transactio...
      4. ...
    4. AXIS_VARIABLE=29,label_exp=!master #246806
          [junit] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      [junit] at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      [junit] at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
      [junit] at org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:999)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1443)
      [junit] at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1432)
      [junit] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      [junit] at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      [junit] at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
      [junit] at org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:999)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.core.StandardService.stopInternal(StandardService.java:471)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.core.StandardServer.stopInternal(StandardServer.java:791)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.startup.Catalina.stop(Catalina.java:755)
      [junit] at org.apache.catalina.startup.Catalina.start(Catalina.java:717)
      [junit] at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
      [junit] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
      [junit]
      [junit]
      [junit] at com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanOSGiLog(PortalLogAssertorTest.java:81)
      [junit]
      [junit]
      [junit] Test com.liferay.portal.log.assertor.PortalLogAssertorTest FAILED
      [exec] fake hypersonic service stop
      [echo]
      [get] Getting: http://test-1-13/job/test-portal-acceptance-pullrequest-batch(master)/AXIS_VARIABLE=29,label_exp=!master/246806//consoleText
      [get] To: /opt/dev/projects/github/liferay-portal/20190212113908122.txt
      [delete] Deleting: /opt/dev/projects/github/liferay-portal/20190212113908122.txt
      [delete] Deleting: /opt/dev/projects/github/liferay-portal/null838026582.properties
    Click here for more failures.
  5. test-portal-acceptance-pullrequest-batch(master)/modules-integration-mariadb102-jdk8
    Job Results:

    0 Tests Passed.
    3 Tests Failed.

    1. AXIS_VARIABLE=0,label_exp=!master #142474
          [junit] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      [junit] at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      [junit] at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
      [junit] at org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:999)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1443)
      [junit] at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1432)
      [junit] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      [junit] at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      [junit] at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
      [junit] at org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:999)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.core.StandardService.stopInternal(StandardService.java:471)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.core.StandardServer.stopInternal(StandardServer.java:791)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.startup.Catalina.stop(Catalina.java:755)
      [junit] at org.apache.catalina.startup.Catalina.start(Catalina.java:717)
      [junit] at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
      [junit] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
      [junit]
      [junit]
      [junit] at com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanOSGiLog(PortalLogAssertorTest.java:81)
      [junit]
      [junit]
      [junit] Test com.liferay.portal.log.assertor.PortalLogAssertorTest FAILED
      [exec] Shutting down MariaDB..[ OK ]
      [echo]
      [get] Getting: http://test-1-23/job/test-portal-acceptance-pullrequest-batch(master)/AXIS_VARIABLE=0,label_exp=!master/142474//consoleText
      [get] To: /opt/dev/projects/github/liferay-portal/20190212113206148.txt
      [delete] Deleting: /opt/dev/projects/github/liferay-portal/20190212113206148.txt
      [delete] Deleting: /opt/dev/projects/github/liferay-portal/null1097093254.properties
    2. AXIS_VARIABLE=23,label_exp=!master #142474
      1. ScopeFacetedSearcherTest.testSearchByFacet
        java.lang.AssertionError: {level=ERROR, loggerName=com.liferay.portal.service.impl.GroupLocalServiceImpl, message=Unable to delete data for portlet null in group 39404
        at com.liferay.portal.test.rule.LogAssertionAppender.append(LogAssertionAppender.java:61)
        at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
        at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
        at org.apache.log4j.Category.callAppenders(Category.java:206)
        at org.apache.log4j.Category.forcedLog(Category.java:391)
        at org.apache.log4j.Category.log(Category.java:856)
        at com.liferay.portal.log.Log4jLogImpl.error(Log4jLogImpl.java:54)
        at com.liferay.portal.kernel.log.LogWrapper.error(LogWrapper.java:69)
        at com.liferay.portal.service.impl.GroupLocalServiceImpl.deletePortletData(GroupLocalServiceImpl.java:4213)
        at com.liferay.portal.service.impl.GroupLocalServiceImpl.deleteGroup(GroupLocalServiceImpl.java:995)
        at sun.reflect.GeneratedMethodAccessor527.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.liferay.portal.spring.aop.AopMethodInvocation.proceed(AopMethodInvocation.java:44)
        at com.liferay.portal.spring.transaction.TransactionInterceptor.lambda$invoke$0(TransactionInterceptor.java:61)
        at com.liferay.portal.spring.transaction.DefaultTransactionExecutor._execute(DefaultTransactionExecutor.java:128)
        at c...
      2. ScopeFacetedSearcherTest.testSearchFromSearchPortletWithScopeEverything
        java.lang.AssertionError: {level=ERROR, loggerName=com.liferay.portal.service.impl.GroupLocalServiceImpl, message=Unable to delete data for portlet null in group 39451
        at com.liferay.portal.test.rule.LogAssertionAppender.append(LogAssertionAppender.java:61)
        at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
        at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
        at org.apache.log4j.Category.callAppenders(Category.java:206)
        at org.apache.log4j.Category.forcedLog(Category.java:391)
        at org.apache.log4j.Category.log(Category.java:856)
        at com.liferay.portal.log.Log4jLogImpl.error(Log4jLogImpl.java:54)
        at com.liferay.portal.kernel.log.LogWrapper.error(LogWrapper.java:69)
        at com.liferay.portal.service.impl.GroupLocalServiceImpl.deletePortletData(GroupLocalServiceImpl.java:4213)
        at com.liferay.portal.service.impl.GroupLocalServiceImpl.deleteGroup(GroupLocalServiceImpl.java:995)
        at sun.reflect.GeneratedMethodAccessor527.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.liferay.portal.spring.aop.AopMethodInvocation.proceed(AopMethodInvocation.java:44)
        at com.liferay.portal.spring.transaction.TransactionInterceptor.lambda$invoke$0(TransactionInterceptor.java:61)
        at com.liferay.portal.spring.transaction.DefaultTransactionExecutor._execute(DefaultTransactionExecutor.java:128)
        at c...
      3. ScopeFacetedSearcherTest.testSearchFromSearchPortletWithScopeThisSite
        java.lang.AssertionError: {level=ERROR, loggerName=com.liferay.portal.service.impl.GroupLocalServiceImpl, message=Unable to delete data for portlet null in group 39485
        at com.liferay.portal.test.rule.LogAssertionAppender.append(LogAssertionAppender.java:61)
        at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
        at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
        at org.apache.log4j.Category.callAppenders(Category.java:206)
        at org.apache.log4j.Category.forcedLog(Category.java:391)
        at org.apache.log4j.Category.log(Category.java:856)
        at com.liferay.portal.log.Log4jLogImpl.error(Log4jLogImpl.java:54)
        at com.liferay.portal.kernel.log.LogWrapper.error(LogWrapper.java:69)
        at com.liferay.portal.service.impl.GroupLocalServiceImpl.deletePortletData(GroupLocalServiceImpl.java:4213)
        at com.liferay.portal.service.impl.GroupLocalServiceImpl.deleteGroup(GroupLocalServiceImpl.java:995)
        at sun.reflect.GeneratedMethodAccessor527.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.liferay.portal.spring.aop.AopMethodInvocation.proceed(AopMethodInvocation.java:44)
        at com.liferay.portal.spring.transaction.TransactionInterceptor.lambda$invoke$0(TransactionInterceptor.java:61)
        at com.liferay.portal.spring.transaction.DefaultTransactionExecutor._execute(DefaultTransactionExecutor.java:128)
        at c...
      4. ...
    3. AXIS_VARIABLE=25,label_exp=!master #142474
          [junit] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      [junit] at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      [junit] at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
      [junit] at org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:999)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1443)
      [junit] at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1432)
      [junit] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      [junit] at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      [junit] at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
      [junit] at org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:999)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.core.StandardService.stopInternal(StandardService.java:471)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.core.StandardServer.stopInternal(StandardServer.java:791)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.startup.Catalina.stop(Catalina.java:755)
      [junit] at org.apache.catalina.startup.Catalina.start(Catalina.java:717)
      [junit] at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
      [junit] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
      [junit]
      [junit]
      [junit] at com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanOSGiLog(PortalLogAssertorTest.java:81)
      [junit]
      [junit]
      [junit] Test com.liferay.portal.log.assertor.PortalLogAssertorTest FAILED
      [exec] Shutting down MariaDB..[ OK ]
      [echo]
      [get] Getting: http://test-1-23/job/test-portal-acceptance-pullrequest-batch(master)/AXIS_VARIABLE=25,label_exp=!master/142474//consoleText
      [get] To: /opt/dev/projects/github/liferay-portal/20190212112744049.txt
      [delete] Deleting: /opt/dev/projects/github/liferay-portal/20190212112744049.txt
      [delete] Deleting: /opt/dev/projects/github/liferay-portal/null1745100990.properties
    4. AXIS_VARIABLE=29,label_exp=!master #142474
          [junit] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      [junit] at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      [junit] at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
      [junit] at org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:999)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1443)
      [junit] at org.apache.catalina.core.ContainerBase$StopChild.call(ContainerBase.java:1432)
      [junit] at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      [junit] at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
      [junit] at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134)
      [junit] at org.apache.catalina.core.ContainerBase.stopInternal(ContainerBase.java:999)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.core.StandardService.stopInternal(StandardService.java:471)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.core.StandardServer.stopInternal(StandardServer.java:791)
      [junit] at org.apache.catalina.util.LifecycleBase.stop(LifecycleBase.java:257)
      [junit] at org.apache.catalina.startup.Catalina.stop(Catalina.java:755)
      [junit] at org.apache.catalina.startup.Catalina.start(Catalina.java:717)
      [junit] at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350)
      [junit] at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
      [junit]
      [junit]
      [junit] at com.liferay.portal.log.assertor.PortalLogAssertorTest.testScanOSGiLog(PortalLogAssertorTest.java:81)
      [junit]
      [junit]
      [junit] Test com.liferay.portal.log.assertor.PortalLogAssertorTest FAILED
      [exec] Shutting down MariaDB..[ OK ]
      [echo]
      [get] Getting: http://test-1-23/job/test-portal-acceptance-pullrequest-batch(master)/AXIS_VARIABLE=29,label_exp=!master/142474//consoleText
      [get] To: /opt/dev/projects/github/liferay-portal/20190212112751850.txt
      [delete] Deleting: /opt/dev/projects/github/liferay-portal/20190212112751850.txt
      [delete] Deleting: /opt/dev/projects/github/liferay-portal/null1695289109.properties
    Click here for more failures.
  6. ...

@tinatian
Copy link
Owner

ci:test

}

return templateResource;
return new URLTemplateResource(templateId, url);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @dantewang,
Before, we should go into the first branch which is using TemplateResourceLoaderUtil to generate the URLTemplateResource.
After, you create URLTemplateResource directly.

The result should be same, but the difference is TemplateResourceLoaderUtil has a cache level, I think this is going to affect performance.

I searched for the usages in our code base, and found a lot of usages like this, that is to create a URLTemplateResource directly instead of using TemplateResourceLoaderUtil. This should be wrong, but we can not stop people doing so since URLTemplateResource is in kernel package.

An option to avoid URLTemplateResource created directly is to replace all the usages to use TemplateResourceLoaderUtil, and copy it to internal package and deprecate the kernel one.

The problem with that option is currently TemplateResourceLoaderUtil does not export easy API for people to use. Like in this example, if we use TemplateResourceLoaderUtil, we have to manipulate the template id and parse it to create URL, just like what we did in LPS-88867.

Could you please check all the usages of creating template resource directly, and see if we can create API for those usages, and then remove all the direct creating and deprecate the kernel class.

We should not do the removing like you did in this pull, so I will close it.

Thanks.
Tina.

@tinatian tinatian closed this Feb 15, 2019
@dantewang
Copy link
Author

dantewang commented Feb 15, 2019 via email

@tinatian
Copy link
Owner

tinatian commented Feb 16, 2019

@dantewang
The caching in TemplateResoureLoader is more complex than just caching the instance itself. It is using CachingTemplateResource to avoid loading data from same URL in to memory.

According to the code, it seems it can go to TemplateResourceLoader, I think the reason you did not see it hit the branch is because the order of services. That is the bundle with soy template is activated before the soy template bundle itself. Why this happen? It is because it is using TemplateResourceLoaderUtil instead of depending on the specific reference. It should have a dependency on the soy template resource loader, but it is not, so here, they have to do the checking

if (TemplateResourceLoaderUtil.hasTemplateResourceLoader(		
 				TemplateConstants.LANG_TYPE_SOY)) {

This is wrong, for modules, it should not use ***Util, it should depend on specific service directly, the ***Util is just a bridge for the code in portal core.

Tina.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants