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

Fail to add test-oauth portlet tp the page

    Details

    • Story Points:
      0.25
    • Fix Priority:
      4

      Description

      Steps to reproduce:

      1. Start the bundle.
      2. Deploy test-oauth-portlet-7.0.0.1.war.
      3. Create a new page, then add the test-oauth portlet to the page.

      Expected Result:

      No errors in console.

      Actual Result:

      The console throws a error. And the page prompt "There was an unexpected error. Please refresh the current page.". If refresh the page, will get "Status" page.

      2018-10-15 02:33:17.295 ERROR [http-nio-8080-exec-7][status_jsp:916] com.liferay.portal.kernel.portlet.PortletContainerException: com.liferay.portal.kernel.portlet.PortletContainerException: javax.servlet.ServletException: java.lang.NoClassDefFoundError: com/liferay/portal/kernel/util/Validator
      2018-10-15 02:33:17.299 ERROR [liferay/monitoring-1][ParallelDestination:55] Unable to process message {destinationName=liferay/monitoring, response=null, responseDestinationName=null, responseId=null, payload=[{displayName=Hello World, portletId=com_liferay_hello_world_web_portlet_HelloWorldPortlet, requestType=RENDER, {attributes=null, companyId=20115, groupId=20142, description=null, duration=0, name=com_liferay_hello_world_web_portlet_HelloWorldPortlet, namespace=com.liferay.monitoring.Portlet, requestStatus=SUCCESS, stopWatch=0:00:00.000, timeout=0, user=20155}}, {displayName=Test OAuth, portletId=1_WAR_testoauthportlet, requestType=RENDER, {attributes=null, companyId=20115, groupId=20142, description=null, duration=0, name=1, namespace=com.liferay.monitoring.Portlet, requestStatus=null, stopWatch=0:00:00.029, timeout=0, user=20155}}, {displayName=Product Menu, portletId=com_liferay_product_navigation_product_menu_web_portlet_ProductMenuPortlet, requestType=RENDER, {attributes=null, companyId=20115, groupId=20142, description=null, duration=0, name=com_liferay_product_navigation_product_menu_web_portlet_ProductMenuPortlet, namespace=com.liferay.monitoring.Portlet, requestStatus=SUCCESS, stopWatch=0:00:00.000, timeout=0, user=20155}}, {displayName=User Personal Bar, portletId=com_liferay_product_navigation_user_personal_bar_web_portlet_ProductNavigationUserPersonalBarPortlet, requestType=RENDER, {attributes=null, companyId=20115, groupId=20142, description=null, duration=1, name=com_liferay_product_navigation_user_personal_bar_web_portlet_ProductNavigationUserPersonalBarPortlet, namespace=com.liferay.monitoring.Portlet, requestStatus=SUCCESS, stopWatch=0:00:00.001, timeout=0, user=20155}}, {displayName=Search, portletId=com_liferay_portal_search_web_portlet_SearchPortlet, requestType=RENDER, {attributes=null, companyId=20115, groupId=20142, description=null, duration=3, name=com_liferay_portal_search_web_portlet_SearchPortlet, namespace=com.liferay.monitoring.Portlet, requestStatus=SUCCESS, stopWatch=0:00:00.003, timeout=0, user=20155}}, {displayName=Navigation, portletId=com_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet, requestType=RENDER, {attributes=null, companyId=20115, groupId=20142, description=null, duration=1, name=com_liferay_site_navigation_menu_web_portlet_SiteNavigationMenuPortlet, namespace=com.liferay.monitoring.Portlet, requestStatus=SUCCESS, stopWatch=0:00:00.001, timeout=0, user=20155}}, {referer=http://localhost:8080/web/guest/home?p_p_id=com_liferay_login_web_portlet_LoginPortlet&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&saveLastPath=false&_com_liferay_login_web_portlet_LoginPortlet_mvcRenderCommandName=%2Flogin%2Flogin, remoteAddr=127.0.0.1, requestURL=http://localhost:8080/c/portal/status.jsp_display, statusCode=400, userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0, {attributes=null, companyId=20115, groupId=20142, description=Portal Request, duration=22, name=/c/portal/status, namespace=com.liferay.monitoring.Portal, requestStatus=SUCCESS, stopWatch=0:00:00.022, timeout=-1, user=20155}}, {referer=http://localhost:8080/web/guest/home?p_p_id=com_liferay_login_web_portlet_LoginPortlet&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&saveLastPath=false&_com_liferay_login_web_portlet_LoginPortlet_mvcRenderCommandName=%2Flogin%2Flogin, remoteAddr=127.0.0.1, requestURL=, statusCode=400, userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0, {attributes=null, companyId=20115, groupId=20142, description=null, duration=24, name=/c/portal/status, namespace=com.liferay.monitoring.Portal, requestStatus=SUCCESS, stopWatch=0:00:00.024, timeout=-1, user=20155}}, {referer=http://localhost:8080/web/guest/home?p_p_id=com_liferay_login_web_portlet_LoginPortlet&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&saveLastPath=false&_com_liferay_login_web_portlet_LoginPortlet_mvcRenderCommandName=%2Flogin%2Flogin, remoteAddr=127.0.0.1, requestURL=, statusCode=400, userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0, {attributes=null, companyId=20115, groupId=20142, description=null, duration=35, name=/c/portal/layout, namespace=com.liferay.monitoring.Portal, requestStatus=SUCCESS, stopWatch=0:00:00.035, timeout=-1, user=20155}}, {referer=http://localhost:8080/web/guest/home?p_p_id=com_liferay_login_web_portlet_LoginPortlet&p_p_lifecycle=0&p_p_state=maximized&p_p_mode=view&saveLastPath=false&_com_liferay_login_web_portlet_LoginPortlet_mvcRenderCommandName=%2Flogin%2Flogin, remoteAddr=127.0.0.1, requestURL=, statusCode=400, userAgent=Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0, {attributes=null, companyId=20115, groupId=20142, description=null, duration=37, name=/web/guest, namespace=com.liferay.monitoring.Portal, requestStatus=SUCCESS, stopWatch=0:00:00.037, timeout=-1, user=null}}], values={defaultLocale=en_US, companyId=20115, groupId=0, principalName=20155, permissionChecker=com.liferay.portal.kernel.util.TransientValue@26156f1e, siteDefaultLocale=en_US, themeDisplayLocale=en_US}}
      com.liferay.portal.kernel.messaging.MessageListenerException: java.lang.NullPointerException
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:32)
      	at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:74)
      	at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:52)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask._runTask(ThreadPoolExecutor.java:756)
      	at com.liferay.portal.kernel.concurrent.ThreadPoolExecutor$WorkerTask.run(ThreadPoolExecutor.java:667)
      	at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.NullPointerException
      	at com.liferay.portal.monitoring.internal.statistics.portlet.PortletStatistics.processDataSample(PortletStatistics.java:109)
      	at com.liferay.portal.monitoring.internal.statistics.portlet.CompanyStatistics.processDataSample(CompanyStatistics.java:209)
      	at com.liferay.portal.monitoring.internal.statistics.portlet.ServerStatistics.processDataSample(ServerStatistics.java:117)
      	at com.liferay.portal.monitoring.internal.statistics.portlet.ServerStatistics.processDataSample(ServerStatistics.java:35)
      	at com.liferay.portal.monitoring.internal.messaging.MonitoringMessageListener.processDataSample(MonitoringMessageListener.java:93)
      	at com.liferay.portal.monitoring.internal.messaging.MonitoringMessageListener.doReceive(MonitoringMessageListener.java:121)
      	at com.liferay.portal.kernel.messaging.BaseMessageListener.receive(BaseMessageListener.java:26)
      

        Attachments

          Activity

            People

            • Assignee:
              raven.song Raven Song
              Reporter:
              felix.zhang Felix Zhang
              Participants of an Issue:
              Recent user:
              Raven Song
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

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

                Packages

                Version Package