Liferayは6年連続でGartner Magic Quadrantのリーダーに。 詳細はこちら

構造的に表示 平面上に表示 ツリー上に表示
スレッド [ 前へ | 次へ ]
toggle
Pietro Di Maggio
Error importing lar file
2012/09/27 8:29
答え

Pietro Di Maggio

ランク: New Member

投稿: 1

参加年月日: 2012/08/10

最近の投稿

Hi all,
I'm trying to import a lar file (about 15MB ) into an empty site but an error is raised and no data is imported.
Lar file was exported from a Liferary instance with the same version of the target (6.1.1 CE GA2 on Tomcat 7).
Others lar file are imported without problems.

The error is the following and seems to be file size related :
 1
 2com.liferay.portal.kernel.lar.PortletDataException: com.liferay.portlet.documentlibrary.FileSizeException: Stream closed
 3 at com.liferay.portal.kernel.lar.BasePortletDataHandler.importData(BasePortletDataHandler.java:82)
 4 at com.liferay.portal.lar.PortletImporter.importPortletData(PortletImporter.java:1056)
 5 at com.liferay.portal.lar.PortletImporter.importPortletData(PortletImporter.java:996)
 6 at com.liferay.portal.lar.LayoutImporter.doImportLayouts(LayoutImporter.java:728)
 7 at com.liferay.portal.lar.LayoutImporter.importLayouts(LayoutImporter.java:147)
 8 at com.liferay.portal.service.impl.LayoutLocalServiceImpl.importLayouts(LayoutLocalServiceImpl.java:1382)
 9 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
10 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
11 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
12 at java.lang.reflect.Method.invoke(Method.java:597)
13 at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:320)
14 at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
15 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
16 at com.liferay.portal.service.impl.LayoutLocalServiceVirtualLayoutsAdvice.invoke(LayoutLocalServiceVirtualLayoutsAdvice.java:197)
17 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
18 at com.liferay.portal.service.impl.LayoutLocalServiceStagingAdvice.invoke(LayoutLocalServiceStagingAdvice.java:107)
19 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
20 at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
21 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
22 at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
23 at $Proxy27.importLayouts(Unknown Source)
24 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
25 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
26 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
27 at java.lang.reflect.Method.invoke(Method.java:597)
28 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:122)
29 at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
30 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
31 at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
32 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
33 at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
34 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
35 at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
36 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
37 at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
38 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
39 at com.liferay.portal.security.pacl.PACLAdvice.invoke(PACLAdvice.java:51)
40 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
41 at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
42 at $Proxy28.importLayouts(Unknown Source)
43 at com.liferay.portal.service.impl.LayoutServiceImpl.importLayouts(LayoutServiceImpl.java:636)
44 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
45 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
46 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
47 at java.lang.reflect.Method.invoke(Method.java:597)
48 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:122)
49 at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
50 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
51 at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
52 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
53 at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
54 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
55 at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
56 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
57 at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
58 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
59 at com.liferay.portal.security.pacl.PACLAdvice.invoke(PACLAdvice.java:51)
60 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
61 at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
62 at $Proxy29.importLayouts(Unknown Source)
63 at com.liferay.portal.service.LayoutServiceUtil.importLayouts(LayoutServiceUtil.java:493)
64 at com.liferay.portlet.layoutsadmin.action.ImportLayoutsAction.processAction(ImportLayoutsAction.java:71)
65 at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:169)
66 at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:212)
67 at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70)
68 at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
69 at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:548)
70 at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:579)
71 at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:294)
72 at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:944)
73 at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:688)
74 at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:249)
75 at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
76 at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
77 at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:176)
78 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
79 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
80 at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
81 at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:560)
82 at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:537)
83 at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
84 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
85 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
86 at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
87 at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
88 at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter..



After setting in portal-ext.properties

dl.file.max.size=0

the error switchs to :
 1
 2com.liferay.portal.kernel.lar.PortletDataException: com.liferay.portal.kernel.exception.SystemException: java.io.IOException: Stream closed
 3 at com.liferay.portal.kernel.lar.BasePortletDataHandler.importData(BasePortletDataHandler.java:82)
 4 at com.liferay.portal.lar.PortletImporter.importPortletData(PortletImporter.java:1056)
 5 at com.liferay.portal.lar.PortletImporter.importPortletData(PortletImporter.java:996)
 6 at com.liferay.portal.lar.LayoutImporter.doImportLayouts(LayoutImporter.java:728)
 7 at com.liferay.portal.lar.LayoutImporter.importLayouts(LayoutImporter.java:147)
 8 at com.liferay.portal.service.impl.LayoutLocalServiceImpl.importLayouts(LayoutLocalServiceImpl.java:1382)
 9 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
10 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
11 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
12 at java.lang.reflect.Method.invoke(Method.java:597)
13 at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:320)
14 at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
15 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
16 at com.liferay.portal.service.impl.LayoutLocalServiceVirtualLayoutsAdvice.invoke(LayoutLocalServiceVirtualLayoutsAdvice.java:197)
17 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
18 at com.liferay.portal.service.impl.LayoutLocalServiceStagingAdvice.invoke(LayoutLocalServiceStagingAdvice.java:107)
19 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
20 at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
21 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
22 at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
23 at $Proxy27.importLayouts(Unknown Source)
24 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
25 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
26 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
27 at java.lang.reflect.Method.invoke(Method.java:597)
28 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:122)
29 at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
30 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
31 at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
32 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
33 at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
34 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
35 at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
36 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
37 at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
38 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
39 at com.liferay.portal.security.pacl.PACLAdvice.invoke(PACLAdvice.java:51)
40 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
41 at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
42 at $Proxy28.importLayouts(Unknown Source)
43 at com.liferay.portal.service.impl.LayoutServiceImpl.importLayouts(LayoutServiceImpl.java:636)
44 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
45 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
46 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
47 at java.lang.reflect.Method.invoke(Method.java:597)
48 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:122)
49 at com.liferay.portal.spring.transaction.TransactionInterceptor.invoke(TransactionInterceptor.java:71)
50 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
51 at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
52 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
53 at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
54 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
55 at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
56 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
57 at com.liferay.portal.spring.aop.ChainableMethodAdvice.invoke(ChainableMethodAdvice.java:57)
58 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
59 at com.liferay.portal.security.pacl.PACLAdvice.invoke(PACLAdvice.java:51)
60 at com.liferay.portal.spring.aop.ServiceBeanMethodInvocation.proceed(ServiceBeanMethodInvocation.java:118)
61 at com.liferay.portal.spring.aop.ServiceBeanAopProxy.invoke(ServiceBeanAopProxy.java:211)
62 at $Proxy29.importLayouts(Unknown Source)
63 at com.liferay.portal.service.LayoutServiceUtil.importLayouts(LayoutServiceUtil.java:493)
64 at com.liferay.portlet.layoutsadmin.action.ImportLayoutsAction.processAction(ImportLayoutsAction.java:71)
65 at com.liferay.portal.struts.PortletRequestProcessor.process(PortletRequestProcessor.java:169)
66 at com.liferay.portlet.StrutsPortlet.processAction(StrutsPortlet.java:212)
67 at com.liferay.portlet.FilterChainImpl.doFilter(FilterChainImpl.java:70)
68 at com.liferay.portal.kernel.portlet.PortletFilterUtil.doFilter(PortletFilterUtil.java:48)
69 at com.liferay.portlet.InvokerPortletImpl.invoke(InvokerPortletImpl.java:548)
70 at com.liferay.portlet.InvokerPortletImpl.invokeAction(InvokerPortletImpl.java:579)
71 at com.liferay.portlet.InvokerPortletImpl.processAction(InvokerPortletImpl.java:294)
72 at com.liferay.portal.action.LayoutAction.processPortletRequest(LayoutAction.java:944)
73 at com.liferay.portal.action.LayoutAction.processLayout(LayoutAction.java:688)
74 at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:249)
75 at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
76 at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
77 at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:176)
78 at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
79 at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
80 at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
81 at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:560)
82 at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:537)
83 at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
84 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
85 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
86 at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:72)
87 at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain.doFilter(InvokerFilterChain.java:116)
88 at com.liferay.portal.kernel.servlet.filters.invoker.InvokerFilterChain..


Someone did experience the same error ?

Any suggestion is welcome.
Orin Fink
RE: Error importing lar file
2012/11/05 7:11
答え

Orin Fink

ランク: Junior Member

投稿: 43

参加年月日: 2010/03/24

最近の投稿

By any chance, are you using the Global scope in any way?

We have seen this error when using the staging functionality and having a piece of Web Content created in the Global scope and having an image tag pointing to an image that was in a local site scope. After we moved the image to the Global scope and modified the web content article such we pointed to the Global scope version of the image, the error no longer appeared for us and we could publish pages as normal again.

We have also tested this and we can repeat this issue. I don't know that this is a "bug" per se because it kind of make sense that no Global scope content should rely on an asset (image or document or other) that is in a local scope. Either way, it might be nice to just have some more obvious error message aside from Null Pointer Exception.
Sampsa Sohlman
RE: Error importing lar file
2012/11/05 11:32
答え

Sampsa Sohlman

LIFERAY STAFF

ランク: Regular Member

投稿: 222

参加年月日: 2007/09/27

最近の投稿

Looks that stacktrace is not complete?

Sometimes I have been able to do fixes for the LAR problems.