Details

      Description

      1. Add the Nested Portlet to a page
      2. Export a Portlet LAR
        • Click the Options icon
        • Click Export / Import
        • Click the Export tab
        • Click the Export button
        • Save the LAR file somewhere convenient
      3. Import the Portlet LAR
        • Click the Import tab
        • Select the newly exported LAR file
        • Click the Import button

        • The attached Exception will be thrown
          18:53:49,070 ERROR [ExportImportAction:305] com.liferay.portal.kernel.exception.SystemException: java.lang.NullPointerException
          com.liferay.portal.kernel.exception.SystemException: java.lang.NullPointerException
                  at com.liferay.portal.service.impl.LayoutLocalServiceImpl.importPortletInfo(LayoutLocalServiceImpl.java:1466)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                  at java.lang.reflect.Method.invoke(Unknown Source)
                  at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:320)
                  at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
                  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
                  at com.liferay.portal.service.impl.LayoutLocalServiceVirtualLayoutsAdvice.invoke(LayoutLocalServiceVirtualLayoutsAdvice.java:155)
                  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
                  at com.liferay.portal.service.impl.LayoutLocalServiceStagingAdvice.invoke(LayoutLocalServiceStagingAdvice.java:102)
                  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
                  at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
                  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
                  at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
                  at $Proxy27.importPortletInfo(Unknown Source)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                  at java.lang.reflect.Method.invoke(Unknown Source)
                  at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:122)
                  at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
                  at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
                  at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
                  at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
                  at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
                  at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
                  at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
                  at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
                  at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
                  at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
                  at com.liferay.portal.security.pacl.PACLAdvice.invoke(PACLAdvice.java:39)
                  at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
                  at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
                  at $Proxy28.importPortletInfo(Unknown Source)
                  at com.liferay.portal.service.impl.LayoutServiceImpl.importPortletInfo(LayoutServiceImpl.java:694)
                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
                  at java.lang.reflect.Method.invoke(Unknown Source)
                  at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:122)
                  at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
                  at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
                  at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
                  at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
                  at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
                  at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
                  at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
                  at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
                  at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
                  at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
                  at com.liferay.portal.security.pacl.PACLAdvice.invoke(PACLAdvice.java:39)
                  at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
                  at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
                  at $Proxy29.importPortletInfo(Unknown Source)
                  at com.liferay.portal.service.LayoutServiceUtil.importPortletInfo(LayoutServiceUtil.java:544)
                  at com.liferay.portlet.portletconfiguration.action.ExportImportAction.importData(ExportImportAction.java:286)
                  at com.liferay.portlet.portletconfiguration.action.ExportImportAction.processAction(ExportImportAction.java:105)
                  at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:169)
                  at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:212)
                  at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70)
                  at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
                  at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:548)
                  at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:579)
                  at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:294)
                  at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:884)
                  at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:636)
                  at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:248)
                  at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
                  at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
                  at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:176)
                  at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
                  at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
                  at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:550)
                  at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:527)
                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
                  at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
                  at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294)
                  at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                  at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
                  at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)
                  at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:402)
                  at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:329)
                  at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:138)
                  at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
                  at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
                  at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:310)
                  at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
                  at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
                  at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:123)
                  at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
                  at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
                  at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:294)
                  at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
                  at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
                  at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:241)
                  at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
                  at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
                  at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:56)
                  at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
                  at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
                  at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:246)
                  at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
                  at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
                  at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:83)
                  at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
                  at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
                  at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:80)
                  at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
                  at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:163)
                  at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:216)
                  at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:57)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
                  at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDoFilter(InvokerFilterChain.java:206)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:108)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:167)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.processDirectCallFilter(InvokerFilterChain.java:187)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:95)
                  at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilter.doFilter(InvokerFilter.java:73)
                  at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
                  at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
                  at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:225)
                  at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
                  at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
                  at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
                  at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
                  at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
                  at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
                  at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
                  at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:999)
                  at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
                  at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
                  at java.lang.Thread.run(Unknown Source)
          Caused by: java.lang.NullPointerException
                  at com.liferay.portal.lar.PortletImporter.doImportPortletInfo(PortletImporter.java:341)
                  at com.liferay.portal.lar.PortletImporter.importPortletInfo(PortletImporter.java:141)
                  at com.liferay.portal.service.impl.LayoutLocalServiceImpl.importPortletInfo(LayoutLocalServiceImpl.java:1456)
                  ... 185 more
        • The Error Messages below will be displayed in the portal:
          • Your request failed to complete
          • An unexpected error occurred while importing your file.
        • I reproduced this error with the Nested Portlet, Navigation, Breadcrumb, and Asset Publisher
        • Site LAR Export and Import works, even if you use these same portlets. This bug ONLY applies to Portlet LARs.

        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, 44 weeks, 2 days ago