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

OrganizationLocalServiceTreeTest failed with String index out of range: -1

    Description

    Testray
    Full Jenkins Log

    [exec] com.liferay.organizations.service.test.OrganizationLocalServiceTreeTest > testRebuildTree FAILED
         [exec]     com.liferay.portal.kernel.exception.ModelListenerException: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
         [exec]     	at com.liferay.analytics.message.sender.internal.model.listener.BaseEntityModelListener.onBeforeUpdate(BaseEntityModelListener.java:127)
         [exec]     	at com.liferay.analytics.message.sender.internal.model.listener.BaseEntityModelListener.onBeforeUpdate(BaseEntityModelListener.java:63)
         [exec]     	at com.liferay.portal.kernel.service.persistence.impl.BasePersistenceImpl.update(BasePersistenceImpl.java:540)
         [exec]     	at com.liferay.portal.service.base.OrganizationLocalServiceBaseImpl.updateOrganization(OrganizationLocalServiceBaseImpl.java:471)
         [exec]     	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         [exec]     	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         [exec]     	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         [exec]     	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
         [exec]     	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:50)
         [exec]     	at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:69)
         [exec]     	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
         [exec]     	at com.liferay.portal.kernel.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:64)
         [exec]     	at com.liferay.portal.spring.aop.AopMethodInvocationImpl.proceed(AopMethodInvocationImpl.java:57)
         [exec]     	at com.liferay.portal.spring.aop.AopInvocationHandler.invoke(AopInvocationHandler.java:49)
         [exec]     	at com.sun.proxy.$Proxy156.updateOrganization(Unknown Source)
         [exec]     	at com.liferay.portal.kernel.service.OrganizationLocalServiceUtil.updateOrganization(OrganizationLocalServiceUtil.java:1611)
         [exec]     	at com.liferay.organizations.service.test.OrganizationLocalServiceTreeTest.addTreeModel(OrganizationLocalServiceTreeTest.java:63)
         [exec]     	at com.liferay.portal.local.service.tree.test.util.BaseLocalServiceTreeTestCase.createTree(BaseLocalServiceTreeTestCase.java:82)
         [exec]     	at com.liferay.portal.local.service.tree.test.util.BaseLocalServiceTreeTestCase.setUp(BaseLocalServiceTreeTestCase.java:40)
         [exec]     	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         [exec]     	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
         [exec]     	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         [exec]     	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
         [exec]     	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
         [exec]     	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
         [exec]     	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
         [exec]     	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)
         [exec]     	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
         [exec]     	at com.liferay.portal.kernel.test.rule.TimeoutTestRule$1.evaluate(TimeoutTestRule.java:89)
         [exec]     	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
         [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$1.evaluate(TestExecutorRunnable.java:143)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at com.liferay.portal.kernel.test.rule.AbstractTestRule$1.evaluate(AbstractTestRule.java:59)
         [exec]     	at org.junit.rules.RunRules.evaluate(RunRules.java:20)
         [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable._execute(TestExecutorRunnable.java:181)
         [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable.run(TestExecutorRunnable.java:95)
         [exec]     	at java.base/java.lang.Thread.run(Thread.java:834)
         [exec]     Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
         [exec]     	at java.base/java.lang.String.substring(String.java:1841)
         [exec]     	at com.liferay.analytics.message.sender.internal.model.listener.BaseEntityModelListener._serialize(BaseEntityModelListener.java:343)
         [exec]     	at com.liferay.analytics.message.sender.internal.model.listener.BaseEntityModelListener.addAnalyticsMessage(BaseEntityModelListener.java:74)
         [exec]     	at com.liferay.analytics.message.sender.internal.model.listener.BaseEntityModelListener.onBeforeUpdate(BaseEntityModelListener.java:124)
         [exec]     	... 47 more
    

      Attachments

        Activity

          People

          Assignee:
          patricia.perez Patricia Perez
          Reporter:
          calvin.vo Calvin Vo
          Participants of an Issue:
          Recent user:
          Jason Pince
          Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

            Dates

            Created:
            Updated:
            Resolved:
            Days since last comment:
            1 year, 30 weeks, 6 days ago

              Packages

              Version Package
              7.0.0 DXP FP90
              7.0.10.13 DXP SP13
              7.0.X
              7.1.10 DXP FP17
              7.1.10.4 SP4
              7.1.X
              7.2.10 DXP FP5
              7.2.10.2 DXP SP2
              7.2.X
              7.3.1 CE GA2
              7.3.2 CE GA3
              7.3.10 DXP GA1
              Master