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

JAASTest#testProcessLoginEvents failed with NullPointerException

    Details

      Description

       [exec] com.liferay.portal.security.auth.test.JAASTest > testProcessLoginEvents FAILED
           [exec]     javax.servlet.ServletException: Servlet execution threw an exception
           [exec]     	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:238)
           [exec]     	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
           [exec]     	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:124)
           [exec]     	at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:104)
           [exec]     	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
           [exec]     	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
           [exec]     	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:712)
           [exec]     	at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:580)
           [exec]     	at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:516)
           [exec]     	at com.liferay.portal.security.auth.test.JAASTest.testProcessLoginEvents(JAASTest.java:256)
           [exec]     	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           [exec]     	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
           [exec]     	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
           [exec]     	at java.lang.reflect.Method.invoke(Method.java:498)
           [exec]     	at com.liferay.arquillian.extension.junit.bridge.server.TestExecutorRunnable$2.evaluate(TestExecutorRunnable.java:234)
           [exec]     	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
           [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.AbstractTestRule$2.evaluate(AbstractTestRule.java:99)
           [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 org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
           [exec]     	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
           [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 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.lang.Thread.run(Thread.java:745)
           [exec]     Caused by: java.lang.AssertionError: {level=ERROR, loggerName=com.liferay.commerce.internal.events.LoginPostAction, message=java.lang.NullPointerException
           [exec]     	at com.liferay.portal.test.rule.LogAssertionAppender.append(LogAssertionAppender.java:60)
           [exec]     	at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
           [exec]     	at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
           [exec]     	at org.apache.log4j.Category.callAppenders(Category.java:206)
           [exec]     	at org.apache.log4j.Category.forcedLog(Category.java:391)
           [exec]     	at org.apache.log4j.Category.log(Category.java:856)
           [exec]     	at com.liferay.portal.log.Log4jLogImpl.error(Log4jLogImpl.java:54)
           [exec]     	at com.liferay.portal.kernel.log.LogWrapper.error(LogWrapper.java:69)
           [exec]     	at com.liferay.commerce.internal.events.LoginPostAction.run(LoginPostAction.java:69)
           [exec]     	at com.liferay.portal.kernel.events.Action.processLifecycleEvent(Action.java:34)
           [exec]     	at com.liferay.portal.events.EventsProcessorUtil.process(EventsProcessorUtil.java:99)
           [exec]     	at com.liferay.portal.events.EventsProcessorUtil.process(EventsProcessorUtil.java:59)
           [exec]     	at com.liferay.portal.internal.servlet.MainServlet._loginUser(MainServlet.java:1062)
           [exec]     	at com.liferay.portal.internal.servlet.MainServlet.service(MainServlet.java:556)
           [exec]     	at javax.servlet.http.HttpServlet.service(HttpServlet.java:733)
           [exec]     	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
           [exec]     	... 39 more
           [exec]     Caused by: java.lang.NullPointerException
           [exec]     	at com.liferay.commerce.internal.events.LoginPostAction.run(LoginPostAction.java:51)
           [exec]     	... 46 more
      

      Full console log
      https://testray.liferay.com/reports/production/logs/test-1-7/1599170758751/test-portal-testsuite-upstream(master)/350/modules-integration-mysql57-jdk8/0/jenkins-console.txt.gz

        Attachments

          Activity

            People

            Assignee:
            della.wang Della Wang (Inactive)
            Reporter:
            della.wang Della Wang (Inactive)
            Participants of an Issue:
            Recent user:
            Enterprise Release HU
            Engineering Assignee:
            Marta Medio (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              50 weeks, 5 days ago

                Packages

                Version Package
                7.3.5 CE GA6
                7.3.10 DXP GA1
                7.3.X
                Master