Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Rivera Mari Carmen
SOLVED!!!! Problems importing a LAR
November 23, 2010 2:35 AM
Answer

Rivera Mari Carmen

Rank: New Member

Posts: 20

Join Date: June 23, 2010

Recent Posts

Hi!!!

I’m developing in liferay 5.2.3 and I got some similars organizations. So I usually do:
1) Export all the pages of an organization with all the includes data.
2) Import in another file .lar generated previously, with all the options by default. This make me a copy of my organization, copying even the structure, templates and web contents, totally independent from the import organization.

So here it is the problem! Since yesterday I cannot import anything.
Catalina.out show me this error.

Does anyone know about this?


  1
  2Corrupt JPEG data: 11796 extraneous bytes before marker 0xed
  3Corrupt JPEG data: 8888 extraneous bytes before marker 0xed
  4Corrupt JPEG data: 10398 extraneous bytes before marker 0xed
  5Corrupt JPEG data: 8233 extraneous bytes before marker 0xed
  615:22:28,804 ERROR [ImportPagesAction:85] com.liferay.portal.SystemException: com.liferay.portal.lar.PortletDataException: com.liferay.portlet.journal.FeedTargetLayoutFriendlyUrlException
  7com.liferay.portal.SystemException: com.liferay.portal.lar.PortletDataException: com.liferay.portlet.journal.FeedTargetLayoutFriendlyUrlException
  8        at com.liferay.portal.lar.PortletImporter.importPortletData(PortletImporter.java:467)
  9        at com.liferay.portal.lar.PortletImporter.importPortletData(PortletImporter.java:367)
 10        at com.liferay.portal.lar.LayoutImporter.importLayouts(LayoutImporter.java:627)
 11        at com.liferay.portal.service.impl.LayoutLocalServiceImpl.importLayouts(LayoutLocalServiceImpl.java:625)
 12        at com.liferay.portal.service.impl.LayoutLocalServiceImpl.importLayouts(LayoutLocalServiceImpl.java:596)
 13        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 14        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 15        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 16        at java.lang.reflect.Method.invoke(Method.java:597)
 17        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
 18        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
 19        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
 20        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
 21        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
 22        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
 23        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
 24        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
 25        at $Proxy25.importLayouts(Unknown Source)
 26        at com.liferay.portal.service.impl.LayoutServiceImpl.importLayouts(LayoutServiceImpl.java:210)
 27        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 28        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 29        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 30        at java.lang.reflect.Method.invoke(Method.java:597)
 31        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
 32        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
 33        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
 34        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
 35        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
 36        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
 37        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
 38        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
 39        at $Proxy26.importLayouts(Unknown Source)
 40        at com.liferay.portal.service.LayoutServiceUtil.importLayouts(LayoutServiceUtil.java:160)
 41        at com.liferay.portlet.communities.action.ImportPagesAction.processAction(ImportPagesAction.java:73)
 42        at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:180)
 43        at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:197)
 44        at com.sun.portal.portletcontainer.appengine.filter.FilterChainImpl.doFilter(FilterChainImpl.java:98)
 45        at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:57)
 46        at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:632)
 47        at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:664)
 48        at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:359)
 49        at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:604)
 50        at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:428)
 51        at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:195)
 52        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
 53        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
 54        at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:157)
 55        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
 56        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
 57        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
 58        at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:608)
 59        at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:846)
 60        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 61        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 62        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 63        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
 64        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
 65        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
 66        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
 67        at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:143)
 68        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 69        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 70        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 71        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
 72        at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:142)
 73        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
 74        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 75        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 76        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
 77        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:94)
 78        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 79        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 80        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
 81        at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:140)
 82        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
 83        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 84        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 85        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
 86        at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:282)
 87        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
 88        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 89        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 90        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
 91        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:94)
 92        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 93        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 94        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
 95        at com.liferay.portal.servlet.filters.cache.CacheFilter.processFilter(CacheFilter.java:425)
 96        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
 97        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 98        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 99        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
100        at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:257)
101        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
102        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
103        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
104        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
105        at com.liferay.portal.servlet.filters.sso.opensso.OpenSSOFilter.processFilter(OpenSSOFilter.java:73)
106        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
107        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
108        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
109        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
110        at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:193)
111        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
112        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
113        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
114        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
115        at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:191)
116        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
117        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
118        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
119        at com.liferay.portal.servlet.filters.threadlocalcache.ThreadLocalCacheFilter.processFilter(ThreadLocalCacheFilter.java:55)
120        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
121        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
122        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
123        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
124        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:94)
125        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
126        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
127        at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
128        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
129        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
130        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
131        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
132        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
133        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
134        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
135        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
136        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
137        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
138        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
139        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
140        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
141        at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
142        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
143        at java.lang.Thread.run(Thread.java:619)
144Caused by: com.liferay.portal.lar.PortletDataException: com.liferay.portlet.journal.FeedTargetLayoutFriendlyUrlException
145        at com.liferay.portlet.journal.lar.JournalPortletDataHandlerImpl.importData(JournalPortletDataHandlerImpl.java:1512)
146        at com.liferay.portal.lar.PortletImporter.importPortletData(PortletImporter.java:462)
147        ... 135 more
148Caused by: com.liferay.portlet.journal.FeedTargetLayoutFriendlyUrlException
149        at com.liferay.portlet.journal.service.impl.JournalFeedLocalServiceImpl.validate(JournalFeedLocalServiceImpl.java:433)
150        at com.liferay.portlet.journal.service.impl.JournalFeedLocalServiceImpl.validate(JournalFeedLocalServiceImpl.java:410)
151        at com.liferay.portlet.journal.service.impl.JournalFeedLocalServiceImpl.addFeed(JournalFeedLocalServiceImpl.java:96)
152        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
153        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
154        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
155        at java.lang.reflect.Method.invoke(Method.java:597)
156        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
157        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
158        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
159        at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:77)
160        at com.liferay.portal.mirage.aop.MirageInvoker.invoke(MirageInvoker.java:47)
161        at com.liferay.portal.mirage.aop.ContentFeedInvoker.invoke(ContentFeedInvoker.java:47)
162        at com.liferay.portal.mirage.service.ContentFeedServiceImpl.createContentFeed(ContentFeedServiceImpl.java:71)
163        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
164        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
165        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
166        at java.lang.reflect.Method.invoke(Method.java:597)
167        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
168        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
169        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
170        at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:77)
171        at com.liferay.portal.spring.aop.LogAdvice.invoke(LogAdvice.java:73)
172        at sun.reflect.GeneratedMethodAccessor303.invoke(Unknown Source)
173        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
174        at java.lang.reflect.Method.invoke(Method.java:597)
175        at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:627)
176        at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:616)
177        at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:64)
178        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
179        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
180        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
181        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
182        at $Proxy203.createContentFeed(Unknown Source)
183        at com.liferay.portal.mirage.aop.JournalFeedLocalServiceAdvice.doInvoke(JournalFeedLocalServiceAdvice.java:48)
184        at com.liferay.portal.mirage.aop.BaseMirageAdvice.invoke(BaseMirageAdvice.java:47)
185        at sun.reflect.GeneratedMethodAccessor231.invoke(Unknown Source)
186        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
187        at java.lang.reflect.Method.invoke(Method.java:597)
188        at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:627)
189        at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:616)
190        at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:64)
191        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
192        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
193        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
194        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
195        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
196        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
197        at $Proxy151.addFeed(Unknown Source)
198        at com.liferay.portlet.journal.service.JournalFeedLocalServiceUtil.addFeed(JournalFeedLocalServiceUtil.java:144)
199        at com.liferay.portlet.journal.lar.JournalPortletDataHandlerImpl.importFeed(JournalPortletDataHandlerImpl.java:976)
200        at com.liferay.portlet.journal.lar.JournalPortletDataHandlerImpl.importData(JournalPortletDataHandlerImpl.java:1395)
201        ... 136 more



Thanks
Sergio González
RE: URGENT! Problems importing a LAR
November 16, 2010 8:46 AM
Answer

Sergio González

LIFERAY STAFF

Rank: Expert

Posts: 279

Join Date: January 7, 2010

Recent Posts

Hi,

This problem occurs because your feeds are linked to friendly url that don't exist in you new organization. Mainly, there are two reasons why this could be happening:

1. You didn't export all pages of the organization, so there is one feed linked to a missing page.

2. You are importing a LAR to a new organization with a different name than the original organization.
Friendly url has the following pattern /web/organization1/page. Then, when you import to organization2, the new friendly url is /web/organization2/page, and the feed is linked to the wrong friendly url.

#2 has been improved in trunk. You can check it here

Cheers!