Uploaded image for project: 'PUBLIC - Liferay Commerce'
  1. PUBLIC - Liferay Commerce
  2. COMMERCE-4965

Wrong logging statement causes CI issues

    Details

      Description

      Integration tests that rely on Company entity and use DataGuard annotation causes false alarms in CI.

      Here is the log:

      2020-10-09 09:47:23.969 ERROR [com.liferay.dispatch.test-executor-thread][CommerceCatalogImpl:39] Unable to get commerce catalog groupcom.liferay.portal.kernel.exception.PortalException	at com.liferay.commerce.product.service.impl.CommerceCatalogLocalServiceImpl.getCommerceCatalogGroup(CommerceCatalogLocalServiceImpl.java:230)	at sun.reflect.GeneratedMethodAccessor552.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.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69)	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)	at com.liferay.change.tracking.internal.aop.CTTransactionAdvice.invoke(CTTransactionAdvice.java:80)	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)	at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)	at com.sun.proxy.$Proxy959.getCommerceCatalogGroup(Unknown Source)	at com.liferay.commerce.product.service.CommerceCatalogLocalServiceUtil.getCommerceCatalogGroup(CommerceCatalogLocalServiceUtil.java:318)	at com.liferay.commerce.product.model.impl.CommerceCatalogImpl.getGroup(CommerceCatalogImpl.java:35)	at com.liferay.commerce.product.model.impl.CommerceCatalogImpl.getGroupId(CommerceCatalogImpl.java:48)	at com.liferay.commerce.price.list.internal.helper.CommerceBasePriceListHelper._deleteCatalogBaseCommercePriceList(CommerceBasePriceListHelper.java:122)	at com.liferay.commerce.price.list.internal.helper.CommerceBasePriceListHelper.deleteCatalogBaseCommercePriceList(CommerceBasePriceListHelper.java:88)	at com.liferay.commerce.price.list.internal.model.listener.CommerceCatalogModelListener.onBeforeRemove(CommerceCatalogModelListener.java:51)	at com.liferay.commerce.price.list.internal.model.listener.CommerceCatalogModelListener.onBeforeRemove(CommerceCatalogModelListener.java:31)
      

      Logging exception event as WARNING should fix everything.

        Attachments

          Activity

            People

            Assignee:
            marco.leo Marco Leo
            Reporter:
            igor.beslic Igor Beslic
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:

                Packages

                Version Package
                Master