AnsweredAssumed Answered

Error when upload documents

Question asked by a2006 on Feb 14, 2006
Latest reply on Apr 23, 2007 by tegyat
Hi guys,

I tried to upload two Office files and I obtain an Exception.

Steps:
1.- Add content
2.- Select file (.doc or .xls)
3.- Push next

Word:

javax.portlet.PortletException: Error calling action method of component with id add-content-upload-end:_alfresco_WAR_alfresco__id51

caused by:
javax.faces.FacesException: Error calling action method of component with id add-content-upload-end:_alfresco_WAR_alfresco__id51

caused by:
javax.faces.el.EvaluationException: Exception while invoking expression #{AddContentWizard.next}

caused by:
org.alfresco.service.cmr.repository.ContentIOException: Compound Document SummaryInformation metadata extraction failed: reader: ContentAccessor[ contentUrl=store://C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\Alfresco\alfresco10851.upload, mimetype=application/msword, size=25210, encoding=UTF-8]

caused by:
java.io.IOException: Unable to read entire block; 122 bytes read; expected 512 bytes

Hide Details

javax.portlet.PortletException: Error calling action method of component with id add-content-upload-end:_alfresco_WAR_alfresco__id51
at org.apache.myfaces.portlet.MyFacesGenericPortlet.handleExceptionFromLifecycle(MyFacesGenericPortlet.java:254)
at org.apache.myfaces.portlet.MyFacesGenericPortlet.processAction(MyFacesGenericPortlet.java:233)
at org.alfresco.web.app.portlet.AlfrescoFacesPortlet.processAction(AlfrescoFacesPortlet.java:164)
at com.liferay.portal.servlet.PortletServlet.service(PortletServlet.java:72)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
at com.liferay.portlet.CachePortlet._invoke(CachePortlet.java:297)
at com.liferay.portlet.CachePortlet.processAction(CachePortlet.java:144)
at com.liferay.portal.action.LayoutAction._processPortletRequest(LayoutAction.java:233)
at com.liferay.portal.action.LayoutAction._processActionRequest(LayoutAction.java:251)
at com.liferay.portal.action.LayoutAction.execute(LayoutAction.java:85)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at com.liferay.portal.struts.PortalRequestProcessor.process(PortalRequestProcessor.java:159)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at com.liferay.portal.servlet.MainServlet.callParentService(MainServlet.java:355)
at com.liferay.portal.servlet.MainServlet.service(MainServlet.java:677)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.liferay.filters.strip.StripFilter.doFilter(StripFilter.java:95)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.liferay.filters.secure.SecureFilter.doFilter(SecureFilter.java:136)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.liferay.filters.compression.CompressionFilter.doFilter(CompressionFilter.java:117)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:153)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:407)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
at java.lang.Thread.run(Thread.java:595)
Caused by: javax.faces.FacesException: Error calling action method of component with id add-content-upload-end:_alfresco_WAR_alfresco__id51
at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:74)
at javax.faces.component.UICommand.broadcast(UICommand.java:106)
at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:90)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:164)
at org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:316)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
at org.apache.myfaces.portlet.MyFacesGenericPortlet.processAction(MyFacesGenericPortlet.java:221)
… 51 more
Caused by: javax.faces.el.EvaluationException: Exception while invoking expression #{AddContentWizard.next}
at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:153)
at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
… 57 more
Caused by: org.alfresco.service.cmr.repository.ContentIOException: Compound Document SummaryInformation metadata extraction failed: reader: ContentAccessor[ contentUrl=store://C:\DOCUME~1\ADMINI~1\CONFIG~1\Temp\Alfresco\alfresco10851.upload, mimetype=application/msword, size=25210, encoding=UTF-8]
at org.alfresco.repo.content.metadata.OfficeMetadataExtracter.extract(OfficeMetadataExtracter.java:102)
at org.alfresco.web.bean.repository.Repository.extractMetadata(Repository.java:478)
at org.alfresco.web.bean.wizard.AddContentWizard.next(AddContentWizard.java:83)
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:585)
at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
… 58 more
Caused by: java.io.IOException: Unable to read entire block; 122 bytes read; expected 512 bytes
at org.apache.poi.poifs.storage.RawDataBlock.(RawDataBlock.java:62)
at org.apache.poi.poifs.storage.RawDataBlockList.(RawDataBlockList.java:51)
at org.apache.poi.poifs.eventfilesystem.POIFSReader.read(POIFSReader.java:79)
at org.alfresco.repo.content.metadata.OfficeMetadataExtracter.extract(OfficeMetadataExtracter.java:98)
… 65 more

I can upload txt, html… without errors.

I'm using:
- Alfresco 1.1.2
- Liferay 3.6.1
- Jboss 4.0.2
- Oracle 9
- Java 5.0_05

Any idea??

Thanks in advance, Jose Blanco.

[note]
If I change .doc to .doc_ file upload OK.
[/note]

Outcomes