https://issues.apache.org/bugzilla/show_bug.cgi?id=52835

--- Comment #7 from Wu, Fan <[email protected]> 2012-03-07 02:21:38 UTC ---
An exception was thrown with following code.

import java.io.IOException;
import org.apache.poi.openxml4j.exceptions.InvalidFormatException;
import org.apache.poi.openxml4j.opc.OPCPackage;
import org.apache.poi.openxml4j.opc.PackageAccess;
import org.apache.poi.xssf.eventusermodel.ReadOnlySharedStringsTable;
import org.xml.sax.SAXException;


public class Test {
    public static void main(String[] args)
    {
        try {
            OPCPackage pkg = OPCPackage.open("cant_upload.xlsx",
PackageAccess.READ);
            ReadOnlySharedStringsTable table = new
ReadOnlySharedStringsTable(pkg);
        } catch (InvalidFormatException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        } catch (SAXException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }

    }
}

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to