Forums

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

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Oscar Osorio
Problem while exporting .lar
January 28, 2011 8:34 AM
Answer

Oscar Osorio

Rank: New Member

Posts: 10

Join Date: November 10, 2010

Recent Posts

Hi Liferay community.

We are facing some troubles while trying to export a .lar from a portal we have in production.

We are using Liferay 6 EE, with tomcat and MySQL, on a server with Linux.

When we try to export the .lar, there following error message is shown:

"You have entered invalid data. Please try again. "

Do you have any ideas?

The log in the server shows the next error messages.
  1
  216:00:23,948 ERROR [ExportPagesAction:174] com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.lar.PortletDataException: java.lang.ArrayIndexOutOfBoundsException: 1
  3com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.lar.PortletDataException: java.lang.ArrayIndexOutOfBoundsException: 1
  4        at com.liferay.portal.lar.PortletExporter.exportPortletData(PortletExporter.java:737)
  5        at com.liferay.portal.lar.PortletExporter.exportPortlet(PortletExporter.java:568)
  6        at com.liferay.portal.lar.LayoutExporter.exportLayoutsAsFile(LayoutExporter.java:359)
  7        at com.liferay.portal.service.impl.LayoutLocalServiceImpl.exportLayoutsAsFile(LayoutLocalServiceImpl.java:397)
  8        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  9        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 10        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 11        at java.lang.reflect.Method.invoke(Method.java:597)
 12        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
 13        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
 14        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
 15        at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:75)
 16        at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
 17        at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
 18        at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
 19        at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
 20        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
 21        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
 22        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
 23        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
 24        at $Proxy28.exportLayoutsAsFile(Unknown Source)
 25        at com.liferay.portal.service.impl.LayoutServiceImpl.exportLayoutsAsFile(LayoutServiceImpl.java:141)
 26        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 27        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
 28        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
 29        at java.lang.reflect.Method.invoke(Method.java:597)
 30        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
 31        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
 32        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
 33        at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:75)
 34        at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
 35        at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
 36        at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
 37        at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:58)
 38        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
 39        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
 40        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
 41        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
 42        at $Proxy29.exportLayoutsAsFile(Unknown Source)
 43        at com.liferay.portal.service.LayoutServiceUtil.exportLayoutsAsFile(LayoutServiceUtil.java:104)
 44        at com.liferay.portlet.communities.action.ExportPagesAction.processAction(ExportPagesAction.java:158)
 45        at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:169)
 46        at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:186)
 47        at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70)
 48        at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
 49        at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:652)
 50        at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:687)
 51        at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:360)
 52        at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:768)
 53        at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:571)
 54        at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:229)
 55        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
 56        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
 57        at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:154)
 58        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
 59        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
 60        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
 61        at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:508)
 62        at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:485)
 63        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 64        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 65        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 66        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 67        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
 68        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 69        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 70        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 71        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
 72        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 73        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 74        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 75        at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:309)
 76        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
 77        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 78        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 79        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 80        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
 81        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 82        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 83        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 84        at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:137)
 85        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
 86        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 87        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 88        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 89        at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:182)
 90        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
 91        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 92        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 93        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
 94        at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:256)
 95        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
 96        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 97        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 98        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
 99        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
100        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
101        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
102        at com.liferay.portal.servlet.FriendlyURLServlet.service(FriendlyURLServlet.java:134)
103        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
104        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
105        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
106        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
107        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
108        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
109        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
110        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
111        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
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:196)
115        at com.liferay.portal.servlet.filters.strip.StripFilter.processFilter(StripFilter.java:309)
116        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
117        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
118        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
119        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
120        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
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:196)
124        at com.liferay.portal.servlet.filters.gzip.GZipFilter.processFilter(GZipFilter.java:137)
125        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
126        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
127        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
128        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
129        at com.liferay.portal.servlet.filters.secure.SecureFilter.processFilter(SecureFilter.java:182)
130        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
131        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
132        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
133        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
134        at com.liferay.portal.servlet.filters.i18n.I18nFilter.processFilter(I18nFilter.java:222)
135        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
136        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
137        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
138        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
139        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
140        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
141        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
142        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
143        at com.liferay.portal.servlet.filters.cache.CacheFilter.processFilter(CacheFilter.java:440)
144        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
145        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
146        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
147        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
148        at com.liferay.portal.servlet.filters.etag.ETagFilter.processFilter(ETagFilter.java:53)
149        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
150        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
151        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
152        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
153        at com.liferay.portal.servlet.filters.autologin.AutoLoginFilter.processFilter(AutoLoginFilter.java:256)
154        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
155        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
156        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
157        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
158        at com.liferay.portal.servlet.filters.sso.ntlm.NtlmPostFilter.processFilter(NtlmPostFilter.java:81)
159        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
160        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
161        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
162        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
163        at com.liferay.portal.sharepoint.SharepointFilter.processFilter(SharepointFilter.java:181)
164        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
165        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
166        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
167        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
168        at com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.processFilter(VirtualHostFilter.java:245)
169        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
170        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
171        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
172        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
173        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
174        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
175        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
176        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
177        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:126)
178        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
179        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
180        at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)
181        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
182        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
183        at com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:196)
184        at com.liferay.portal.servlet.filters.threadlocal.ThreadLocalFilter.processFilter(ThreadLocalFilter.java:40)
185        at com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:123)
186        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
187        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
188        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
189        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
190        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:470)
191        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
192        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
193        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
194        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
195        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
196        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
197        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:774)
198        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:703)
199        at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:896)
200        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
201        at java.lang.Thread.run(Thread.java:662)
202Caused by: com.liferay.portal.kernel.lar.PortletDataException: java.lang.ArrayIndexOutOfBoundsException: 1
203        at com.liferay.portal.kernel.lar.BasePortletDataHandler.exportData(BasePortletDataHandler.java:46)
204        at com.liferay.portal.lar.PortletExporter.exportPortletData(PortletExporter.java:733)
205        ... 197 more
206Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
207        at com.liferay.portlet.rss.lar.RSSPortletDataHandlerImpl.doExportData(RSSPortletDataHandlerImpl.java:108)
208        at com.liferay.portal.kernel.lar.BasePortletDataHandler.exportData(BasePortletDataHandler.java:43)
209        ... 198 more
Hitoshi Ozawa
RE: Problem while exporting .lar
January 28, 2011 5:05 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

Have you checked if directory permissions on directory where the lar file is to be created has a write permission?
Fateh Alchhabi
RE: Problem while exporting .lar
January 29, 2011 6:54 AM
Answer

Fateh Alchhabi

Rank: Junior Member

Posts: 58

Join Date: December 1, 2010

Recent Posts

hi Oscar Osorio
i think your problem coz you try to export data type not excited in you content
try to check this out :

from the export tab >> more option unchecked "Web Content" NOT "Web Content Display" Then export it.


i try this and it 100% working ^_^


cheerz