poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 60776] New: Opening an excel workbook with WorkbookFactory twice results in IOException
Date Mon, 27 Feb 2017 07:47:58 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=60776

            Bug ID: 60776
           Summary: Opening an excel workbook with WorkbookFactory twice
                    results in IOException
           Product: POI
           Version: 3.15-FINAL
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: POI Overall
          Assignee: dev@poi.apache.org
          Reporter: robgemen@hetnet.nl
  Target Milestone: ---

this is the code that fails:
    InputStream inputStream = null;
    inputStream = new FileInputStream(inputFile);
    Workbook workbook = WorkbookFactory.create(inputStream);
    Workbook workbook2 = WorkbookFactory.create(inputStream);

The inputFile is just a regular File that contains a valid xls file. No strange
stuff.

The first creationof a workbook succeeds. Doing the same thing twice (creating
workbook2) gives an IOException. No Idea why bu I guess this should be
possible. Inputstream is still a valid Object and hasn't changed. So why isn't
possible to create a second workbook object out of it?

-- 
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


Mime
View raw message