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

Start up Issue - Liferay 7.1.2 GA3 -javax.servlet.ServletException

    Details

      Description

      I am facing issue in startup of Liferay 7.1.2 GA3 (CE)  with Mysql 5.7 db in Windows environment. It is restarted properly with hypersonic mode but connecting with mysql throws these error. I tried downloading new tomcat and drop and recreate the db..etc. 

      1. Download Liferay bundle
      2. Start Server
      3. Update DB configuration to Mysql 5.7 ( tables created successfully with warnings and even i tried creating tables manually executing portal db scripts)
      4. Restart Server
      09 08:50:29.894 WARN  [http-nio-8080-exec-1][PortalImpl:6899] javax.servlet.ServletException: A servlet matching the filter (servlet.init.private=false)(servlet.type=friendly-url) is unavailable
      
      javax.servlet.ServletException: A servlet matching the filter (servlet.init.private=false)(servlet.type=friendly-url) is unavailable
          at com.liferay.portal.servlet.ServletAdapter.service(ServletAdapter.java:91)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
          at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
          at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:119)
          at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:144)
      
      2019-04-09 08:50:30.120 ERROR [http-nio-8080-exec-1][error_jsp:641] User ID null
      2019-04-09 08:50:30.121 ERROR [http-nio-8080-exec-1][error_jsp:642] Current URL /
      2019-04-09 08:50:30.122 ERROR [http-nio-8080-exec-1][error_jsp:643] Referer null
      2019-04-09 08:50:30.123 ERROR [http-nio-8080-exec-1][error_jsp:644] Remote address 127.0.0.1
      2019-04-09 08:50:30.123 ERROR [http-nio-8080-exec-1][error_jsp:646] com.liferay.portal.kernel.events.ActionException: java.lang.NullPointerException
      com.liferay.portal.kernel.events.ActionException: java.lang.NullPointerException
          at com.liferay.portal.events.ServicePreAction.run(ServicePreAction.java:1083)
          at com.liferay.portal.kernel.events.Action.processLifecycleEvent(Action.java:34)
          at com.liferay.portal.events.EventsProcessorUtil.process(EventsProcessorUtil.java:86)
          at com.liferay.portal.events.EventsProcessorUtil.process(EventsProcessorUtil.java:60)
          at com.liferay.portal.servlet.MainServlet.processServicePre(MainServlet.java:1169)
          at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:539)
      
      Caused by: java.lang.NullPointerException
          at com.liferay.staging.security.internal.permission.StagingPermissionChecker.hasPermission(StagingPermissionChecker.java:134)
          at com.liferay.portal.service.permission.GroupPermissionImpl._contains(GroupPermissionImpl.java:226)
          at com.liferay.portal.service.permission.GroupPermissionImpl.contains(GroupPermissionImpl.java:103)
          at com.liferay.portal.kernel.service.permission.GroupPermissionUtil.contains(GroupPermissionUtil.java:51)
          at com.liferay.portal.service.permission.LayoutPermissionImpl.containsWithoutViewableGroup(LayoutPermissionImpl.java:277)
          at com.liferay.portal.service.permission.LayoutPermissionImpl.containsWithoutViewableGroup(LayoutPermissionImpl.java:319)
          at com.liferay.portal.service.permission.LayoutPermissionImpl.containsWithViewableGroup(LayoutPermissionImpl.java:333)
          at com.liferay.portal.service.permission.LayoutPermissionImpl._contains(LayoutPermissionImpl.java:595)
      

      During the table creation, i got these warnings :

      // WARN  [main][BaseDB:487] Error on rename of '.\lportal\#sql-116c_4.frm' to '.\lportal\assetcategory.frm' (Errcode: 13 - Permission denied): create index IX_2008FACB on AssetCategory (groupId, vocabularyId);_ [Sanitized]
      
      	
      2019-04-15 08:34:20.006 WARN  [main][BaseDB:487] Error on rename of '.\lportal\#sql-116c_4.frm' to '.\lportal\dlfileentry.frm' (Errcode: 13 - Permission denied): create index IX_BAF654E5 on DLFileEntry (groupId, fileEntryTypeId);_ [Sanitized]
      
      	
      2019-04-15 08:34:20.100 WARN  [main][BaseDB:487] Error on rename of '.\lportal\#sql-116c_4.frm' to '.\lportal\dlfileentry.frm' (Errcode: 13 - Permission denied): create index IX_D20C434D on DLFileEntry (groupId, userId, folderId);_ [Sanitized]
      
      	
      2019-04-15 08:34:21.017 WARN  [main][BaseDB:487] Error on rename of '.\lportal\#sql-116c_4.frm' to '.\lportal\expandovalue.frm' (Errcode: 13 - Permission denied): create index IX_B71E92D5 on ExpandoValue (tableId, rowId_);_ [Sanitized]
      
      	
      2019-04-15 08:34:21.252 WARN  [main][BaseDB:487] Error on rename of '.\lportal\#sql-116c_4.frm' to '.\lportal\group_.frm' (Errcode: 13 - Permission denied): create unique index IX_AACD15F0 on Group_ (companyId, liveGroupId, groupKey);_ [Sanitized]
      
      	
      2019-04-15 08:34:21.321 WARN  [main][BaseDB:487] Error on rename of '.\lportal\#sql-116c_4.frm' to '.\lportal\group_.frm' (Errcode: 13 - Permission denied): create index IX_7B590A7A on Group_ (type_, active_);_ [Sanitized]
      
      	
      2019-04-15 08:34:22.087 WARN  [main][BaseDB:487] Error on rename of '.\lportal\#sql-116c_4.frm' to '.\lportal\layoutrevision.frm' (Errcode: 13 - Permission denied): create index IX_421223B1 on LayoutRevision (status);_ [Sanitized]
      
      	
      2019-04-15 08:34:22.853 WARN  [main][BaseDB:487] Error on rename of '.\lportal\#sql-116c_4.frm' to '.\lportal\portletpreferences.frm' (Errcode: 13 - Permission denied): create index IX_A3B2A80C on PortletPreferences (ownerType, portletId);_ [Sanitized]
      
      	
      2019-04-15 08:34:23.519 WARN  [main][BaseDB:487] Error on rename of '.\lportal\#sql-116c_4.frm' to '.\lportal\resourcepermission.frm' (Errcode: 13 - Permission denied): create index IX_A37A0588 on ResourcePermission (roleId);_ [Sanitized]
      
      	
      2019-04-15 08:34:23.675 WARN  [main][BaseDB:487] Error on rename of '.\lportal\#sql-116c_4.frm' to '.\lportal\role_.frm' (Errcode: 13 - Permission denied): create index IX_5EB4E2FB on Role_ (subtype);_ [Sanitized]
      
      	
      2019-04-15 08:34:23.893 WARN  [main][BaseDB:487] Error on rename of '.\lportal\#sql-116c_4.frm' to '.\lportal\socialactivity.frm' (Errcode: 13 - Permission denied): create index IX_1F00C374 on SocialActivity (mirrorActivityId, classNameId, classPK);_ [Sanitized]
      
      	
      2019-04-15 08:34:24.419 WARN  [main][BaseDB:487] Error on rename of '.\lportal\#sql-116c_4.frm' to '.\lportal\socialrequest.frm' (Errcode: 13 - Permission denied): create index IX_CC86A444 on SocialRequest (userId, classNameId, classPK, type_, status);_ [Sanitized]
      
      	
      
      
      
      	
      2019-04-15 08:34:25.013 WARN  [main][BaseDB:487] Error on rename of '.\lportal\#sql-116c_4.frm' to '.\lportal\usern
      
      	
      
      
      
      	
      otificationevent.frm' (Errcode: 13 - Permission denied): create index IX_C4EFBD45 on UserNotificationEvent (userId, deliveryType, actionRequired, archived);_ [Sanitized]
      

      But it should not be an issue. Because i tried creating the tables manually , downloading the Portal DB from Liferay and executed. Still same issue.

       

      1. I thought DB issue.So, Completely removed mysql server from windows system and reinstalled again. same issue
      2.  I though Bundle issue. downloaded latest 7.1 bundle and tried 7.2 also. same issue.

      any issues related to windows environment or viruse software? 

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Days since last comment:
                27 weeks, 1 day ago

                Packages

                Version Package