I'm sorry for spam, but I menat it breaks when it tries to extract the info
from the file.

Thanks in advance.

On Wed, Jun 9, 2010 at 10:43 AM, Jorge Moya <[email protected]> wrote:

> What do you mean, exactly? I'm uploading the files through an FTP server,
> and after upload I execute the validation of my app which proceed to extract
> the information from a designated folder, but it breaks when it tries to
> upload the file with mentioned errors.
>
>
> On Tue, Jun 8, 2010 at 3:04 PM, David Fisher <[email protected]>wrote:
>
>> Hi,
>>
>> You should write the uploaded file to your temporary file and then read it
>> in.
>>
>> OOXML files are zip files and are not accessed non-serailly. The user
>> might stop transfer or the network connection might break.
>>
>> Regards,
>> Dave
>>
>> On Jun 8, 2010, at 9:37 AM, Jorge Moya wrote:
>>
>> > Ok guys, I'm trying to extract the information of an .xlsx document
>> using
>> > POI API and the ss.usermodel (using an app I made), however when I tried
>> to
>> > upload the file to the server, it returned me these errors on the
>> server's
>> > tomcat console:
>> >
>> > org.apache.poi.openxml4j.exceptions.InvalidFormatException: Can't read
>> > content t
>> > ypes part !
>> >        at
>> > org.apache.poi.openxml4j.opc.internal.ContentTypeManager.<init>(Conte
>> > ntTypeManager.java:107)
>> >        at
>> > org.apache.poi.openxml4j.opc.internal.ZipContentTypeManager.<init>(Zi
>> > pContentTypeManager.java:56)
>> >        at
>> > org.apache.poi.openxml4j.opc.ZipPackage.getPartsImpl(ZipPackage.java:
>> > 136)
>> >        at
>> > org.apache.poi.openxml4j.opc.OPCPackage.getParts(OPCPackage.java:585)
>> >
>> >        at
>> org.apache.poi.openxml4j.opc.OPCPackage.open(OPCPackage.java:222)
>> >        at
>> > org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.ja
>> > va:63)
>> >        at com.msights.core.utils.ExcelFile.loadFile(ExcelFile.java:84)
>> >        at
>> com.msights.core.utils.GroupLoader.loadFiles(GroupLoader.java:50)
>> >        at
>> > com.msights.core.validation.ValidationModule.run(ValidationModule.jav
>> > a:154)
>> >        at java.lang.Thread.run(Thread.java:595)
>> >
>> > Any idea of what's happening? Uploading .XLS files work fine. Extracting
>> > info on my local machine works fine, as well.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
>

Reply via email to