poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 58718] Master styles not initialized when running multithreaded
Date Fri, 11 Dec 2015 20:39:42 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=58718

--- Comment #2 from Tim Allison <tallison@mitre.org> ---
Y, first step was to find minimal failing set.

I think I found that this is not a multi-threading issue, but it is an issue of
file order.

This code fails in a standalone project with POI 3.13 Note that it is pure POI.

My current POI trunk isn't building so I can't go pure, pure POI. 


    @Test
    public void testSequential() throws Exception {
        File dir = new File("C:\\data\\badppts");
        String[] fileNames = new String[]{
                "008495.ppt",
                "008524.ppt",
                "008558.ppt"
        };
        for (String fName : fileNames) {
            InputStream is = null;
            try {
                is = new FileInputStream(new File(dir, fName));
                PowerPointExtractor ex = new PowerPointExtractor(is);
                ex.getText();
            } catch (Exception e) {
                e.printStackTrace();
            } finally {
                if (is != null) {
                    try {
                        is.close();
                    } catch (IOException e) {
                        e.printStackTrace();
                    }
                }
            }
        }
    }

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