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

While registering a Portlet a NullPointerException is thrown

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: No Longer Reproducible
    • Affects Version/s: 6.1.0 CE GA1
    • Fix Version/s: 6.2.0 CE M4
    • Component/s: WCM

      Description

      The problem is, that the PortletBeanLocatorUtil is placed in package com.liferay.portal.kernel.bean, not com.liferay.util.bean.
      see: http://www.liferay.com/de/community/forums/-/message_boards/message/13163246
      which results in:
      [code]
      11:50:55,000 ERROR [PortletLocalServiceImpl:656] java.lang.NullPointerException
      java.lang.NullPointerException
      at com.liferay.portal.kernel.util.ClassUtil.getParentPath(ClassUtil.java:134)
      at com.liferay.portal.kernel.servlet.WebDirDetector.getLibDir(WebDirDetector.java:25)
      at com.liferay.portal.kernel.servlet.WebDirDetector.getRootDir(WebDirDetector.java:43)
      at com.liferay.portal.kernel.servlet.ServletContextUtil.getRootDir(ServletContextUtil.java:173)
      at com.liferay.portal.kernel.servlet.ServletContextUtil.getRealPath(ServletContextUtil.java:143)
      at com.liferay.portal.kernel.servlet.ServletContextUtil.getLastModified(ServletContextUtil.java:100)
      at com.liferay.portal.kernel.servlet.ServletContextUtil.getLastModified(ServletContextUtil.java:68)
      at com.liferay.portal.kernel.servlet.ServletContextUtil.getLastModified(ServletContextUtil.java:92)
      at com.liferay.portal.kernel.servlet.ServletContextUtil.getLastModified(ServletContextUtil.java:68)
      at com.liferay.portal.kernel.servlet.ServletContextUtil.getLastModified(ServletContextUtil.java:92)
      at com.liferay.portal.kernel.servlet.ServletContextUtil.getLastModified(ServletContextUtil.java:68)
      at com.liferay.portal.kernel.servlet.ServletContextUtil.getLastModified(ServletContextUtil.java:92)
      at com.liferay.portal.kernel.servlet.ServletContextUtil.getLastModified(ServletContextUtil.java:68)
      at com.liferay.portal.kernel.servlet.ServletContextUtil.getLastModified(ServletContextUtil.java:92)
      at com.liferay.portal.kernel.servlet.ServletContextUtil.getLastModified(ServletContextUtil.java:68)
      at com.liferay.portal.kernel.servlet.ServletContextUtil.getLastModified(ServletContextUtil.java:92)
      at com.liferay.portal.kernel.servlet.ServletContextUtil.getLastModified(ServletContextUtil.java:68)
      at com.liferay.portal.kernel.servlet.ServletContextUtil.getLastModified(ServletContextUtil.java:62)
      at com.liferay.portal.service.impl.PortletLocalServiceImpl._readPortletXML(PortletLocalServiceImpl.java:1808)
      at com.liferay.portal.service.impl.PortletLocalServiceImpl.initWAR(PortletLocalServiceImpl.java:600)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:82)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
      at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
      at $Proxy101.initWAR(Unknown Source)
      at com.liferay.portal.service.PortletLocalServiceUtil.initWAR(PortletLocalServiceUtil.java:340)
      at com.liferay.portal.deploy.hot.PortletHotDeployListener.doInvokeDeploy(PortletHotDeployListener.java:223)
      at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:101)
      at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._doFireDeployEvent(HotDeployUtil.java:109)
      at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._fireDeployEvent(HotDeployUtil.java:182)
      at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:38)
      at com.liferay.portal.kernel.servlet.PortletContextListener.doPortalInit(PortletContextListener.java:99)
      at com.liferay.portal.kernel.util.BasePortalLifecycle.portalInit(BasePortalLifecycle.java:42)
      at com.liferay.portal.kernel.util.PortalLifecycleUtil.register(PortalLifecycleUtil.java:52)
      at com.liferay.portal.kernel.util.BasePortalLifecycle.registerPortalLifecycle(BasePortalLifecycle.java:50)
      at com.liferay.portal.kernel.servlet.PortletContextListener.contextInitialized(PortletContextListener.java:55)
      at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
      at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1872)
      at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
      at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
      at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
      [/code]

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 18 weeks, 4 days ago

                Packages

                Version Package
                6.2.0 CE M4