Return-Path: X-Original-To: apmail-poi-dev-archive@www.apache.org Delivered-To: apmail-poi-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C3AF817DBA for ; Thu, 29 Oct 2015 12:26:04 +0000 (UTC) Received: (qmail 76758 invoked by uid 500); 29 Oct 2015 12:26:04 -0000 Delivered-To: apmail-poi-dev-archive@poi.apache.org Received: (qmail 76718 invoked by uid 500); 29 Oct 2015 12:26:04 -0000 Mailing-List: contact dev-help@poi.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "POI Developers List" Delivered-To: mailing list dev@poi.apache.org Received: (qmail 76707 invoked by uid 99); 29 Oct 2015 12:26:04 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Oct 2015 12:26:04 +0000 Received: from asf-bz1-us-mid.priv.apache.org (nat1-us-mid.apache.org [23.253.172.122]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPS id E64221A0230 for ; Thu, 29 Oct 2015 12:26:03 +0000 (UTC) Received: by asf-bz1-us-mid.priv.apache.org (ASF Mail Server at asf-bz1-us-mid.priv.apache.org, from userid 33) id D5EE260A8A; Thu, 29 Oct 2015 12:26:02 +0000 (UTC) From: bugzilla@apache.org To: dev@poi.apache.org Subject: [Bug 58562] Problems with protect record Date: Thu, 29 Oct 2015 12:26:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: POI X-Bugzilla-Component: HSSF X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: francesco.petruzzi@innovery.it X-Bugzilla-Status: NEEDINFO X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: dev@poi.apache.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bz.apache.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 https://bz.apache.org/bugzilla/show_bug.cgi?id=58562 --- Comment #2 from Francesco Petruzzi --- The file I use is confidential, I am waiting for a file free for distribution. If I load and save the file with Excel2007 the output file is ok. This is the stack trace when try to load ProtectRecord on original file: org.apache.poi.hssf.record.RecordFormatException: Not enough data (0) to read requested (2) bytes at org.apache.poi.hssf.record.RecordInputStream.checkRecordPosition(RecordInputStream.java:216) at org.apache.poi.hssf.record.RecordInputStream.readShort(RecordInputStream.java:233) at org.apache.poi.hssf.record.ProtectRecord.(ProtectRecord.java:50) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.apache.poi.hssf.record.RecordFactory$ReflectionConstructorRecordCreator.create(RecordFactory.java:87) at org.apache.poi.hssf.record.RecordFactory.createSingleRecord(RecordFactory.java:338) at org.apache.poi.hssf.record.RecordFactoryInputStream.readNextRecord(RecordFactoryInputStream.java:310) at org.apache.poi.hssf.record.RecordFactoryInputStream.nextRecord(RecordFactoryInputStream.java:276) at org.apache.poi.hssf.record.RecordFactory.createRecords(RecordFactory.java:480) at org.apache.poi.hssf.usermodel.HSSFWorkbook.(HSSFWorkbook.java:326) at org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:115) at org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:172) at org.apache.poi.ss.usermodel.WorkbookFactory.create(WorkbookFactory.java:143) at eu.inn.xlsx.JExcelExport.doExportCSV(JExcelExport.java:198) at eu.inn.xlsx.JExcelExport.doExportCSV(JExcelExport.java:180) at eu.inn.ExcelToCSV.main(ExcelToCSV.java:314) eu.inn.xlsx.JExcelException: Error:161 Opening input Excel file: Not enough data (0) to read requested (2) bytes at eu.inn.xlsx.JExcelExport.doExportCSV(JExcelExport.java:231) at eu.inn.xlsx.JExcelExport.doExportCSV(JExcelExport.java:180) at eu.inn.ExcelToCSV.main(ExcelToCSV.java:314) -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org For additional commands, e-mail: dev-help@poi.apache.org